[2025-02-11 00:00:06] Production.INFO: next invoice date [2025-02-11 00:00:06] Production.INFO: 2025-03-11 [2025-02-11 00:00:06] Production.INFO: getdaysdiff [2025-02-11 00:00:06] Production.INFO: +28 [2025-02-11 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (229,16,1,28,28,'RMScheduler',2025-02-11 00:00:06,1,0,,,0) [2025-02-11 00:00:06] Production.INFO: next invoice date [2025-02-11 00:00:06] Production.INFO: 2025-03-11 [2025-02-11 00:00:06] Production.INFO: getdaysdiff [2025-02-11 00:00:06] Production.INFO: +28 [2025-02-11 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (229,13,2,28,28,'RMScheduler',2025-02-11 00:00:06,1,0,,,0) [2025-02-11 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:00:07 [end_date_ymd] => 2025-02-11 00:00:07 [RateCDR] => 1 ) [2025-02-11 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-02-10 21:00:07' and `end` < '2025-02-11 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-02-11 00:00:22] Production.INFO: count ==1252 [2025-02-11 00:00:23] Production.ERROR: pbx CDR StartTime 2025-02-10 21:00:07 - End Time 2025-02-11 00:00:07 [2025-02-11 00:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447920', 'tblTempUsageDetail_20' ) start [2025-02-11 00:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447920', 'tblTempUsageDetail_20' ) end [2025-02-11 00:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447920', 'tblTempVendorCDR_20' ) start [2025-02-11 00:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447920', 'tblTempVendorCDR_20' ) end [2025-02-11 00:00:23] Production.INFO: ProcessCDR(1,14447920,1,1,2) [2025-02-11 00:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447920', 'tblTempUsageDetail_20' ) start [2025-02-11 00:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447920', 'tblTempUsageDetail_20' ) end [2025-02-11 00:00:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:00:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:00:29] Production.INFO: ==13188== Releasing lock... [2025-02-11 00:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:00:29] Production.INFO: 39.25 MB #Memory Used# [2025-02-11 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:01:05 [end_date_ymd] => 2025-02-11 00:01:05 [RateCDR] => 1 ) [2025-02-11 00:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:01:05' and `end` < '2025-02-11 00:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:01:18] Production.INFO: count ==1207 [2025-02-11 00:01:18] Production.ERROR: pbx CDR StartTime 2025-02-10 21:01:05 - End Time 2025-02-11 00:01:05 [2025-02-11 00:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447925', 'tblTempUsageDetail_20' ) start [2025-02-11 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447925', 'tblTempUsageDetail_20' ) end [2025-02-11 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447925', 'tblTempVendorCDR_20' ) start [2025-02-11 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447925', 'tblTempVendorCDR_20' ) end [2025-02-11 00:01:19] Production.INFO: ProcessCDR(1,14447925,1,1,2) [2025-02-11 00:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447925', 'tblTempUsageDetail_20' ) start [2025-02-11 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447925', 'tblTempUsageDetail_20' ) end [2025-02-11 00:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:01:21] Production.INFO: ==13324== Releasing lock... [2025-02-11 00:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:01:21] Production.INFO: 37 MB #Memory Used# [2025-02-11 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:02:05 [end_date_ymd] => 2025-02-11 00:02:05 [RateCDR] => 1 ) [2025-02-11 00:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:02:05' and `end` < '2025-02-11 00:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:02:34] Production.INFO: count ==716 [2025-02-11 00:02:34] Production.ERROR: pbx CDR StartTime 2025-02-10 21:02:05 - End Time 2025-02-11 00:02:05 [2025-02-11 00:02:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:02:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447930', 'tblTempUsageDetail_20' ) start [2025-02-11 00:02:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447930', 'tblTempUsageDetail_20' ) end [2025-02-11 00:02:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447930', 'tblTempVendorCDR_20' ) start [2025-02-11 00:02:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447930', 'tblTempVendorCDR_20' ) end [2025-02-11 00:02:34] Production.INFO: ProcessCDR(1,14447930,1,1,2) [2025-02-11 00:02:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:02:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:02:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:02:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:02:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447930', 'tblTempUsageDetail_20' ) start [2025-02-11 00:02:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447930', 'tblTempUsageDetail_20' ) end [2025-02-11 00:02:37] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:02:37] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:02:37] Production.INFO: ==13401== Releasing lock... [2025-02-11 00:02:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:02:37] Production.INFO: 34 MB #Memory Used# [2025-02-11 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:03:05 [end_date_ymd] => 2025-02-11 00:03:05 [RateCDR] => 1 ) [2025-02-11 00:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:03:05' and `end` < '2025-02-11 00:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:03:29] Production.INFO: count ==687 [2025-02-11 00:03:29] Production.ERROR: pbx CDR StartTime 2025-02-10 21:03:05 - End Time 2025-02-11 00:03:05 [2025-02-11 00:03:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447935', 'tblTempUsageDetail_20' ) start [2025-02-11 00:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447935', 'tblTempUsageDetail_20' ) end [2025-02-11 00:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447935', 'tblTempVendorCDR_20' ) start [2025-02-11 00:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447935', 'tblTempVendorCDR_20' ) end [2025-02-11 00:03:29] Production.INFO: ProcessCDR(1,14447935,1,1,2) [2025-02-11 00:03:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:03:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:03:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:03:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:03:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447935', 'tblTempUsageDetail_20' ) start [2025-02-11 00:03:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447935', 'tblTempUsageDetail_20' ) end [2025-02-11 00:03:33] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:03:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:03:33] Production.INFO: ==13486== Releasing lock... [2025-02-11 00:03:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:03:33] Production.INFO: 34.25 MB #Memory Used# [2025-02-11 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:04:05 [end_date_ymd] => 2025-02-11 00:04:05 [RateCDR] => 1 ) [2025-02-11 00:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:04:05' and `end` < '2025-02-11 00:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:04:33] Production.INFO: count ==653 [2025-02-11 00:04:33] Production.ERROR: pbx CDR StartTime 2025-02-10 21:04:05 - End Time 2025-02-11 00:04:05 [2025-02-11 00:04:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:04:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447940', 'tblTempUsageDetail_20' ) start [2025-02-11 00:04:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447940', 'tblTempUsageDetail_20' ) end [2025-02-11 00:04:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447940', 'tblTempVendorCDR_20' ) start [2025-02-11 00:04:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447940', 'tblTempVendorCDR_20' ) end [2025-02-11 00:04:33] Production.INFO: ProcessCDR(1,14447940,1,1,2) [2025-02-11 00:04:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:04:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:04:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:04:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:04:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447940', 'tblTempUsageDetail_20' ) start [2025-02-11 00:04:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447940', 'tblTempUsageDetail_20' ) end [2025-02-11 00:04:37] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:04:37] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:04:37] Production.INFO: ==13572== Releasing lock... [2025-02-11 00:04:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:04:37] Production.INFO: 33.75 MB #Memory Used# [2025-02-11 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:05:05 [end_date_ymd] => 2025-02-11 00:05:05 [RateCDR] => 1 ) [2025-02-11 00:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:05:05' and `end` < '2025-02-11 00:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:05:27] Production.INFO: count ==648 [2025-02-11 00:05:27] Production.ERROR: pbx CDR StartTime 2025-02-10 21:05:05 - End Time 2025-02-11 00:05:05 [2025-02-11 00:05:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447945', 'tblTempUsageDetail_20' ) start [2025-02-11 00:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447945', 'tblTempUsageDetail_20' ) end [2025-02-11 00:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447945', 'tblTempVendorCDR_20' ) start [2025-02-11 00:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447945', 'tblTempVendorCDR_20' ) end [2025-02-11 00:05:27] Production.INFO: ProcessCDR(1,14447945,1,1,2) [2025-02-11 00:05:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:05:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:05:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:05:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447945', 'tblTempUsageDetail_20' ) start [2025-02-11 00:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447945', 'tblTempUsageDetail_20' ) end [2025-02-11 00:05:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:05:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:05:30] Production.INFO: ==13650== Releasing lock... [2025-02-11 00:05:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:05:30] Production.INFO: 33.5 MB #Memory Used# [2025-02-11 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:06:05 [end_date_ymd] => 2025-02-11 00:06:05 [RateCDR] => 1 ) [2025-02-11 00:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:06:05' and `end` < '2025-02-11 00:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:06:22] Production.INFO: count ==648 [2025-02-11 00:06:22] Production.ERROR: pbx CDR StartTime 2025-02-10 21:06:05 - End Time 2025-02-11 00:06:05 [2025-02-11 00:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447950', 'tblTempUsageDetail_20' ) start [2025-02-11 00:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447950', 'tblTempUsageDetail_20' ) end [2025-02-11 00:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447950', 'tblTempVendorCDR_20' ) start [2025-02-11 00:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447950', 'tblTempVendorCDR_20' ) end [2025-02-11 00:06:22] Production.INFO: ProcessCDR(1,14447950,1,1,2) [2025-02-11 00:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447950', 'tblTempUsageDetail_20' ) start [2025-02-11 00:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447950', 'tblTempUsageDetail_20' ) end [2025-02-11 00:06:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:06:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:06:25] Production.INFO: ==13743== Releasing lock... [2025-02-11 00:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:06:25] Production.INFO: 33.5 MB #Memory Used# [2025-02-11 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:07:05 [end_date_ymd] => 2025-02-11 00:07:05 [RateCDR] => 1 ) [2025-02-11 00:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:07:05' and `end` < '2025-02-11 00:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:07:18] Production.INFO: count ==648 [2025-02-11 00:07:18] Production.ERROR: pbx CDR StartTime 2025-02-10 21:07:05 - End Time 2025-02-11 00:07:05 [2025-02-11 00:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447955', 'tblTempUsageDetail_20' ) start [2025-02-11 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447955', 'tblTempUsageDetail_20' ) end [2025-02-11 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447955', 'tblTempVendorCDR_20' ) start [2025-02-11 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447955', 'tblTempVendorCDR_20' ) end [2025-02-11 00:07:18] Production.INFO: ProcessCDR(1,14447955,1,1,2) [2025-02-11 00:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447955', 'tblTempUsageDetail_20' ) start [2025-02-11 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447955', 'tblTempUsageDetail_20' ) end [2025-02-11 00:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:07:21] Production.INFO: ==13825== Releasing lock... [2025-02-11 00:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:07:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-11 00:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:08:04 [end_date_ymd] => 2025-02-11 00:08:04 [RateCDR] => 1 ) [2025-02-11 00:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:08:04' and `end` < '2025-02-11 00:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:08:18] Production.INFO: count ==648 [2025-02-11 00:08:19] Production.ERROR: pbx CDR StartTime 2025-02-10 21:08:04 - End Time 2025-02-11 00:08:04 [2025-02-11 00:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447956', 'tblTempUsageDetail_20' ) start [2025-02-11 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447956', 'tblTempUsageDetail_20' ) end [2025-02-11 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447956', 'tblTempVendorCDR_20' ) start [2025-02-11 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447956', 'tblTempVendorCDR_20' ) end [2025-02-11 00:08:19] Production.INFO: ProcessCDR(1,14447956,1,1,2) [2025-02-11 00:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447956', 'tblTempUsageDetail_20' ) start [2025-02-11 00:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447956', 'tblTempUsageDetail_20' ) end [2025-02-11 00:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:08:22] Production.INFO: ==13903== Releasing lock... [2025-02-11 00:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:08:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-11 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:09:05 [end_date_ymd] => 2025-02-11 00:09:05 [RateCDR] => 1 ) [2025-02-11 00:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:09:05' and `end` < '2025-02-11 00:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:09:19] Production.INFO: count ==623 [2025-02-11 00:09:19] Production.ERROR: pbx CDR StartTime 2025-02-10 21:09:05 - End Time 2025-02-11 00:09:05 [2025-02-11 00:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447965', 'tblTempUsageDetail_20' ) start [2025-02-11 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447965', 'tblTempUsageDetail_20' ) end [2025-02-11 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447965', 'tblTempVendorCDR_20' ) start [2025-02-11 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447965', 'tblTempVendorCDR_20' ) end [2025-02-11 00:09:19] Production.INFO: ProcessCDR(1,14447965,1,1,2) [2025-02-11 00:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447965', 'tblTempUsageDetail_20' ) start [2025-02-11 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447965', 'tblTempUsageDetail_20' ) end [2025-02-11 00:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:09:22] Production.INFO: ==13986== Releasing lock... [2025-02-11 00:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:09:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-11 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:10:05 [end_date_ymd] => 2025-02-11 00:10:05 [RateCDR] => 1 ) [2025-02-11 00:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:10:05' and `end` < '2025-02-11 00:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:11:11] Production.INFO: count ==599 [2025-02-11 00:11:11] Production.ERROR: pbx CDR StartTime 2025-02-10 21:10:05 - End Time 2025-02-11 00:10:05 [2025-02-11 00:11:11] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:11:11] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447970', 'tblTempUsageDetail_20' ) start [2025-02-11 00:11:11] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447970', 'tblTempUsageDetail_20' ) end [2025-02-11 00:11:11] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447970', 'tblTempVendorCDR_20' ) start [2025-02-11 00:11:11] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447970', 'tblTempVendorCDR_20' ) end [2025-02-11 00:11:11] Production.INFO: ProcessCDR(1,14447970,1,1,2) [2025-02-11 00:11:11] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:11:12] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:11:12] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:11:14] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:11:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447970', 'tblTempUsageDetail_20' ) start [2025-02-11 00:11:15] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447970', 'tblTempUsageDetail_20' ) end [2025-02-11 00:11:15] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:11:15] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:11:15] Production.INFO: ==14071== Releasing lock... [2025-02-11 00:11:15] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:11:15] Production.INFO: 33.25 MB #Memory Used# [2025-02-11 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:12:05 [end_date_ymd] => 2025-02-11 00:12:05 [RateCDR] => 1 ) [2025-02-11 00:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:12:05' and `end` < '2025-02-11 00:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:12:18] Production.INFO: count ==565 [2025-02-11 00:12:18] Production.ERROR: pbx CDR StartTime 2025-02-10 21:12:05 - End Time 2025-02-11 00:12:05 [2025-02-11 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447980', 'tblTempUsageDetail_20' ) start [2025-02-11 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447980', 'tblTempUsageDetail_20' ) end [2025-02-11 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447980', 'tblTempVendorCDR_20' ) start [2025-02-11 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447980', 'tblTempVendorCDR_20' ) end [2025-02-11 00:12:18] Production.INFO: ProcessCDR(1,14447980,1,1,2) [2025-02-11 00:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447980', 'tblTempUsageDetail_20' ) start [2025-02-11 00:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447980', 'tblTempUsageDetail_20' ) end [2025-02-11 00:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:12:23] Production.INFO: ==14238== Releasing lock... [2025-02-11 00:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:12:23] Production.INFO: 33 MB #Memory Used# [2025-02-11 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:13:05 [end_date_ymd] => 2025-02-11 00:13:05 [RateCDR] => 1 ) [2025-02-11 00:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:13:05' and `end` < '2025-02-11 00:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:13:18] Production.INFO: count ==531 [2025-02-11 00:13:18] Production.ERROR: pbx CDR StartTime 2025-02-10 21:13:05 - End Time 2025-02-11 00:13:05 [2025-02-11 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447985', 'tblTempUsageDetail_20' ) start [2025-02-11 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447985', 'tblTempUsageDetail_20' ) end [2025-02-11 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447985', 'tblTempVendorCDR_20' ) start [2025-02-11 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447985', 'tblTempVendorCDR_20' ) end [2025-02-11 00:13:18] Production.INFO: ProcessCDR(1,14447985,1,1,2) [2025-02-11 00:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447985', 'tblTempUsageDetail_20' ) start [2025-02-11 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447985', 'tblTempUsageDetail_20' ) end [2025-02-11 00:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:13:22] Production.INFO: ==14321== Releasing lock... [2025-02-11 00:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:13:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-11 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:14:05 [end_date_ymd] => 2025-02-11 00:14:05 [RateCDR] => 1 ) [2025-02-11 00:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:14:05' and `end` < '2025-02-11 00:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:14:20] Production.INFO: count ==521 [2025-02-11 00:14:20] Production.ERROR: pbx CDR StartTime 2025-02-10 21:14:05 - End Time 2025-02-11 00:14:05 [2025-02-11 00:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447990', 'tblTempUsageDetail_20' ) start [2025-02-11 00:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447990', 'tblTempUsageDetail_20' ) end [2025-02-11 00:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447990', 'tblTempVendorCDR_20' ) start [2025-02-11 00:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447990', 'tblTempVendorCDR_20' ) end [2025-02-11 00:14:20] Production.INFO: ProcessCDR(1,14447990,1,1,2) [2025-02-11 00:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447990', 'tblTempUsageDetail_20' ) start [2025-02-11 00:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447990', 'tblTempUsageDetail_20' ) end [2025-02-11 00:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:14:24] Production.INFO: ==14407== Releasing lock... [2025-02-11 00:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:14:24] Production.INFO: 32.75 MB #Memory Used# [2025-02-11 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:15:05 [end_date_ymd] => 2025-02-11 00:15:05 [RateCDR] => 1 ) [2025-02-11 00:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:15:05' and `end` < '2025-02-11 00:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:15:18] Production.INFO: count ==499 [2025-02-11 00:15:18] Production.ERROR: pbx CDR StartTime 2025-02-10 21:15:05 - End Time 2025-02-11 00:15:05 [2025-02-11 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447995', 'tblTempUsageDetail_20' ) start [2025-02-11 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14447995', 'tblTempUsageDetail_20' ) end [2025-02-11 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447995', 'tblTempVendorCDR_20' ) start [2025-02-11 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14447995', 'tblTempVendorCDR_20' ) end [2025-02-11 00:15:18] Production.INFO: ProcessCDR(1,14447995,1,1,2) [2025-02-11 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14447995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14447995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14447995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14447995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447995', 'tblTempUsageDetail_20' ) start [2025-02-11 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14447995', 'tblTempUsageDetail_20' ) end [2025-02-11 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:15:21] Production.INFO: ==14489== Releasing lock... [2025-02-11 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:15:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-11 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:16:05 [end_date_ymd] => 2025-02-11 00:16:05 [RateCDR] => 1 ) [2025-02-11 00:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:16:05' and `end` < '2025-02-11 00:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:16:19] Production.INFO: count ==467 [2025-02-11 00:16:19] Production.ERROR: pbx CDR StartTime 2025-02-10 21:16:05 - End Time 2025-02-11 00:16:05 [2025-02-11 00:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448000', 'tblTempUsageDetail_20' ) start [2025-02-11 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448000', 'tblTempUsageDetail_20' ) end [2025-02-11 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448000', 'tblTempVendorCDR_20' ) start [2025-02-11 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448000', 'tblTempVendorCDR_20' ) end [2025-02-11 00:16:19] Production.INFO: ProcessCDR(1,14448000,1,1,2) [2025-02-11 00:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448000', 'tblTempUsageDetail_20' ) start [2025-02-11 00:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448000', 'tblTempUsageDetail_20' ) end [2025-02-11 00:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:16:24] Production.INFO: ==14573== Releasing lock... [2025-02-11 00:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:16:24] Production.INFO: 32.25 MB #Memory Used# [2025-02-11 00:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:17:06 [end_date_ymd] => 2025-02-11 00:17:06 [RateCDR] => 1 ) [2025-02-11 00:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:17:06' and `end` < '2025-02-11 00:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:17:20] Production.INFO: count ==432 [2025-02-11 00:17:20] Production.ERROR: pbx CDR StartTime 2025-02-10 21:17:06 - End Time 2025-02-11 00:17:06 [2025-02-11 00:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448005', 'tblTempUsageDetail_20' ) start [2025-02-11 00:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448005', 'tblTempUsageDetail_20' ) end [2025-02-11 00:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448005', 'tblTempVendorCDR_20' ) start [2025-02-11 00:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448005', 'tblTempVendorCDR_20' ) end [2025-02-11 00:17:20] Production.INFO: ProcessCDR(1,14448005,1,1,2) [2025-02-11 00:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448005', 'tblTempUsageDetail_20' ) start [2025-02-11 00:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448005', 'tblTempUsageDetail_20' ) end [2025-02-11 00:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:17:23] Production.INFO: ==14687== Releasing lock... [2025-02-11 00:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:17:23] Production.INFO: 32 MB #Memory Used# [2025-02-11 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:18:05 [end_date_ymd] => 2025-02-11 00:18:05 [RateCDR] => 1 ) [2025-02-11 00:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:18:05' and `end` < '2025-02-11 00:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:18:19] Production.INFO: count ==397 [2025-02-11 00:18:19] Production.ERROR: pbx CDR StartTime 2025-02-10 21:18:05 - End Time 2025-02-11 00:18:05 [2025-02-11 00:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448010', 'tblTempUsageDetail_20' ) start [2025-02-11 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448010', 'tblTempUsageDetail_20' ) end [2025-02-11 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448010', 'tblTempVendorCDR_20' ) start [2025-02-11 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448010', 'tblTempVendorCDR_20' ) end [2025-02-11 00:18:19] Production.INFO: ProcessCDR(1,14448010,1,1,2) [2025-02-11 00:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448010', 'tblTempUsageDetail_20' ) start [2025-02-11 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448010', 'tblTempUsageDetail_20' ) end [2025-02-11 00:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:18:22] Production.INFO: ==14781== Releasing lock... [2025-02-11 00:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:18:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-11 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:19:05 [end_date_ymd] => 2025-02-11 00:19:05 [RateCDR] => 1 ) [2025-02-11 00:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:19:05' and `end` < '2025-02-11 00:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:19:18] Production.INFO: count ==362 [2025-02-11 00:19:18] Production.ERROR: pbx CDR StartTime 2025-02-10 21:19:05 - End Time 2025-02-11 00:19:05 [2025-02-11 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448015', 'tblTempUsageDetail_20' ) start [2025-02-11 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448015', 'tblTempUsageDetail_20' ) end [2025-02-11 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448015', 'tblTempVendorCDR_20' ) start [2025-02-11 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448015', 'tblTempVendorCDR_20' ) end [2025-02-11 00:19:18] Production.INFO: ProcessCDR(1,14448015,1,1,2) [2025-02-11 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448015', 'tblTempUsageDetail_20' ) start [2025-02-11 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448015', 'tblTempUsageDetail_20' ) end [2025-02-11 00:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:19:22] Production.INFO: ==14863== Releasing lock... [2025-02-11 00:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:19:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-11 00:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:20:05 [end_date_ymd] => 2025-02-11 00:20:05 [RateCDR] => 1 ) [2025-02-11 00:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:20:05' and `end` < '2025-02-11 00:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:20:18] Production.INFO: count ==336 [2025-02-11 00:20:18] Production.ERROR: pbx CDR StartTime 2025-02-10 21:20:05 - End Time 2025-02-11 00:20:05 [2025-02-11 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448021', 'tblTempUsageDetail_20' ) start [2025-02-11 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448021', 'tblTempUsageDetail_20' ) end [2025-02-11 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448021', 'tblTempVendorCDR_20' ) start [2025-02-11 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448021', 'tblTempVendorCDR_20' ) end [2025-02-11 00:20:18] Production.INFO: ProcessCDR(1,14448021,1,1,2) [2025-02-11 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448021', 'tblTempUsageDetail_20' ) start [2025-02-11 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448021', 'tblTempUsageDetail_20' ) end [2025-02-11 00:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:20:22] Production.INFO: ==14950== Releasing lock... [2025-02-11 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:20:22] Production.INFO: 31 MB #Memory Used# [2025-02-11 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:21:05 [end_date_ymd] => 2025-02-11 00:21:05 [RateCDR] => 1 ) [2025-02-11 00:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:21:05' and `end` < '2025-02-11 00:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:21:18] Production.INFO: count ==337 [2025-02-11 00:21:18] Production.ERROR: pbx CDR StartTime 2025-02-10 21:21:05 - End Time 2025-02-11 00:21:05 [2025-02-11 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448026', 'tblTempUsageDetail_20' ) start [2025-02-11 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448026', 'tblTempUsageDetail_20' ) end [2025-02-11 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448026', 'tblTempVendorCDR_20' ) start [2025-02-11 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448026', 'tblTempVendorCDR_20' ) end [2025-02-11 00:21:18] Production.INFO: ProcessCDR(1,14448026,1,1,2) [2025-02-11 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448026', 'tblTempUsageDetail_20' ) start [2025-02-11 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448026', 'tblTempUsageDetail_20' ) end [2025-02-11 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:21:21] Production.INFO: ==15033== Releasing lock... [2025-02-11 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:21:21] Production.INFO: 31 MB #Memory Used# [2025-02-11 00:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:22:04 [end_date_ymd] => 2025-02-11 00:22:04 [RateCDR] => 1 ) [2025-02-11 00:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:22:04' and `end` < '2025-02-11 00:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:22:17] Production.INFO: count ==330 [2025-02-11 00:22:17] Production.ERROR: pbx CDR StartTime 2025-02-10 21:22:04 - End Time 2025-02-11 00:22:04 [2025-02-11 00:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448031', 'tblTempUsageDetail_20' ) start [2025-02-11 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448031', 'tblTempUsageDetail_20' ) end [2025-02-11 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448031', 'tblTempVendorCDR_20' ) start [2025-02-11 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448031', 'tblTempVendorCDR_20' ) end [2025-02-11 00:22:17] Production.INFO: ProcessCDR(1,14448031,1,1,2) [2025-02-11 00:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448031', 'tblTempUsageDetail_20' ) start [2025-02-11 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448031', 'tblTempUsageDetail_20' ) end [2025-02-11 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:22:21] Production.INFO: ==15120== Releasing lock... [2025-02-11 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:22:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-11 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:23:05 [end_date_ymd] => 2025-02-11 00:23:05 [RateCDR] => 1 ) [2025-02-11 00:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:23:05' and `end` < '2025-02-11 00:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:23:18] Production.INFO: count ==305 [2025-02-11 00:23:18] Production.ERROR: pbx CDR StartTime 2025-02-10 21:23:05 - End Time 2025-02-11 00:23:05 [2025-02-11 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448036', 'tblTempUsageDetail_20' ) start [2025-02-11 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448036', 'tblTempUsageDetail_20' ) end [2025-02-11 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448036', 'tblTempVendorCDR_20' ) start [2025-02-11 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448036', 'tblTempVendorCDR_20' ) end [2025-02-11 00:23:18] Production.INFO: ProcessCDR(1,14448036,1,1,2) [2025-02-11 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448036', 'tblTempUsageDetail_20' ) start [2025-02-11 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448036', 'tblTempUsageDetail_20' ) end [2025-02-11 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:23:21] Production.INFO: ==15206== Releasing lock... [2025-02-11 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:23:21] Production.INFO: 31 MB #Memory Used# [2025-02-11 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:24:05 [end_date_ymd] => 2025-02-11 00:24:05 [RateCDR] => 1 ) [2025-02-11 00:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:24:05' and `end` < '2025-02-11 00:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:24:18] Production.INFO: count ==271 [2025-02-11 00:24:18] Production.ERROR: pbx CDR StartTime 2025-02-10 21:24:05 - End Time 2025-02-11 00:24:05 [2025-02-11 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448041', 'tblTempUsageDetail_20' ) start [2025-02-11 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448041', 'tblTempUsageDetail_20' ) end [2025-02-11 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448041', 'tblTempVendorCDR_20' ) start [2025-02-11 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448041', 'tblTempVendorCDR_20' ) end [2025-02-11 00:24:18] Production.INFO: ProcessCDR(1,14448041,1,1,2) [2025-02-11 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448041', 'tblTempUsageDetail_20' ) start [2025-02-11 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448041', 'tblTempUsageDetail_20' ) end [2025-02-11 00:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:24:22] Production.INFO: ==15287== Releasing lock... [2025-02-11 00:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:24:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-11 00:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:25:04 [end_date_ymd] => 2025-02-11 00:25:04 [RateCDR] => 1 ) [2025-02-11 00:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:25:04' and `end` < '2025-02-11 00:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:25:17] Production.INFO: count ==258 [2025-02-11 00:25:17] Production.ERROR: pbx CDR StartTime 2025-02-10 21:25:04 - End Time 2025-02-11 00:25:04 [2025-02-11 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448046', 'tblTempUsageDetail_20' ) start [2025-02-11 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448046', 'tblTempUsageDetail_20' ) end [2025-02-11 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448046', 'tblTempVendorCDR_20' ) start [2025-02-11 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448046', 'tblTempVendorCDR_20' ) end [2025-02-11 00:25:17] Production.INFO: ProcessCDR(1,14448046,1,1,2) [2025-02-11 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448046', 'tblTempUsageDetail_20' ) start [2025-02-11 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448046', 'tblTempUsageDetail_20' ) end [2025-02-11 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:25:21] Production.INFO: ==15370== Releasing lock... [2025-02-11 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:25:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-11 00:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:26:06 [end_date_ymd] => 2025-02-11 00:26:06 [RateCDR] => 1 ) [2025-02-11 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-02-10 21:26:06' and `end` < '2025-02-11 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-02-11 00:26:19] Production.INFO: count ==253 [2025-02-11 00:26:19] Production.ERROR: pbx CDR StartTime 2025-02-10 21:26:06 - End Time 2025-02-11 00:26:06 [2025-02-11 00:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448051', 'tblTempUsageDetail_20' ) start [2025-02-11 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448051', 'tblTempUsageDetail_20' ) end [2025-02-11 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448051', 'tblTempVendorCDR_20' ) start [2025-02-11 00:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448051', 'tblTempVendorCDR_20' ) end [2025-02-11 00:26:19] Production.INFO: ProcessCDR(1,14448051,1,1,2) [2025-02-11 00:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448051', 'tblTempUsageDetail_20' ) start [2025-02-11 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448051', 'tblTempUsageDetail_20' ) end [2025-02-11 00:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:26:22] Production.INFO: ==15461== Releasing lock... [2025-02-11 00:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:26:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-11 00:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:27:04 [end_date_ymd] => 2025-02-11 00:27:04 [RateCDR] => 1 ) [2025-02-11 00:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:27:04' and `end` < '2025-02-11 00:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:27:18] Production.INFO: count ==252 [2025-02-11 00:27:18] Production.ERROR: pbx CDR StartTime 2025-02-10 21:27:04 - End Time 2025-02-11 00:27:04 [2025-02-11 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448056', 'tblTempUsageDetail_20' ) start [2025-02-11 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448056', 'tblTempUsageDetail_20' ) end [2025-02-11 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448056', 'tblTempVendorCDR_20' ) start [2025-02-11 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448056', 'tblTempVendorCDR_20' ) end [2025-02-11 00:27:18] Production.INFO: ProcessCDR(1,14448056,1,1,2) [2025-02-11 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448056', 'tblTempUsageDetail_20' ) start [2025-02-11 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448056', 'tblTempUsageDetail_20' ) end [2025-02-11 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:27:21] Production.INFO: ==15541== Releasing lock... [2025-02-11 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:27:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-11 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:28:05 [end_date_ymd] => 2025-02-11 00:28:05 [RateCDR] => 1 ) [2025-02-11 00:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:28:05' and `end` < '2025-02-11 00:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:28:19] Production.INFO: count ==251 [2025-02-11 00:28:19] Production.ERROR: pbx CDR StartTime 2025-02-10 21:28:05 - End Time 2025-02-11 00:28:05 [2025-02-11 00:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448061', 'tblTempUsageDetail_20' ) start [2025-02-11 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448061', 'tblTempUsageDetail_20' ) end [2025-02-11 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448061', 'tblTempVendorCDR_20' ) start [2025-02-11 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448061', 'tblTempVendorCDR_20' ) end [2025-02-11 00:28:19] Production.INFO: ProcessCDR(1,14448061,1,1,2) [2025-02-11 00:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448061', 'tblTempUsageDetail_20' ) start [2025-02-11 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448061', 'tblTempUsageDetail_20' ) end [2025-02-11 00:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:28:22] Production.INFO: ==15622== Releasing lock... [2025-02-11 00:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:28:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-11 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:29:05 [end_date_ymd] => 2025-02-11 00:29:05 [RateCDR] => 1 ) [2025-02-11 00:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:29:05' and `end` < '2025-02-11 00:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:29:18] Production.INFO: count ==251 [2025-02-11 00:29:18] Production.ERROR: pbx CDR StartTime 2025-02-10 21:29:05 - End Time 2025-02-11 00:29:05 [2025-02-11 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448066', 'tblTempUsageDetail_20' ) start [2025-02-11 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448066', 'tblTempUsageDetail_20' ) end [2025-02-11 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448066', 'tblTempVendorCDR_20' ) start [2025-02-11 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448066', 'tblTempVendorCDR_20' ) end [2025-02-11 00:29:18] Production.INFO: ProcessCDR(1,14448066,1,1,2) [2025-02-11 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448066', 'tblTempUsageDetail_20' ) start [2025-02-11 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448066', 'tblTempUsageDetail_20' ) end [2025-02-11 00:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:29:22] Production.INFO: ==15702== Releasing lock... [2025-02-11 00:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:29:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-11 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:30:06 [end_date_ymd] => 2025-02-11 00:30:06 [RateCDR] => 1 ) [2025-02-11 00:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:30:06' and `end` < '2025-02-11 00:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:30:19] Production.INFO: count ==261 [2025-02-11 00:30:19] Production.ERROR: pbx CDR StartTime 2025-02-10 21:30:06 - End Time 2025-02-11 00:30:06 [2025-02-11 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448072', 'tblTempUsageDetail_20' ) start [2025-02-11 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448072', 'tblTempUsageDetail_20' ) end [2025-02-11 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448072', 'tblTempVendorCDR_20' ) start [2025-02-11 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448072', 'tblTempVendorCDR_20' ) end [2025-02-11 00:30:19] Production.INFO: ProcessCDR(1,14448072,1,1,2) [2025-02-11 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448072', 'tblTempUsageDetail_20' ) start [2025-02-11 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448072', 'tblTempUsageDetail_20' ) end [2025-02-11 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:30:22] Production.INFO: ==15780== Releasing lock... [2025-02-11 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:30:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-11 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:31:05 [end_date_ymd] => 2025-02-11 00:31:05 [RateCDR] => 1 ) [2025-02-11 00:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:31:05' and `end` < '2025-02-11 00:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:31:18] Production.INFO: count ==258 [2025-02-11 00:31:19] Production.ERROR: pbx CDR StartTime 2025-02-10 21:31:05 - End Time 2025-02-11 00:31:05 [2025-02-11 00:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448077', 'tblTempUsageDetail_20' ) start [2025-02-11 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448077', 'tblTempUsageDetail_20' ) end [2025-02-11 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448077', 'tblTempVendorCDR_20' ) start [2025-02-11 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448077', 'tblTempVendorCDR_20' ) end [2025-02-11 00:31:19] Production.INFO: ProcessCDR(1,14448077,1,1,2) [2025-02-11 00:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448077', 'tblTempUsageDetail_20' ) start [2025-02-11 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448077', 'tblTempUsageDetail_20' ) end [2025-02-11 00:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:31:22] Production.INFO: ==15857== Releasing lock... [2025-02-11 00:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:31:22] Production.INFO: 31 MB #Memory Used# [2025-02-11 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:32:05 [end_date_ymd] => 2025-02-11 00:32:05 [RateCDR] => 1 ) [2025-02-11 00:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:32:05' and `end` < '2025-02-11 00:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:32:19] Production.INFO: count ==258 [2025-02-11 00:32:19] Production.ERROR: pbx CDR StartTime 2025-02-10 21:32:05 - End Time 2025-02-11 00:32:05 [2025-02-11 00:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448082', 'tblTempUsageDetail_20' ) start [2025-02-11 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448082', 'tblTempUsageDetail_20' ) end [2025-02-11 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448082', 'tblTempVendorCDR_20' ) start [2025-02-11 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448082', 'tblTempVendorCDR_20' ) end [2025-02-11 00:32:19] Production.INFO: ProcessCDR(1,14448082,1,1,2) [2025-02-11 00:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448082', 'tblTempUsageDetail_20' ) start [2025-02-11 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448082', 'tblTempUsageDetail_20' ) end [2025-02-11 00:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:32:22] Production.INFO: ==15969== Releasing lock... [2025-02-11 00:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:32:22] Production.INFO: 31 MB #Memory Used# [2025-02-11 00:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:33:04 [end_date_ymd] => 2025-02-11 00:33:04 [RateCDR] => 1 ) [2025-02-11 00:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:33:04' and `end` < '2025-02-11 00:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:33:17] Production.INFO: count ==258 [2025-02-11 00:33:17] Production.ERROR: pbx CDR StartTime 2025-02-10 21:33:04 - End Time 2025-02-11 00:33:04 [2025-02-11 00:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448087', 'tblTempUsageDetail_20' ) start [2025-02-11 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448087', 'tblTempUsageDetail_20' ) end [2025-02-11 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448087', 'tblTempVendorCDR_20' ) start [2025-02-11 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448087', 'tblTempVendorCDR_20' ) end [2025-02-11 00:33:17] Production.INFO: ProcessCDR(1,14448087,1,1,2) [2025-02-11 00:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448087', 'tblTempUsageDetail_20' ) start [2025-02-11 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448087', 'tblTempUsageDetail_20' ) end [2025-02-11 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:33:21] Production.INFO: ==16044== Releasing lock... [2025-02-11 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:33:21] Production.INFO: 31 MB #Memory Used# [2025-02-11 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:34:05 [end_date_ymd] => 2025-02-11 00:34:05 [RateCDR] => 1 ) [2025-02-11 00:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:34:05' and `end` < '2025-02-11 00:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:34:18] Production.INFO: count ==261 [2025-02-11 00:34:18] Production.ERROR: pbx CDR StartTime 2025-02-10 21:34:05 - End Time 2025-02-11 00:34:05 [2025-02-11 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448092', 'tblTempUsageDetail_20' ) start [2025-02-11 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448092', 'tblTempUsageDetail_20' ) end [2025-02-11 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448092', 'tblTempVendorCDR_20' ) start [2025-02-11 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448092', 'tblTempVendorCDR_20' ) end [2025-02-11 00:34:18] Production.INFO: ProcessCDR(1,14448092,1,1,2) [2025-02-11 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448092', 'tblTempUsageDetail_20' ) start [2025-02-11 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448092', 'tblTempUsageDetail_20' ) end [2025-02-11 00:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:34:21] Production.INFO: ==16118== Releasing lock... [2025-02-11 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:34:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-11 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:35:05 [end_date_ymd] => 2025-02-11 00:35:05 [RateCDR] => 1 ) [2025-02-11 00:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:35:05' and `end` < '2025-02-11 00:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:35:18] Production.INFO: count ==261 [2025-02-11 00:35:18] Production.ERROR: pbx CDR StartTime 2025-02-10 21:35:05 - End Time 2025-02-11 00:35:05 [2025-02-11 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448097', 'tblTempUsageDetail_20' ) start [2025-02-11 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448097', 'tblTempUsageDetail_20' ) end [2025-02-11 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448097', 'tblTempVendorCDR_20' ) start [2025-02-11 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448097', 'tblTempVendorCDR_20' ) end [2025-02-11 00:35:18] Production.INFO: ProcessCDR(1,14448097,1,1,2) [2025-02-11 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448097', 'tblTempUsageDetail_20' ) start [2025-02-11 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448097', 'tblTempUsageDetail_20' ) end [2025-02-11 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:35:21] Production.INFO: ==16199== Releasing lock... [2025-02-11 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:35:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-11 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:36:05 [end_date_ymd] => 2025-02-11 00:36:05 [RateCDR] => 1 ) [2025-02-11 00:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:36:05' and `end` < '2025-02-11 00:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:36:18] Production.INFO: count ==261 [2025-02-11 00:36:18] Production.ERROR: pbx CDR StartTime 2025-02-10 21:36:05 - End Time 2025-02-11 00:36:05 [2025-02-11 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448102', 'tblTempUsageDetail_20' ) start [2025-02-11 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448102', 'tblTempUsageDetail_20' ) end [2025-02-11 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448102', 'tblTempVendorCDR_20' ) start [2025-02-11 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448102', 'tblTempVendorCDR_20' ) end [2025-02-11 00:36:18] Production.INFO: ProcessCDR(1,14448102,1,1,2) [2025-02-11 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448102', 'tblTempUsageDetail_20' ) start [2025-02-11 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448102', 'tblTempUsageDetail_20' ) end [2025-02-11 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:36:21] Production.INFO: ==16268== Releasing lock... [2025-02-11 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:36:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-11 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:37:05 [end_date_ymd] => 2025-02-11 00:37:05 [RateCDR] => 1 ) [2025-02-11 00:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:37:05' and `end` < '2025-02-11 00:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:37:18] Production.INFO: count ==262 [2025-02-11 00:37:18] Production.ERROR: pbx CDR StartTime 2025-02-10 21:37:05 - End Time 2025-02-11 00:37:05 [2025-02-11 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448107', 'tblTempUsageDetail_20' ) start [2025-02-11 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448107', 'tblTempUsageDetail_20' ) end [2025-02-11 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448107', 'tblTempVendorCDR_20' ) start [2025-02-11 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448107', 'tblTempVendorCDR_20' ) end [2025-02-11 00:37:18] Production.INFO: ProcessCDR(1,14448107,1,1,2) [2025-02-11 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448107', 'tblTempUsageDetail_20' ) start [2025-02-11 00:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448107', 'tblTempUsageDetail_20' ) end [2025-02-11 00:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:37:23] Production.INFO: ==16347== Releasing lock... [2025-02-11 00:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:37:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-11 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:38:05 [end_date_ymd] => 2025-02-11 00:38:05 [RateCDR] => 1 ) [2025-02-11 00:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:38:05' and `end` < '2025-02-11 00:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:38:18] Production.INFO: count ==263 [2025-02-11 00:38:18] Production.ERROR: pbx CDR StartTime 2025-02-10 21:38:05 - End Time 2025-02-11 00:38:05 [2025-02-11 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448112', 'tblTempUsageDetail_20' ) start [2025-02-11 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448112', 'tblTempUsageDetail_20' ) end [2025-02-11 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448112', 'tblTempVendorCDR_20' ) start [2025-02-11 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448112', 'tblTempVendorCDR_20' ) end [2025-02-11 00:38:18] Production.INFO: ProcessCDR(1,14448112,1,1,2) [2025-02-11 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448112', 'tblTempUsageDetail_20' ) start [2025-02-11 00:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448112', 'tblTempUsageDetail_20' ) end [2025-02-11 00:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:38:23] Production.INFO: ==16430== Releasing lock... [2025-02-11 00:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:38:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-11 00:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:39:06 [end_date_ymd] => 2025-02-11 00:39:06 [RateCDR] => 1 ) [2025-02-11 00:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:39:06' and `end` < '2025-02-11 00:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:39:19] Production.INFO: count ==263 [2025-02-11 00:39:19] Production.ERROR: pbx CDR StartTime 2025-02-10 21:39:06 - End Time 2025-02-11 00:39:06 [2025-02-11 00:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448117', 'tblTempUsageDetail_20' ) start [2025-02-11 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448117', 'tblTempUsageDetail_20' ) end [2025-02-11 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448117', 'tblTempVendorCDR_20' ) start [2025-02-11 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448117', 'tblTempVendorCDR_20' ) end [2025-02-11 00:39:19] Production.INFO: ProcessCDR(1,14448117,1,1,2) [2025-02-11 00:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448117', 'tblTempUsageDetail_20' ) start [2025-02-11 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448117', 'tblTempUsageDetail_20' ) end [2025-02-11 00:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:39:22] Production.INFO: ==16506== Releasing lock... [2025-02-11 00:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:39:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-11 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:40:06 [end_date_ymd] => 2025-02-11 00:40:06 [RateCDR] => 1 ) [2025-02-11 00:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:40:06' and `end` < '2025-02-11 00:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:40:19] Production.INFO: count ==271 [2025-02-11 00:40:19] Production.ERROR: pbx CDR StartTime 2025-02-10 21:40:06 - End Time 2025-02-11 00:40:06 [2025-02-11 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448123', 'tblTempUsageDetail_20' ) start [2025-02-11 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448123', 'tblTempUsageDetail_20' ) end [2025-02-11 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448123', 'tblTempVendorCDR_20' ) start [2025-02-11 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448123', 'tblTempVendorCDR_20' ) end [2025-02-11 00:40:19] Production.INFO: ProcessCDR(1,14448123,1,1,2) [2025-02-11 00:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448123', 'tblTempUsageDetail_20' ) start [2025-02-11 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448123', 'tblTempUsageDetail_20' ) end [2025-02-11 00:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:40:22] Production.INFO: ==16579== Releasing lock... [2025-02-11 00:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:40:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-11 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:41:05 [end_date_ymd] => 2025-02-11 00:41:05 [RateCDR] => 1 ) [2025-02-11 00:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:41:05' and `end` < '2025-02-11 00:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:41:18] Production.INFO: count ==266 [2025-02-11 00:41:18] Production.ERROR: pbx CDR StartTime 2025-02-10 21:41:05 - End Time 2025-02-11 00:41:05 [2025-02-11 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448128', 'tblTempUsageDetail_20' ) start [2025-02-11 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448128', 'tblTempUsageDetail_20' ) end [2025-02-11 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448128', 'tblTempVendorCDR_20' ) start [2025-02-11 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448128', 'tblTempVendorCDR_20' ) end [2025-02-11 00:41:18] Production.INFO: ProcessCDR(1,14448128,1,1,2) [2025-02-11 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448128', 'tblTempUsageDetail_20' ) start [2025-02-11 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448128', 'tblTempUsageDetail_20' ) end [2025-02-11 00:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:41:22] Production.INFO: ==16653== Releasing lock... [2025-02-11 00:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:41:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-11 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:42:05 [end_date_ymd] => 2025-02-11 00:42:05 [RateCDR] => 1 ) [2025-02-11 00:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:42:05' and `end` < '2025-02-11 00:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:42:18] Production.INFO: count ==266 [2025-02-11 00:42:18] Production.ERROR: pbx CDR StartTime 2025-02-10 21:42:05 - End Time 2025-02-11 00:42:05 [2025-02-11 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448133', 'tblTempUsageDetail_20' ) start [2025-02-11 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448133', 'tblTempUsageDetail_20' ) end [2025-02-11 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448133', 'tblTempVendorCDR_20' ) start [2025-02-11 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448133', 'tblTempVendorCDR_20' ) end [2025-02-11 00:42:18] Production.INFO: ProcessCDR(1,14448133,1,1,2) [2025-02-11 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448133', 'tblTempUsageDetail_20' ) start [2025-02-11 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448133', 'tblTempUsageDetail_20' ) end [2025-02-11 00:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:42:21] Production.INFO: ==16726== Releasing lock... [2025-02-11 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:42:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-11 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:43:05 [end_date_ymd] => 2025-02-11 00:43:05 [RateCDR] => 1 ) [2025-02-11 00:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:43:05' and `end` < '2025-02-11 00:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:43:18] Production.INFO: count ==266 [2025-02-11 00:43:18] Production.ERROR: pbx CDR StartTime 2025-02-10 21:43:05 - End Time 2025-02-11 00:43:05 [2025-02-11 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448138', 'tblTempUsageDetail_20' ) start [2025-02-11 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448138', 'tblTempUsageDetail_20' ) end [2025-02-11 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448138', 'tblTempVendorCDR_20' ) start [2025-02-11 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448138', 'tblTempVendorCDR_20' ) end [2025-02-11 00:43:18] Production.INFO: ProcessCDR(1,14448138,1,1,2) [2025-02-11 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448138', 'tblTempUsageDetail_20' ) start [2025-02-11 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448138', 'tblTempUsageDetail_20' ) end [2025-02-11 00:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:43:21] Production.INFO: ==16799== Releasing lock... [2025-02-11 00:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:43:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-11 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:44:05 [end_date_ymd] => 2025-02-11 00:44:05 [RateCDR] => 1 ) [2025-02-11 00:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:44:05' and `end` < '2025-02-11 00:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:44:18] Production.INFO: count ==262 [2025-02-11 00:44:18] Production.ERROR: pbx CDR StartTime 2025-02-10 21:44:05 - End Time 2025-02-11 00:44:05 [2025-02-11 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448143', 'tblTempUsageDetail_20' ) start [2025-02-11 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448143', 'tblTempUsageDetail_20' ) end [2025-02-11 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448143', 'tblTempVendorCDR_20' ) start [2025-02-11 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448143', 'tblTempVendorCDR_20' ) end [2025-02-11 00:44:19] Production.INFO: ProcessCDR(1,14448143,1,1,2) [2025-02-11 00:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448143', 'tblTempUsageDetail_20' ) start [2025-02-11 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448143', 'tblTempUsageDetail_20' ) end [2025-02-11 00:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:44:22] Production.INFO: ==16871== Releasing lock... [2025-02-11 00:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:44:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-11 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:45:05 [end_date_ymd] => 2025-02-11 00:45:05 [RateCDR] => 1 ) [2025-02-11 00:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:45:05' and `end` < '2025-02-11 00:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:45:19] Production.INFO: count ==254 [2025-02-11 00:45:19] Production.ERROR: pbx CDR StartTime 2025-02-10 21:45:05 - End Time 2025-02-11 00:45:05 [2025-02-11 00:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448148', 'tblTempUsageDetail_20' ) start [2025-02-11 00:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448148', 'tblTempUsageDetail_20' ) end [2025-02-11 00:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448148', 'tblTempVendorCDR_20' ) start [2025-02-11 00:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448148', 'tblTempVendorCDR_20' ) end [2025-02-11 00:45:19] Production.INFO: ProcessCDR(1,14448148,1,1,2) [2025-02-11 00:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448148', 'tblTempUsageDetail_20' ) start [2025-02-11 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448148', 'tblTempUsageDetail_20' ) end [2025-02-11 00:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:45:22] Production.INFO: ==16950== Releasing lock... [2025-02-11 00:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:45:22] Production.INFO: 30 MB #Memory Used# [2025-02-11 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:46:05 [end_date_ymd] => 2025-02-11 00:46:05 [RateCDR] => 1 ) [2025-02-11 00:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:46:05' and `end` < '2025-02-11 00:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:46:18] Production.INFO: count ==253 [2025-02-11 00:46:18] Production.ERROR: pbx CDR StartTime 2025-02-10 21:46:05 - End Time 2025-02-11 00:46:05 [2025-02-11 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448153', 'tblTempUsageDetail_20' ) start [2025-02-11 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448153', 'tblTempUsageDetail_20' ) end [2025-02-11 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448153', 'tblTempVendorCDR_20' ) start [2025-02-11 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448153', 'tblTempVendorCDR_20' ) end [2025-02-11 00:46:18] Production.INFO: ProcessCDR(1,14448153,1,1,2) [2025-02-11 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448153', 'tblTempUsageDetail_20' ) start [2025-02-11 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448153', 'tblTempUsageDetail_20' ) end [2025-02-11 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:46:21] Production.INFO: ==17021== Releasing lock... [2025-02-11 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:46:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-11 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:47:05 [end_date_ymd] => 2025-02-11 00:47:05 [RateCDR] => 1 ) [2025-02-11 00:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:47:05' and `end` < '2025-02-11 00:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:47:19] Production.INFO: count ==252 [2025-02-11 00:47:19] Production.ERROR: pbx CDR StartTime 2025-02-10 21:47:05 - End Time 2025-02-11 00:47:05 [2025-02-11 00:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448158', 'tblTempUsageDetail_20' ) start [2025-02-11 00:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448158', 'tblTempUsageDetail_20' ) end [2025-02-11 00:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448158', 'tblTempVendorCDR_20' ) start [2025-02-11 00:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448158', 'tblTempVendorCDR_20' ) end [2025-02-11 00:47:19] Production.INFO: ProcessCDR(1,14448158,1,1,2) [2025-02-11 00:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448158', 'tblTempUsageDetail_20' ) start [2025-02-11 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448158', 'tblTempUsageDetail_20' ) end [2025-02-11 00:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:47:22] Production.INFO: ==17095== Releasing lock... [2025-02-11 00:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:47:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-11 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:48:05 [end_date_ymd] => 2025-02-11 00:48:05 [RateCDR] => 1 ) [2025-02-11 00:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:48:05' and `end` < '2025-02-11 00:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:48:18] Production.INFO: count ==252 [2025-02-11 00:48:18] Production.ERROR: pbx CDR StartTime 2025-02-10 21:48:05 - End Time 2025-02-11 00:48:05 [2025-02-11 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448163', 'tblTempUsageDetail_20' ) start [2025-02-11 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448163', 'tblTempUsageDetail_20' ) end [2025-02-11 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448163', 'tblTempVendorCDR_20' ) start [2025-02-11 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448163', 'tblTempVendorCDR_20' ) end [2025-02-11 00:48:18] Production.INFO: ProcessCDR(1,14448163,1,1,2) [2025-02-11 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448163', 'tblTempUsageDetail_20' ) start [2025-02-11 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448163', 'tblTempUsageDetail_20' ) end [2025-02-11 00:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:48:21] Production.INFO: ==17205== Releasing lock... [2025-02-11 00:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:48:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-11 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:49:05 [end_date_ymd] => 2025-02-11 00:49:05 [RateCDR] => 1 ) [2025-02-11 00:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:49:05' and `end` < '2025-02-11 00:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:49:18] Production.INFO: count ==251 [2025-02-11 00:49:18] Production.ERROR: pbx CDR StartTime 2025-02-10 21:49:05 - End Time 2025-02-11 00:49:05 [2025-02-11 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448168', 'tblTempUsageDetail_20' ) start [2025-02-11 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448168', 'tblTempUsageDetail_20' ) end [2025-02-11 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448168', 'tblTempVendorCDR_20' ) start [2025-02-11 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448168', 'tblTempVendorCDR_20' ) end [2025-02-11 00:49:18] Production.INFO: ProcessCDR(1,14448168,1,1,2) [2025-02-11 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448168', 'tblTempUsageDetail_20' ) start [2025-02-11 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448168', 'tblTempUsageDetail_20' ) end [2025-02-11 00:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:49:21] Production.INFO: ==17279== Releasing lock... [2025-02-11 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:49:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-11 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:50:06 [end_date_ymd] => 2025-02-11 00:50:06 [RateCDR] => 1 ) [2025-02-11 00:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:50:06' and `end` < '2025-02-11 00:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:50:20] Production.INFO: count ==255 [2025-02-11 00:50:20] Production.ERROR: pbx CDR StartTime 2025-02-10 21:50:06 - End Time 2025-02-11 00:50:06 [2025-02-11 00:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448174', 'tblTempUsageDetail_20' ) start [2025-02-11 00:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448174', 'tblTempUsageDetail_20' ) end [2025-02-11 00:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448174', 'tblTempVendorCDR_20' ) start [2025-02-11 00:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448174', 'tblTempVendorCDR_20' ) end [2025-02-11 00:50:20] Production.INFO: ProcessCDR(1,14448174,1,1,2) [2025-02-11 00:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448174', 'tblTempUsageDetail_20' ) start [2025-02-11 00:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448174', 'tblTempUsageDetail_20' ) end [2025-02-11 00:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:50:23] Production.INFO: ==17351== Releasing lock... [2025-02-11 00:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:50:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-11 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:51:05 [end_date_ymd] => 2025-02-11 00:51:05 [RateCDR] => 1 ) [2025-02-11 00:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:51:05' and `end` < '2025-02-11 00:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:51:19] Production.INFO: count ==255 [2025-02-11 00:51:19] Production.ERROR: pbx CDR StartTime 2025-02-10 21:51:05 - End Time 2025-02-11 00:51:05 [2025-02-11 00:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448179', 'tblTempUsageDetail_20' ) start [2025-02-11 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448179', 'tblTempUsageDetail_20' ) end [2025-02-11 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448179', 'tblTempVendorCDR_20' ) start [2025-02-11 00:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448179', 'tblTempVendorCDR_20' ) end [2025-02-11 00:51:19] Production.INFO: ProcessCDR(1,14448179,1,1,2) [2025-02-11 00:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448179', 'tblTempUsageDetail_20' ) start [2025-02-11 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448179', 'tblTempUsageDetail_20' ) end [2025-02-11 00:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:51:22] Production.INFO: ==17427== Releasing lock... [2025-02-11 00:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:51:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-11 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:52:05 [end_date_ymd] => 2025-02-11 00:52:05 [RateCDR] => 1 ) [2025-02-11 00:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:52:05' and `end` < '2025-02-11 00:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:52:19] Production.INFO: count ==259 [2025-02-11 00:52:19] Production.ERROR: pbx CDR StartTime 2025-02-10 21:52:05 - End Time 2025-02-11 00:52:05 [2025-02-11 00:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448184', 'tblTempUsageDetail_20' ) start [2025-02-11 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448184', 'tblTempUsageDetail_20' ) end [2025-02-11 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448184', 'tblTempVendorCDR_20' ) start [2025-02-11 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448184', 'tblTempVendorCDR_20' ) end [2025-02-11 00:52:19] Production.INFO: ProcessCDR(1,14448184,1,1,2) [2025-02-11 00:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448184', 'tblTempUsageDetail_20' ) start [2025-02-11 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448184', 'tblTempUsageDetail_20' ) end [2025-02-11 00:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:52:22] Production.INFO: ==17503== Releasing lock... [2025-02-11 00:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:52:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-11 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:53:05 [end_date_ymd] => 2025-02-11 00:53:05 [RateCDR] => 1 ) [2025-02-11 00:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:53:05' and `end` < '2025-02-11 00:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:53:18] Production.INFO: count ==255 [2025-02-11 00:53:18] Production.ERROR: pbx CDR StartTime 2025-02-10 21:53:05 - End Time 2025-02-11 00:53:05 [2025-02-11 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448189', 'tblTempUsageDetail_20' ) start [2025-02-11 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448189', 'tblTempUsageDetail_20' ) end [2025-02-11 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448189', 'tblTempVendorCDR_20' ) start [2025-02-11 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448189', 'tblTempVendorCDR_20' ) end [2025-02-11 00:53:18] Production.INFO: ProcessCDR(1,14448189,1,1,2) [2025-02-11 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448189', 'tblTempUsageDetail_20' ) start [2025-02-11 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448189', 'tblTempUsageDetail_20' ) end [2025-02-11 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:53:21] Production.INFO: ==17576== Releasing lock... [2025-02-11 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:53:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-11 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:54:05 [end_date_ymd] => 2025-02-11 00:54:05 [RateCDR] => 1 ) [2025-02-11 00:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:54:05' and `end` < '2025-02-11 00:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:54:18] Production.INFO: count ==256 [2025-02-11 00:54:18] Production.ERROR: pbx CDR StartTime 2025-02-10 21:54:05 - End Time 2025-02-11 00:54:05 [2025-02-11 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448194', 'tblTempUsageDetail_20' ) start [2025-02-11 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448194', 'tblTempUsageDetail_20' ) end [2025-02-11 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448194', 'tblTempVendorCDR_20' ) start [2025-02-11 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448194', 'tblTempVendorCDR_20' ) end [2025-02-11 00:54:18] Production.INFO: ProcessCDR(1,14448194,1,1,2) [2025-02-11 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448194', 'tblTempUsageDetail_20' ) start [2025-02-11 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448194', 'tblTempUsageDetail_20' ) end [2025-02-11 00:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:54:22] Production.INFO: ==17646== Releasing lock... [2025-02-11 00:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:54:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-11 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:55:05 [end_date_ymd] => 2025-02-11 00:55:05 [RateCDR] => 1 ) [2025-02-11 00:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:55:05' and `end` < '2025-02-11 00:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:55:18] Production.INFO: count ==256 [2025-02-11 00:55:18] Production.ERROR: pbx CDR StartTime 2025-02-10 21:55:05 - End Time 2025-02-11 00:55:05 [2025-02-11 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448199', 'tblTempUsageDetail_20' ) start [2025-02-11 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448199', 'tblTempUsageDetail_20' ) end [2025-02-11 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448199', 'tblTempVendorCDR_20' ) start [2025-02-11 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448199', 'tblTempVendorCDR_20' ) end [2025-02-11 00:55:18] Production.INFO: ProcessCDR(1,14448199,1,1,2) [2025-02-11 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448199', 'tblTempUsageDetail_20' ) start [2025-02-11 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448199', 'tblTempUsageDetail_20' ) end [2025-02-11 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:55:21] Production.INFO: ==17718== Releasing lock... [2025-02-11 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:55:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-11 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:56:05 [end_date_ymd] => 2025-02-11 00:56:05 [RateCDR] => 1 ) [2025-02-11 00:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:56:05' and `end` < '2025-02-11 00:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:56:19] Production.INFO: count ==256 [2025-02-11 00:56:20] Production.ERROR: pbx CDR StartTime 2025-02-10 21:56:05 - End Time 2025-02-11 00:56:05 [2025-02-11 00:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448204', 'tblTempUsageDetail_20' ) start [2025-02-11 00:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448204', 'tblTempUsageDetail_20' ) end [2025-02-11 00:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448204', 'tblTempVendorCDR_20' ) start [2025-02-11 00:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448204', 'tblTempVendorCDR_20' ) end [2025-02-11 00:56:20] Production.INFO: ProcessCDR(1,14448204,1,1,2) [2025-02-11 00:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448204', 'tblTempUsageDetail_20' ) start [2025-02-11 00:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448204', 'tblTempUsageDetail_20' ) end [2025-02-11 00:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:56:23] Production.INFO: ==17791== Releasing lock... [2025-02-11 00:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:56:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-11 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:57:04 [end_date_ymd] => 2025-02-11 00:57:04 [RateCDR] => 1 ) [2025-02-11 00:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:57:04' and `end` < '2025-02-11 00:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:57:18] Production.INFO: count ==255 [2025-02-11 00:57:18] Production.ERROR: pbx CDR StartTime 2025-02-10 21:57:04 - End Time 2025-02-11 00:57:04 [2025-02-11 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448209', 'tblTempUsageDetail_20' ) start [2025-02-11 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448209', 'tblTempUsageDetail_20' ) end [2025-02-11 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448209', 'tblTempVendorCDR_20' ) start [2025-02-11 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448209', 'tblTempVendorCDR_20' ) end [2025-02-11 00:57:18] Production.INFO: ProcessCDR(1,14448209,1,1,2) [2025-02-11 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448209', 'tblTempUsageDetail_20' ) start [2025-02-11 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448209', 'tblTempUsageDetail_20' ) end [2025-02-11 00:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:57:22] Production.INFO: ==17862== Releasing lock... [2025-02-11 00:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:57:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-11 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:58:05 [end_date_ymd] => 2025-02-11 00:58:05 [RateCDR] => 1 ) [2025-02-11 00:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:58:05' and `end` < '2025-02-11 00:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:58:18] Production.INFO: count ==256 [2025-02-11 00:58:18] Production.ERROR: pbx CDR StartTime 2025-02-10 21:58:05 - End Time 2025-02-11 00:58:05 [2025-02-11 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448214', 'tblTempUsageDetail_20' ) start [2025-02-11 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448214', 'tblTempUsageDetail_20' ) end [2025-02-11 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448214', 'tblTempVendorCDR_20' ) start [2025-02-11 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448214', 'tblTempVendorCDR_20' ) end [2025-02-11 00:58:18] Production.INFO: ProcessCDR(1,14448214,1,1,2) [2025-02-11 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448214', 'tblTempUsageDetail_20' ) start [2025-02-11 00:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448214', 'tblTempUsageDetail_20' ) end [2025-02-11 00:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:58:23] Production.INFO: ==17937== Releasing lock... [2025-02-11 00:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:58:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-11 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 21:59:05 [end_date_ymd] => 2025-02-11 00:59:05 [RateCDR] => 1 ) [2025-02-11 00:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 21:59:05' and `end` < '2025-02-11 00:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 00:59:19] Production.INFO: count ==255 [2025-02-11 00:59:19] Production.ERROR: pbx CDR StartTime 2025-02-10 21:59:05 - End Time 2025-02-11 00:59:05 [2025-02-11 00:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448219', 'tblTempUsageDetail_20' ) start [2025-02-11 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448219', 'tblTempUsageDetail_20' ) end [2025-02-11 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448219', 'tblTempVendorCDR_20' ) start [2025-02-11 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448219', 'tblTempVendorCDR_20' ) end [2025-02-11 00:59:19] Production.INFO: ProcessCDR(1,14448219,1,1,2) [2025-02-11 00:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 00:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448219', 'tblTempUsageDetail_20' ) start [2025-02-11 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448219', 'tblTempUsageDetail_20' ) end [2025-02-11 00:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 00:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 00:59:22] Production.INFO: ==18008== Releasing lock... [2025-02-11 00:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 00:59:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-11 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:00:06 [end_date_ymd] => 2025-02-11 01:00:06 [RateCDR] => 1 ) [2025-02-11 01:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:00:06' and `end` < '2025-02-11 01:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:00:19] Production.INFO: count ==265 [2025-02-11 01:00:19] Production.ERROR: pbx CDR StartTime 2025-02-10 22:00:06 - End Time 2025-02-11 01:00:06 [2025-02-11 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448225', 'tblTempUsageDetail_20' ) start [2025-02-11 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448225', 'tblTempUsageDetail_20' ) end [2025-02-11 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448225', 'tblTempVendorCDR_20' ) start [2025-02-11 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448225', 'tblTempVendorCDR_20' ) end [2025-02-11 01:00:19] Production.INFO: ProcessCDR(1,14448225,1,1,2) [2025-02-11 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448225', 'tblTempUsageDetail_20' ) start [2025-02-11 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448225', 'tblTempUsageDetail_20' ) end [2025-02-11 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:00:22] Production.INFO: ==18082== Releasing lock... [2025-02-11 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:00:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-11 01:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:01:06 [end_date_ymd] => 2025-02-11 01:01:06 [RateCDR] => 1 ) [2025-02-11 01:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:01:06' and `end` < '2025-02-11 01:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:01:20] Production.INFO: count ==266 [2025-02-11 01:01:20] Production.ERROR: pbx CDR StartTime 2025-02-10 22:01:06 - End Time 2025-02-11 01:01:06 [2025-02-11 01:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448230', 'tblTempUsageDetail_20' ) start [2025-02-11 01:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448230', 'tblTempUsageDetail_20' ) end [2025-02-11 01:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448230', 'tblTempVendorCDR_20' ) start [2025-02-11 01:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448230', 'tblTempVendorCDR_20' ) end [2025-02-11 01:01:20] Production.INFO: ProcessCDR(1,14448230,1,1,2) [2025-02-11 01:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448230', 'tblTempUsageDetail_20' ) start [2025-02-11 01:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448230', 'tblTempUsageDetail_20' ) end [2025-02-11 01:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:01:23] Production.INFO: ==18167== Releasing lock... [2025-02-11 01:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:01:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-11 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:02:05 [end_date_ymd] => 2025-02-11 01:02:05 [RateCDR] => 1 ) [2025-02-11 01:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:02:05' and `end` < '2025-02-11 01:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:02:20] Production.INFO: count ==267 [2025-02-11 01:02:20] Production.ERROR: pbx CDR StartTime 2025-02-10 22:02:05 - End Time 2025-02-11 01:02:05 [2025-02-11 01:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448235', 'tblTempUsageDetail_20' ) start [2025-02-11 01:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448235', 'tblTempUsageDetail_20' ) end [2025-02-11 01:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448235', 'tblTempVendorCDR_20' ) start [2025-02-11 01:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448235', 'tblTempVendorCDR_20' ) end [2025-02-11 01:02:20] Production.INFO: ProcessCDR(1,14448235,1,1,2) [2025-02-11 01:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448235', 'tblTempUsageDetail_20' ) start [2025-02-11 01:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448235', 'tblTempUsageDetail_20' ) end [2025-02-11 01:02:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:02:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:02:25] Production.INFO: ==18238== Releasing lock... [2025-02-11 01:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:02:25] Production.INFO: 30.25 MB #Memory Used# [2025-02-11 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:03:05 [end_date_ymd] => 2025-02-11 01:03:05 [RateCDR] => 1 ) [2025-02-11 01:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:03:05' and `end` < '2025-02-11 01:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:03:17] Production.INFO: count ==267 [2025-02-11 01:03:18] Production.ERROR: pbx CDR StartTime 2025-02-10 22:03:05 - End Time 2025-02-11 01:03:05 [2025-02-11 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448240', 'tblTempUsageDetail_20' ) start [2025-02-11 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448240', 'tblTempUsageDetail_20' ) end [2025-02-11 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448240', 'tblTempVendorCDR_20' ) start [2025-02-11 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448240', 'tblTempVendorCDR_20' ) end [2025-02-11 01:03:18] Production.INFO: ProcessCDR(1,14448240,1,1,2) [2025-02-11 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448240', 'tblTempUsageDetail_20' ) start [2025-02-11 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448240', 'tblTempUsageDetail_20' ) end [2025-02-11 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:03:21] Production.INFO: ==18351== Releasing lock... [2025-02-11 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:03:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-11 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:04:05 [end_date_ymd] => 2025-02-11 01:04:05 [RateCDR] => 1 ) [2025-02-11 01:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:04:05' and `end` < '2025-02-11 01:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:04:19] Production.INFO: count ==264 [2025-02-11 01:04:19] Production.ERROR: pbx CDR StartTime 2025-02-10 22:04:05 - End Time 2025-02-11 01:04:05 [2025-02-11 01:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448245', 'tblTempUsageDetail_20' ) start [2025-02-11 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448245', 'tblTempUsageDetail_20' ) end [2025-02-11 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448245', 'tblTempVendorCDR_20' ) start [2025-02-11 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448245', 'tblTempVendorCDR_20' ) end [2025-02-11 01:04:19] Production.INFO: ProcessCDR(1,14448245,1,1,2) [2025-02-11 01:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448245', 'tblTempUsageDetail_20' ) start [2025-02-11 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448245', 'tblTempUsageDetail_20' ) end [2025-02-11 01:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:04:22] Production.INFO: ==18430== Releasing lock... [2025-02-11 01:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:04:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-11 01:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:05:06 [end_date_ymd] => 2025-02-11 01:05:06 [RateCDR] => 1 ) [2025-02-11 01:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:05:06' and `end` < '2025-02-11 01:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:05:20] Production.INFO: count ==261 [2025-02-11 01:05:20] Production.ERROR: pbx CDR StartTime 2025-02-10 22:05:06 - End Time 2025-02-11 01:05:06 [2025-02-11 01:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448250', 'tblTempUsageDetail_20' ) start [2025-02-11 01:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448250', 'tblTempUsageDetail_20' ) end [2025-02-11 01:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448250', 'tblTempVendorCDR_20' ) start [2025-02-11 01:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448250', 'tblTempVendorCDR_20' ) end [2025-02-11 01:05:20] Production.INFO: ProcessCDR(1,14448250,1,1,2) [2025-02-11 01:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448250', 'tblTempUsageDetail_20' ) start [2025-02-11 01:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448250', 'tblTempUsageDetail_20' ) end [2025-02-11 01:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:05:23] Production.INFO: ==18504== Releasing lock... [2025-02-11 01:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:05:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-11 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:06:05 [end_date_ymd] => 2025-02-11 01:06:05 [RateCDR] => 1 ) [2025-02-11 01:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:06:05' and `end` < '2025-02-11 01:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:06:18] Production.INFO: count ==262 [2025-02-11 01:06:18] Production.ERROR: pbx CDR StartTime 2025-02-10 22:06:05 - End Time 2025-02-11 01:06:05 [2025-02-11 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448255', 'tblTempUsageDetail_20' ) start [2025-02-11 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448255', 'tblTempUsageDetail_20' ) end [2025-02-11 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448255', 'tblTempVendorCDR_20' ) start [2025-02-11 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448255', 'tblTempVendorCDR_20' ) end [2025-02-11 01:06:18] Production.INFO: ProcessCDR(1,14448255,1,1,2) [2025-02-11 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448255', 'tblTempUsageDetail_20' ) start [2025-02-11 01:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448255', 'tblTempUsageDetail_20' ) end [2025-02-11 01:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:06:23] Production.INFO: ==18576== Releasing lock... [2025-02-11 01:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:06:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-11 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:07:05 [end_date_ymd] => 2025-02-11 01:07:05 [RateCDR] => 1 ) [2025-02-11 01:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:07:05' and `end` < '2025-02-11 01:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:07:19] Production.INFO: count ==260 [2025-02-11 01:07:19] Production.ERROR: pbx CDR StartTime 2025-02-10 22:07:05 - End Time 2025-02-11 01:07:05 [2025-02-11 01:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448260', 'tblTempUsageDetail_20' ) start [2025-02-11 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448260', 'tblTempUsageDetail_20' ) end [2025-02-11 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448260', 'tblTempVendorCDR_20' ) start [2025-02-11 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448260', 'tblTempVendorCDR_20' ) end [2025-02-11 01:07:19] Production.INFO: ProcessCDR(1,14448260,1,1,2) [2025-02-11 01:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448260', 'tblTempUsageDetail_20' ) start [2025-02-11 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448260', 'tblTempUsageDetail_20' ) end [2025-02-11 01:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:07:22] Production.INFO: ==18653== Releasing lock... [2025-02-11 01:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:07:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-11 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:08:05 [end_date_ymd] => 2025-02-11 01:08:05 [RateCDR] => 1 ) [2025-02-11 01:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:08:05' and `end` < '2025-02-11 01:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:08:17] Production.INFO: count ==258 [2025-02-11 01:08:18] Production.ERROR: pbx CDR StartTime 2025-02-10 22:08:05 - End Time 2025-02-11 01:08:05 [2025-02-11 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448265', 'tblTempUsageDetail_20' ) start [2025-02-11 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448265', 'tblTempUsageDetail_20' ) end [2025-02-11 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448265', 'tblTempVendorCDR_20' ) start [2025-02-11 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448265', 'tblTempVendorCDR_20' ) end [2025-02-11 01:08:18] Production.INFO: ProcessCDR(1,14448265,1,1,2) [2025-02-11 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448265', 'tblTempUsageDetail_20' ) start [2025-02-11 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448265', 'tblTempUsageDetail_20' ) end [2025-02-11 01:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:08:21] Production.INFO: ==18732== Releasing lock... [2025-02-11 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:08:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-11 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:09:05 [end_date_ymd] => 2025-02-11 01:09:05 [RateCDR] => 1 ) [2025-02-11 01:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:09:05' and `end` < '2025-02-11 01:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:09:18] Production.INFO: count ==258 [2025-02-11 01:09:18] Production.ERROR: pbx CDR StartTime 2025-02-10 22:09:05 - End Time 2025-02-11 01:09:05 [2025-02-11 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448270', 'tblTempUsageDetail_20' ) start [2025-02-11 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448270', 'tblTempUsageDetail_20' ) end [2025-02-11 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448270', 'tblTempVendorCDR_20' ) start [2025-02-11 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448270', 'tblTempVendorCDR_20' ) end [2025-02-11 01:09:18] Production.INFO: ProcessCDR(1,14448270,1,1,2) [2025-02-11 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448270', 'tblTempUsageDetail_20' ) start [2025-02-11 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448270', 'tblTempUsageDetail_20' ) end [2025-02-11 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:09:21] Production.INFO: ==18809== Releasing lock... [2025-02-11 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:09:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-11 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:10:06 [end_date_ymd] => 2025-02-11 01:10:06 [RateCDR] => 1 ) [2025-02-11 01:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:10:06' and `end` < '2025-02-11 01:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:10:20] Production.INFO: count ==260 [2025-02-11 01:10:20] Production.ERROR: pbx CDR StartTime 2025-02-10 22:10:06 - End Time 2025-02-11 01:10:06 [2025-02-11 01:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448275', 'tblTempUsageDetail_20' ) start [2025-02-11 01:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448275', 'tblTempUsageDetail_20' ) end [2025-02-11 01:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448275', 'tblTempVendorCDR_20' ) start [2025-02-11 01:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448275', 'tblTempVendorCDR_20' ) end [2025-02-11 01:10:20] Production.INFO: ProcessCDR(1,14448275,1,1,2) [2025-02-11 01:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448275', 'tblTempUsageDetail_20' ) start [2025-02-11 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448275', 'tblTempUsageDetail_20' ) end [2025-02-11 01:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:10:23] Production.INFO: ==18889== Releasing lock... [2025-02-11 01:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:10:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-11 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:11:05 [end_date_ymd] => 2025-02-11 01:11:05 [RateCDR] => 1 ) [2025-02-11 01:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:11:05' and `end` < '2025-02-11 01:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:11:18] Production.INFO: count ==259 [2025-02-11 01:11:18] Production.ERROR: pbx CDR StartTime 2025-02-10 22:11:05 - End Time 2025-02-11 01:11:05 [2025-02-11 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448281', 'tblTempUsageDetail_20' ) start [2025-02-11 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448281', 'tblTempUsageDetail_20' ) end [2025-02-11 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448281', 'tblTempVendorCDR_20' ) start [2025-02-11 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448281', 'tblTempVendorCDR_20' ) end [2025-02-11 01:11:18] Production.INFO: ProcessCDR(1,14448281,1,1,2) [2025-02-11 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448281', 'tblTempUsageDetail_20' ) start [2025-02-11 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448281', 'tblTempUsageDetail_20' ) end [2025-02-11 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:11:21] Production.INFO: ==18971== Releasing lock... [2025-02-11 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:11:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-11 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:12:05 [end_date_ymd] => 2025-02-11 01:12:05 [RateCDR] => 1 ) [2025-02-11 01:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:12:05' and `end` < '2025-02-11 01:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:12:20] Production.INFO: count ==258 [2025-02-11 01:12:20] Production.ERROR: pbx CDR StartTime 2025-02-10 22:12:05 - End Time 2025-02-11 01:12:05 [2025-02-11 01:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448286', 'tblTempUsageDetail_20' ) start [2025-02-11 01:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448286', 'tblTempUsageDetail_20' ) end [2025-02-11 01:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448286', 'tblTempVendorCDR_20' ) start [2025-02-11 01:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448286', 'tblTempVendorCDR_20' ) end [2025-02-11 01:12:20] Production.INFO: ProcessCDR(1,14448286,1,1,2) [2025-02-11 01:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448286', 'tblTempUsageDetail_20' ) start [2025-02-11 01:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448286', 'tblTempUsageDetail_20' ) end [2025-02-11 01:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:12:23] Production.INFO: ==19046== Releasing lock... [2025-02-11 01:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:12:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-11 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:13:05 [end_date_ymd] => 2025-02-11 01:13:05 [RateCDR] => 1 ) [2025-02-11 01:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:13:05' and `end` < '2025-02-11 01:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:13:18] Production.INFO: count ==258 [2025-02-11 01:13:18] Production.ERROR: pbx CDR StartTime 2025-02-10 22:13:05 - End Time 2025-02-11 01:13:05 [2025-02-11 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448291', 'tblTempUsageDetail_20' ) start [2025-02-11 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448291', 'tblTempUsageDetail_20' ) end [2025-02-11 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448291', 'tblTempVendorCDR_20' ) start [2025-02-11 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448291', 'tblTempVendorCDR_20' ) end [2025-02-11 01:13:18] Production.INFO: ProcessCDR(1,14448291,1,1,2) [2025-02-11 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448291', 'tblTempUsageDetail_20' ) start [2025-02-11 01:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448291', 'tblTempUsageDetail_20' ) end [2025-02-11 01:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:13:23] Production.INFO: ==19133== Releasing lock... [2025-02-11 01:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:13:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-11 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:14:05 [end_date_ymd] => 2025-02-11 01:14:05 [RateCDR] => 1 ) [2025-02-11 01:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:14:05' and `end` < '2025-02-11 01:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:14:18] Production.INFO: count ==257 [2025-02-11 01:14:18] Production.ERROR: pbx CDR StartTime 2025-02-10 22:14:05 - End Time 2025-02-11 01:14:05 [2025-02-11 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448296', 'tblTempUsageDetail_20' ) start [2025-02-11 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448296', 'tblTempUsageDetail_20' ) end [2025-02-11 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448296', 'tblTempVendorCDR_20' ) start [2025-02-11 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448296', 'tblTempVendorCDR_20' ) end [2025-02-11 01:14:18] Production.INFO: ProcessCDR(1,14448296,1,1,2) [2025-02-11 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448296', 'tblTempUsageDetail_20' ) start [2025-02-11 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448296', 'tblTempUsageDetail_20' ) end [2025-02-11 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:14:21] Production.INFO: ==19209== Releasing lock... [2025-02-11 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:14:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-11 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:15:05 [end_date_ymd] => 2025-02-11 01:15:05 [RateCDR] => 1 ) [2025-02-11 01:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:15:05' and `end` < '2025-02-11 01:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:15:19] Production.INFO: count ==257 [2025-02-11 01:15:19] Production.ERROR: pbx CDR StartTime 2025-02-10 22:15:05 - End Time 2025-02-11 01:15:05 [2025-02-11 01:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448301', 'tblTempUsageDetail_20' ) start [2025-02-11 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448301', 'tblTempUsageDetail_20' ) end [2025-02-11 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448301', 'tblTempVendorCDR_20' ) start [2025-02-11 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448301', 'tblTempVendorCDR_20' ) end [2025-02-11 01:15:19] Production.INFO: ProcessCDR(1,14448301,1,1,2) [2025-02-11 01:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448301', 'tblTempUsageDetail_20' ) start [2025-02-11 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448301', 'tblTempUsageDetail_20' ) end [2025-02-11 01:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:15:22] Production.INFO: ==19291== Releasing lock... [2025-02-11 01:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:15:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-11 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:16:05 [end_date_ymd] => 2025-02-11 01:16:05 [RateCDR] => 1 ) [2025-02-11 01:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:16:05' and `end` < '2025-02-11 01:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:16:17] Production.INFO: count ==254 [2025-02-11 01:16:17] Production.ERROR: pbx CDR StartTime 2025-02-10 22:16:05 - End Time 2025-02-11 01:16:05 [2025-02-11 01:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448306', 'tblTempUsageDetail_20' ) start [2025-02-11 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448306', 'tblTempUsageDetail_20' ) end [2025-02-11 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448306', 'tblTempVendorCDR_20' ) start [2025-02-11 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448306', 'tblTempVendorCDR_20' ) end [2025-02-11 01:16:17] Production.INFO: ProcessCDR(1,14448306,1,1,2) [2025-02-11 01:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448306', 'tblTempUsageDetail_20' ) start [2025-02-11 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448306', 'tblTempUsageDetail_20' ) end [2025-02-11 01:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:16:21] Production.INFO: ==19371== Releasing lock... [2025-02-11 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:16:21] Production.INFO: 30 MB #Memory Used# [2025-02-11 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:17:05 [end_date_ymd] => 2025-02-11 01:17:05 [RateCDR] => 1 ) [2025-02-11 01:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:17:05' and `end` < '2025-02-11 01:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:17:19] Production.INFO: count ==258 [2025-02-11 01:17:19] Production.ERROR: pbx CDR StartTime 2025-02-10 22:17:05 - End Time 2025-02-11 01:17:05 [2025-02-11 01:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448311', 'tblTempUsageDetail_20' ) start [2025-02-11 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448311', 'tblTempUsageDetail_20' ) end [2025-02-11 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448311', 'tblTempVendorCDR_20' ) start [2025-02-11 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448311', 'tblTempVendorCDR_20' ) end [2025-02-11 01:17:19] Production.INFO: ProcessCDR(1,14448311,1,1,2) [2025-02-11 01:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448311', 'tblTempUsageDetail_20' ) start [2025-02-11 01:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448311', 'tblTempUsageDetail_20' ) end [2025-02-11 01:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:17:23] Production.INFO: ==19453== Releasing lock... [2025-02-11 01:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:17:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-11 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:18:05 [end_date_ymd] => 2025-02-11 01:18:05 [RateCDR] => 1 ) [2025-02-11 01:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:18:05' and `end` < '2025-02-11 01:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:18:19] Production.INFO: count ==258 [2025-02-11 01:18:19] Production.ERROR: pbx CDR StartTime 2025-02-10 22:18:05 - End Time 2025-02-11 01:18:05 [2025-02-11 01:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448316', 'tblTempUsageDetail_20' ) start [2025-02-11 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448316', 'tblTempUsageDetail_20' ) end [2025-02-11 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448316', 'tblTempVendorCDR_20' ) start [2025-02-11 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448316', 'tblTempVendorCDR_20' ) end [2025-02-11 01:18:19] Production.INFO: ProcessCDR(1,14448316,1,1,2) [2025-02-11 01:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448316', 'tblTempUsageDetail_20' ) start [2025-02-11 01:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448316', 'tblTempUsageDetail_20' ) end [2025-02-11 01:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:18:23] Production.INFO: ==19538== Releasing lock... [2025-02-11 01:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:18:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-11 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:19:05 [end_date_ymd] => 2025-02-11 01:19:05 [RateCDR] => 1 ) [2025-02-11 01:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:19:05' and `end` < '2025-02-11 01:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:19:18] Production.INFO: count ==250 [2025-02-11 01:19:18] Production.ERROR: pbx CDR StartTime 2025-02-10 22:19:05 - End Time 2025-02-11 01:19:05 [2025-02-11 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448321', 'tblTempUsageDetail_20' ) start [2025-02-11 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448321', 'tblTempUsageDetail_20' ) end [2025-02-11 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448321', 'tblTempVendorCDR_20' ) start [2025-02-11 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448321', 'tblTempVendorCDR_20' ) end [2025-02-11 01:19:18] Production.INFO: ProcessCDR(1,14448321,1,1,2) [2025-02-11 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448321', 'tblTempUsageDetail_20' ) start [2025-02-11 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448321', 'tblTempUsageDetail_20' ) end [2025-02-11 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:19:21] Production.INFO: ==19659== Releasing lock... [2025-02-11 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:19:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-11 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:20:06 [end_date_ymd] => 2025-02-11 01:20:06 [RateCDR] => 1 ) [2025-02-11 01:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:20:06' and `end` < '2025-02-11 01:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:20:19] Production.INFO: count ==256 [2025-02-11 01:20:19] Production.ERROR: pbx CDR StartTime 2025-02-10 22:20:06 - End Time 2025-02-11 01:20:06 [2025-02-11 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448326', 'tblTempUsageDetail_20' ) start [2025-02-11 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448326', 'tblTempUsageDetail_20' ) end [2025-02-11 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448326', 'tblTempVendorCDR_20' ) start [2025-02-11 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448326', 'tblTempVendorCDR_20' ) end [2025-02-11 01:20:19] Production.INFO: ProcessCDR(1,14448326,1,1,2) [2025-02-11 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448326', 'tblTempUsageDetail_20' ) start [2025-02-11 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448326', 'tblTempUsageDetail_20' ) end [2025-02-11 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:20:22] Production.INFO: ==19742== Releasing lock... [2025-02-11 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:20:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-11 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:21:05 [end_date_ymd] => 2025-02-11 01:21:05 [RateCDR] => 1 ) [2025-02-11 01:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:21:05' and `end` < '2025-02-11 01:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:21:18] Production.INFO: count ==246 [2025-02-11 01:21:18] Production.ERROR: pbx CDR StartTime 2025-02-10 22:21:05 - End Time 2025-02-11 01:21:05 [2025-02-11 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448332', 'tblTempUsageDetail_20' ) start [2025-02-11 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448332', 'tblTempUsageDetail_20' ) end [2025-02-11 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448332', 'tblTempVendorCDR_20' ) start [2025-02-11 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448332', 'tblTempVendorCDR_20' ) end [2025-02-11 01:21:18] Production.INFO: ProcessCDR(1,14448332,1,1,2) [2025-02-11 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448332', 'tblTempUsageDetail_20' ) start [2025-02-11 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448332', 'tblTempUsageDetail_20' ) end [2025-02-11 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:21:21] Production.INFO: ==19827== Releasing lock... [2025-02-11 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:21:21] Production.INFO: 30 MB #Memory Used# [2025-02-11 01:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:22:06 [end_date_ymd] => 2025-02-11 01:22:06 [RateCDR] => 1 ) [2025-02-11 01:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:22:06' and `end` < '2025-02-11 01:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:22:18] Production.INFO: count ==246 [2025-02-11 01:22:18] Production.ERROR: pbx CDR StartTime 2025-02-10 22:22:06 - End Time 2025-02-11 01:22:06 [2025-02-11 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448337', 'tblTempUsageDetail_20' ) start [2025-02-11 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448337', 'tblTempUsageDetail_20' ) end [2025-02-11 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448337', 'tblTempVendorCDR_20' ) start [2025-02-11 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448337', 'tblTempVendorCDR_20' ) end [2025-02-11 01:22:18] Production.INFO: ProcessCDR(1,14448337,1,1,2) [2025-02-11 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448337', 'tblTempUsageDetail_20' ) start [2025-02-11 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448337', 'tblTempUsageDetail_20' ) end [2025-02-11 01:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:22:22] Production.INFO: ==19912== Releasing lock... [2025-02-11 01:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:22:22] Production.INFO: 30 MB #Memory Used# [2025-02-11 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:23:05 [end_date_ymd] => 2025-02-11 01:23:05 [RateCDR] => 1 ) [2025-02-11 01:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:23:05' and `end` < '2025-02-11 01:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:23:19] Production.INFO: count ==245 [2025-02-11 01:23:19] Production.ERROR: pbx CDR StartTime 2025-02-10 22:23:05 - End Time 2025-02-11 01:23:05 [2025-02-11 01:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448342', 'tblTempUsageDetail_20' ) start [2025-02-11 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448342', 'tblTempUsageDetail_20' ) end [2025-02-11 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448342', 'tblTempVendorCDR_20' ) start [2025-02-11 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448342', 'tblTempVendorCDR_20' ) end [2025-02-11 01:23:19] Production.INFO: ProcessCDR(1,14448342,1,1,2) [2025-02-11 01:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448342', 'tblTempUsageDetail_20' ) start [2025-02-11 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448342', 'tblTempUsageDetail_20' ) end [2025-02-11 01:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:23:22] Production.INFO: ==19993== Releasing lock... [2025-02-11 01:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:23:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-11 01:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:24:06 [end_date_ymd] => 2025-02-11 01:24:06 [RateCDR] => 1 ) [2025-02-11 01:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:24:06' and `end` < '2025-02-11 01:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:24:19] Production.INFO: count ==242 [2025-02-11 01:24:19] Production.ERROR: pbx CDR StartTime 2025-02-10 22:24:06 - End Time 2025-02-11 01:24:06 [2025-02-11 01:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448347', 'tblTempUsageDetail_20' ) start [2025-02-11 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448347', 'tblTempUsageDetail_20' ) end [2025-02-11 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448347', 'tblTempVendorCDR_20' ) start [2025-02-11 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448347', 'tblTempVendorCDR_20' ) end [2025-02-11 01:24:19] Production.INFO: ProcessCDR(1,14448347,1,1,2) [2025-02-11 01:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448347', 'tblTempUsageDetail_20' ) start [2025-02-11 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448347', 'tblTempUsageDetail_20' ) end [2025-02-11 01:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:24:22] Production.INFO: ==20078== Releasing lock... [2025-02-11 01:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:24:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-11 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:25:05 [end_date_ymd] => 2025-02-11 01:25:05 [RateCDR] => 1 ) [2025-02-11 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:25:05' and `end` < '2025-02-11 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:25:18] Production.INFO: count ==242 [2025-02-11 01:25:18] Production.ERROR: pbx CDR StartTime 2025-02-10 22:25:05 - End Time 2025-02-11 01:25:05 [2025-02-11 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448352', 'tblTempUsageDetail_20' ) start [2025-02-11 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448352', 'tblTempUsageDetail_20' ) end [2025-02-11 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448352', 'tblTempVendorCDR_20' ) start [2025-02-11 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448352', 'tblTempVendorCDR_20' ) end [2025-02-11 01:25:18] Production.INFO: ProcessCDR(1,14448352,1,1,2) [2025-02-11 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448352', 'tblTempUsageDetail_20' ) start [2025-02-11 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448352', 'tblTempUsageDetail_20' ) end [2025-02-11 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:25:21] Production.INFO: ==20166== Releasing lock... [2025-02-11 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:25:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-11 01:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:26:06 [end_date_ymd] => 2025-02-11 01:26:06 [RateCDR] => 1 ) [2025-02-11 01:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:26:06' and `end` < '2025-02-11 01:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:26:19] Production.INFO: count ==238 [2025-02-11 01:26:19] Production.ERROR: pbx CDR StartTime 2025-02-10 22:26:06 - End Time 2025-02-11 01:26:06 [2025-02-11 01:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448357', 'tblTempUsageDetail_20' ) start [2025-02-11 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448357', 'tblTempUsageDetail_20' ) end [2025-02-11 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448357', 'tblTempVendorCDR_20' ) start [2025-02-11 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448357', 'tblTempVendorCDR_20' ) end [2025-02-11 01:26:19] Production.INFO: ProcessCDR(1,14448357,1,1,2) [2025-02-11 01:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448357', 'tblTempUsageDetail_20' ) start [2025-02-11 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448357', 'tblTempUsageDetail_20' ) end [2025-02-11 01:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:26:22] Production.INFO: ==20247== Releasing lock... [2025-02-11 01:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:26:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-11 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:27:05 [end_date_ymd] => 2025-02-11 01:27:05 [RateCDR] => 1 ) [2025-02-11 01:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:27:05' and `end` < '2025-02-11 01:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:27:18] Production.INFO: count ==238 [2025-02-11 01:27:18] Production.ERROR: pbx CDR StartTime 2025-02-10 22:27:05 - End Time 2025-02-11 01:27:05 [2025-02-11 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448362', 'tblTempUsageDetail_20' ) start [2025-02-11 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448362', 'tblTempUsageDetail_20' ) end [2025-02-11 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448362', 'tblTempVendorCDR_20' ) start [2025-02-11 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448362', 'tblTempVendorCDR_20' ) end [2025-02-11 01:27:18] Production.INFO: ProcessCDR(1,14448362,1,1,2) [2025-02-11 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448362', 'tblTempUsageDetail_20' ) start [2025-02-11 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448362', 'tblTempUsageDetail_20' ) end [2025-02-11 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:27:21] Production.INFO: ==20329== Releasing lock... [2025-02-11 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:27:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-11 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:28:05 [end_date_ymd] => 2025-02-11 01:28:05 [RateCDR] => 1 ) [2025-02-11 01:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:28:05' and `end` < '2025-02-11 01:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:28:18] Production.INFO: count ==233 [2025-02-11 01:28:18] Production.ERROR: pbx CDR StartTime 2025-02-10 22:28:05 - End Time 2025-02-11 01:28:05 [2025-02-11 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448367', 'tblTempUsageDetail_20' ) start [2025-02-11 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448367', 'tblTempUsageDetail_20' ) end [2025-02-11 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448367', 'tblTempVendorCDR_20' ) start [2025-02-11 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448367', 'tblTempVendorCDR_20' ) end [2025-02-11 01:28:18] Production.INFO: ProcessCDR(1,14448367,1,1,2) [2025-02-11 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448367', 'tblTempUsageDetail_20' ) start [2025-02-11 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448367', 'tblTempUsageDetail_20' ) end [2025-02-11 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:28:21] Production.INFO: ==20412== Releasing lock... [2025-02-11 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:28:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-11 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:29:05 [end_date_ymd] => 2025-02-11 01:29:05 [RateCDR] => 1 ) [2025-02-11 01:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:29:05' and `end` < '2025-02-11 01:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:29:18] Production.INFO: count ==225 [2025-02-11 01:29:18] Production.ERROR: pbx CDR StartTime 2025-02-10 22:29:05 - End Time 2025-02-11 01:29:05 [2025-02-11 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448372', 'tblTempUsageDetail_20' ) start [2025-02-11 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448372', 'tblTempUsageDetail_20' ) end [2025-02-11 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448372', 'tblTempVendorCDR_20' ) start [2025-02-11 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448372', 'tblTempVendorCDR_20' ) end [2025-02-11 01:29:18] Production.INFO: ProcessCDR(1,14448372,1,1,2) [2025-02-11 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448372', 'tblTempUsageDetail_20' ) start [2025-02-11 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448372', 'tblTempUsageDetail_20' ) end [2025-02-11 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:29:21] Production.INFO: ==20493== Releasing lock... [2025-02-11 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:29:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-11 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:30:06 [end_date_ymd] => 2025-02-11 01:30:06 [RateCDR] => 1 ) [2025-02-11 01:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:30:06' and `end` < '2025-02-11 01:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:30:20] Production.INFO: count ==231 [2025-02-11 01:30:20] Production.ERROR: pbx CDR StartTime 2025-02-10 22:30:06 - End Time 2025-02-11 01:30:06 [2025-02-11 01:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448378', 'tblTempUsageDetail_20' ) start [2025-02-11 01:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448378', 'tblTempUsageDetail_20' ) end [2025-02-11 01:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448378', 'tblTempVendorCDR_20' ) start [2025-02-11 01:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448378', 'tblTempVendorCDR_20' ) end [2025-02-11 01:30:20] Production.INFO: ProcessCDR(1,14448378,1,1,2) [2025-02-11 01:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448378', 'tblTempUsageDetail_20' ) start [2025-02-11 01:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448378', 'tblTempUsageDetail_20' ) end [2025-02-11 01:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:30:23] Production.INFO: ==20577== Releasing lock... [2025-02-11 01:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:30:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:31:05 [end_date_ymd] => 2025-02-11 01:31:05 [RateCDR] => 1 ) [2025-02-11 01:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:31:05' and `end` < '2025-02-11 01:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:31:18] Production.INFO: count ==230 [2025-02-11 01:31:18] Production.ERROR: pbx CDR StartTime 2025-02-10 22:31:05 - End Time 2025-02-11 01:31:05 [2025-02-11 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448383', 'tblTempUsageDetail_20' ) start [2025-02-11 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448383', 'tblTempUsageDetail_20' ) end [2025-02-11 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448383', 'tblTempVendorCDR_20' ) start [2025-02-11 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448383', 'tblTempVendorCDR_20' ) end [2025-02-11 01:31:18] Production.INFO: ProcessCDR(1,14448383,1,1,2) [2025-02-11 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448383', 'tblTempUsageDetail_20' ) start [2025-02-11 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448383', 'tblTempUsageDetail_20' ) end [2025-02-11 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:31:21] Production.INFO: ==20657== Releasing lock... [2025-02-11 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:31:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-11 01:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:32:05 [end_date_ymd] => 2025-02-11 01:32:05 [RateCDR] => 1 ) [2025-02-11 01:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:32:05' and `end` < '2025-02-11 01:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:32:19] Production.INFO: count ==230 [2025-02-11 01:32:19] Production.ERROR: pbx CDR StartTime 2025-02-10 22:32:05 - End Time 2025-02-11 01:32:05 [2025-02-11 01:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448388', 'tblTempUsageDetail_20' ) start [2025-02-11 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448388', 'tblTempUsageDetail_20' ) end [2025-02-11 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448388', 'tblTempVendorCDR_20' ) start [2025-02-11 01:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448388', 'tblTempVendorCDR_20' ) end [2025-02-11 01:32:19] Production.INFO: ProcessCDR(1,14448388,1,1,2) [2025-02-11 01:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448388', 'tblTempUsageDetail_20' ) start [2025-02-11 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448388', 'tblTempUsageDetail_20' ) end [2025-02-11 01:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:32:22] Production.INFO: ==20747== Releasing lock... [2025-02-11 01:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:32:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-11 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:33:05 [end_date_ymd] => 2025-02-11 01:33:05 [RateCDR] => 1 ) [2025-02-11 01:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:33:05' and `end` < '2025-02-11 01:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:33:18] Production.INFO: count ==230 [2025-02-11 01:33:18] Production.ERROR: pbx CDR StartTime 2025-02-10 22:33:05 - End Time 2025-02-11 01:33:05 [2025-02-11 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448393', 'tblTempUsageDetail_20' ) start [2025-02-11 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448393', 'tblTempUsageDetail_20' ) end [2025-02-11 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448393', 'tblTempVendorCDR_20' ) start [2025-02-11 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448393', 'tblTempVendorCDR_20' ) end [2025-02-11 01:33:18] Production.INFO: ProcessCDR(1,14448393,1,1,2) [2025-02-11 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448393', 'tblTempUsageDetail_20' ) start [2025-02-11 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448393', 'tblTempUsageDetail_20' ) end [2025-02-11 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:33:21] Production.INFO: ==20831== Releasing lock... [2025-02-11 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:33:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-11 01:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:34:06 [end_date_ymd] => 2025-02-11 01:34:06 [RateCDR] => 1 ) [2025-02-11 01:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:34:06' and `end` < '2025-02-11 01:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:34:19] Production.INFO: count ==225 [2025-02-11 01:34:19] Production.ERROR: pbx CDR StartTime 2025-02-10 22:34:06 - End Time 2025-02-11 01:34:06 [2025-02-11 01:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448398', 'tblTempUsageDetail_20' ) start [2025-02-11 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448398', 'tblTempUsageDetail_20' ) end [2025-02-11 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448398', 'tblTempVendorCDR_20' ) start [2025-02-11 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448398', 'tblTempVendorCDR_20' ) end [2025-02-11 01:34:19] Production.INFO: ProcessCDR(1,14448398,1,1,2) [2025-02-11 01:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448398', 'tblTempUsageDetail_20' ) start [2025-02-11 01:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448398', 'tblTempUsageDetail_20' ) end [2025-02-11 01:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:34:23] Production.INFO: ==20958== Releasing lock... [2025-02-11 01:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:34:23] Production.INFO: 30 MB #Memory Used# [2025-02-11 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:35:05 [end_date_ymd] => 2025-02-11 01:35:05 [RateCDR] => 1 ) [2025-02-11 01:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:35:05' and `end` < '2025-02-11 01:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:35:19] Production.INFO: count ==225 [2025-02-11 01:35:19] Production.ERROR: pbx CDR StartTime 2025-02-10 22:35:05 - End Time 2025-02-11 01:35:05 [2025-02-11 01:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448403', 'tblTempUsageDetail_20' ) start [2025-02-11 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448403', 'tblTempUsageDetail_20' ) end [2025-02-11 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448403', 'tblTempVendorCDR_20' ) start [2025-02-11 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448403', 'tblTempVendorCDR_20' ) end [2025-02-11 01:35:19] Production.INFO: ProcessCDR(1,14448403,1,1,2) [2025-02-11 01:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448403', 'tblTempUsageDetail_20' ) start [2025-02-11 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448403', 'tblTempUsageDetail_20' ) end [2025-02-11 01:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:35:22] Production.INFO: ==21043== Releasing lock... [2025-02-11 01:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:35:22] Production.INFO: 30 MB #Memory Used# [2025-02-11 01:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:36:06 [end_date_ymd] => 2025-02-11 01:36:06 [RateCDR] => 1 ) [2025-02-11 01:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:36:06' and `end` < '2025-02-11 01:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:36:19] Production.INFO: count ==218 [2025-02-11 01:36:19] Production.ERROR: pbx CDR StartTime 2025-02-10 22:36:06 - End Time 2025-02-11 01:36:06 [2025-02-11 01:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448408', 'tblTempUsageDetail_20' ) start [2025-02-11 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448408', 'tblTempUsageDetail_20' ) end [2025-02-11 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448408', 'tblTempVendorCDR_20' ) start [2025-02-11 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448408', 'tblTempVendorCDR_20' ) end [2025-02-11 01:36:19] Production.INFO: ProcessCDR(1,14448408,1,1,2) [2025-02-11 01:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448408', 'tblTempUsageDetail_20' ) start [2025-02-11 01:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448408', 'tblTempUsageDetail_20' ) end [2025-02-11 01:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:36:23] Production.INFO: ==21126== Releasing lock... [2025-02-11 01:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:36:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-11 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:37:05 [end_date_ymd] => 2025-02-11 01:37:05 [RateCDR] => 1 ) [2025-02-11 01:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:37:05' and `end` < '2025-02-11 01:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:37:19] Production.INFO: count ==218 [2025-02-11 01:37:19] Production.ERROR: pbx CDR StartTime 2025-02-10 22:37:05 - End Time 2025-02-11 01:37:05 [2025-02-11 01:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448413', 'tblTempUsageDetail_20' ) start [2025-02-11 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448413', 'tblTempUsageDetail_20' ) end [2025-02-11 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448413', 'tblTempVendorCDR_20' ) start [2025-02-11 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448413', 'tblTempVendorCDR_20' ) end [2025-02-11 01:37:19] Production.INFO: ProcessCDR(1,14448413,1,1,2) [2025-02-11 01:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448413', 'tblTempUsageDetail_20' ) start [2025-02-11 01:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448413', 'tblTempUsageDetail_20' ) end [2025-02-11 01:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:37:23] Production.INFO: ==21202== Releasing lock... [2025-02-11 01:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:37:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-11 01:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:38:06 [end_date_ymd] => 2025-02-11 01:38:06 [RateCDR] => 1 ) [2025-02-11 01:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:38:06' and `end` < '2025-02-11 01:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:38:19] Production.INFO: count ==217 [2025-02-11 01:38:19] Production.ERROR: pbx CDR StartTime 2025-02-10 22:38:06 - End Time 2025-02-11 01:38:06 [2025-02-11 01:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448418', 'tblTempUsageDetail_20' ) start [2025-02-11 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448418', 'tblTempUsageDetail_20' ) end [2025-02-11 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448418', 'tblTempVendorCDR_20' ) start [2025-02-11 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448418', 'tblTempVendorCDR_20' ) end [2025-02-11 01:38:19] Production.INFO: ProcessCDR(1,14448418,1,1,2) [2025-02-11 01:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448418', 'tblTempUsageDetail_20' ) start [2025-02-11 01:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448418', 'tblTempUsageDetail_20' ) end [2025-02-11 01:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:38:23] Production.INFO: ==21287== Releasing lock... [2025-02-11 01:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:38:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-11 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:39:05 [end_date_ymd] => 2025-02-11 01:39:05 [RateCDR] => 1 ) [2025-02-11 01:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:39:05' and `end` < '2025-02-11 01:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:39:18] Production.INFO: count ==217 [2025-02-11 01:39:18] Production.ERROR: pbx CDR StartTime 2025-02-10 22:39:05 - End Time 2025-02-11 01:39:05 [2025-02-11 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448423', 'tblTempUsageDetail_20' ) start [2025-02-11 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448423', 'tblTempUsageDetail_20' ) end [2025-02-11 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448423', 'tblTempVendorCDR_20' ) start [2025-02-11 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448423', 'tblTempVendorCDR_20' ) end [2025-02-11 01:39:18] Production.INFO: ProcessCDR(1,14448423,1,1,2) [2025-02-11 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448423', 'tblTempUsageDetail_20' ) start [2025-02-11 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448423', 'tblTempUsageDetail_20' ) end [2025-02-11 01:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:39:22] Production.INFO: ==21373== Releasing lock... [2025-02-11 01:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:39:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-11 01:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:40:07 [end_date_ymd] => 2025-02-11 01:40:07 [RateCDR] => 1 ) [2025-02-11 01:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:40:07' and `end` < '2025-02-11 01:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:40:19] Production.INFO: count ==223 [2025-02-11 01:40:20] Production.ERROR: pbx CDR StartTime 2025-02-10 22:40:07 - End Time 2025-02-11 01:40:07 [2025-02-11 01:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448428', 'tblTempUsageDetail_20' ) start [2025-02-11 01:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448428', 'tblTempUsageDetail_20' ) end [2025-02-11 01:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448428', 'tblTempVendorCDR_20' ) start [2025-02-11 01:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448428', 'tblTempVendorCDR_20' ) end [2025-02-11 01:40:20] Production.INFO: ProcessCDR(1,14448428,1,1,2) [2025-02-11 01:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448428', 'tblTempUsageDetail_20' ) start [2025-02-11 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448428', 'tblTempUsageDetail_20' ) end [2025-02-11 01:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:40:23] Production.INFO: ==21459== Releasing lock... [2025-02-11 01:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:40:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-11 01:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:41:06 [end_date_ymd] => 2025-02-11 01:41:06 [RateCDR] => 1 ) [2025-02-11 01:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:41:06' and `end` < '2025-02-11 01:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:41:19] Production.INFO: count ==223 [2025-02-11 01:41:19] Production.ERROR: pbx CDR StartTime 2025-02-10 22:41:06 - End Time 2025-02-11 01:41:06 [2025-02-11 01:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448434', 'tblTempUsageDetail_20' ) start [2025-02-11 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448434', 'tblTempUsageDetail_20' ) end [2025-02-11 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448434', 'tblTempVendorCDR_20' ) start [2025-02-11 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448434', 'tblTempVendorCDR_20' ) end [2025-02-11 01:41:19] Production.INFO: ProcessCDR(1,14448434,1,1,2) [2025-02-11 01:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448434', 'tblTempUsageDetail_20' ) start [2025-02-11 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448434', 'tblTempUsageDetail_20' ) end [2025-02-11 01:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:41:22] Production.INFO: ==21541== Releasing lock... [2025-02-11 01:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:41:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-11 01:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:42:06 [end_date_ymd] => 2025-02-11 01:42:06 [RateCDR] => 1 ) [2025-02-11 01:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:42:06' and `end` < '2025-02-11 01:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:42:20] Production.INFO: count ==223 [2025-02-11 01:42:20] Production.ERROR: pbx CDR StartTime 2025-02-10 22:42:06 - End Time 2025-02-11 01:42:06 [2025-02-11 01:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448439', 'tblTempUsageDetail_20' ) start [2025-02-11 01:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448439', 'tblTempUsageDetail_20' ) end [2025-02-11 01:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448439', 'tblTempVendorCDR_20' ) start [2025-02-11 01:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448439', 'tblTempVendorCDR_20' ) end [2025-02-11 01:42:20] Production.INFO: ProcessCDR(1,14448439,1,1,2) [2025-02-11 01:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448439', 'tblTempUsageDetail_20' ) start [2025-02-11 01:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448439', 'tblTempUsageDetail_20' ) end [2025-02-11 01:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:42:23] Production.INFO: ==21628== Releasing lock... [2025-02-11 01:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:42:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-11 01:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:43:06 [end_date_ymd] => 2025-02-11 01:43:06 [RateCDR] => 1 ) [2025-02-11 01:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:43:06' and `end` < '2025-02-11 01:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:43:19] Production.INFO: count ==224 [2025-02-11 01:43:19] Production.ERROR: pbx CDR StartTime 2025-02-10 22:43:06 - End Time 2025-02-11 01:43:06 [2025-02-11 01:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448444', 'tblTempUsageDetail_20' ) start [2025-02-11 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448444', 'tblTempUsageDetail_20' ) end [2025-02-11 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448444', 'tblTempVendorCDR_20' ) start [2025-02-11 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448444', 'tblTempVendorCDR_20' ) end [2025-02-11 01:43:19] Production.INFO: ProcessCDR(1,14448444,1,1,2) [2025-02-11 01:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448444', 'tblTempUsageDetail_20' ) start [2025-02-11 01:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448444', 'tblTempUsageDetail_20' ) end [2025-02-11 01:43:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:43:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:43:25] Production.INFO: ==21714== Releasing lock... [2025-02-11 01:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:43:25] Production.INFO: 29.75 MB #Memory Used# [2025-02-11 01:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:44:06 [end_date_ymd] => 2025-02-11 01:44:06 [RateCDR] => 1 ) [2025-02-11 01:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:44:06' and `end` < '2025-02-11 01:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:44:20] Production.INFO: count ==223 [2025-02-11 01:44:20] Production.ERROR: pbx CDR StartTime 2025-02-10 22:44:06 - End Time 2025-02-11 01:44:06 [2025-02-11 01:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448447', 'tblTempUsageDetail_20' ) start [2025-02-11 01:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448447', 'tblTempUsageDetail_20' ) end [2025-02-11 01:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448447', 'tblTempVendorCDR_20' ) start [2025-02-11 01:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448447', 'tblTempVendorCDR_20' ) end [2025-02-11 01:44:20] Production.INFO: ProcessCDR(1,14448447,1,1,2) [2025-02-11 01:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448447', 'tblTempUsageDetail_20' ) start [2025-02-11 01:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448447', 'tblTempUsageDetail_20' ) end [2025-02-11 01:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:44:23] Production.INFO: ==21796== Releasing lock... [2025-02-11 01:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:44:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-11 01:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:45:06 [end_date_ymd] => 2025-02-11 01:45:06 [RateCDR] => 1 ) [2025-02-11 01:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:45:06' and `end` < '2025-02-11 01:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:45:18] Production.INFO: count ==223 [2025-02-11 01:45:18] Production.ERROR: pbx CDR StartTime 2025-02-10 22:45:06 - End Time 2025-02-11 01:45:06 [2025-02-11 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448454', 'tblTempUsageDetail_20' ) start [2025-02-11 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448454', 'tblTempUsageDetail_20' ) end [2025-02-11 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448454', 'tblTempVendorCDR_20' ) start [2025-02-11 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448454', 'tblTempVendorCDR_20' ) end [2025-02-11 01:45:18] Production.INFO: ProcessCDR(1,14448454,1,1,2) [2025-02-11 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448454', 'tblTempUsageDetail_20' ) start [2025-02-11 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448454', 'tblTempUsageDetail_20' ) end [2025-02-11 01:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:45:22] Production.INFO: ==21883== Releasing lock... [2025-02-11 01:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:45:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-11 01:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:46:06 [end_date_ymd] => 2025-02-11 01:46:06 [RateCDR] => 1 ) [2025-02-11 01:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:46:06' and `end` < '2025-02-11 01:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:46:19] Production.INFO: count ==227 [2025-02-11 01:46:19] Production.ERROR: pbx CDR StartTime 2025-02-10 22:46:06 - End Time 2025-02-11 01:46:06 [2025-02-11 01:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448459', 'tblTempUsageDetail_20' ) start [2025-02-11 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448459', 'tblTempUsageDetail_20' ) end [2025-02-11 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448459', 'tblTempVendorCDR_20' ) start [2025-02-11 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448459', 'tblTempVendorCDR_20' ) end [2025-02-11 01:46:19] Production.INFO: ProcessCDR(1,14448459,1,1,2) [2025-02-11 01:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448459', 'tblTempUsageDetail_20' ) start [2025-02-11 01:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448459', 'tblTempUsageDetail_20' ) end [2025-02-11 01:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:46:23] Production.INFO: ==21970== Releasing lock... [2025-02-11 01:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:46:23] Production.INFO: 30 MB #Memory Used# [2025-02-11 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:47:05 [end_date_ymd] => 2025-02-11 01:47:05 [RateCDR] => 1 ) [2025-02-11 01:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:47:05' and `end` < '2025-02-11 01:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:47:18] Production.INFO: count ==231 [2025-02-11 01:47:18] Production.ERROR: pbx CDR StartTime 2025-02-10 22:47:05 - End Time 2025-02-11 01:47:05 [2025-02-11 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448464', 'tblTempUsageDetail_20' ) start [2025-02-11 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448464', 'tblTempUsageDetail_20' ) end [2025-02-11 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448464', 'tblTempVendorCDR_20' ) start [2025-02-11 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448464', 'tblTempVendorCDR_20' ) end [2025-02-11 01:47:18] Production.INFO: ProcessCDR(1,14448464,1,1,2) [2025-02-11 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448464', 'tblTempUsageDetail_20' ) start [2025-02-11 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448464', 'tblTempUsageDetail_20' ) end [2025-02-11 01:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:47:22] Production.INFO: ==22048== Releasing lock... [2025-02-11 01:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:47:22] Production.INFO: 30 MB #Memory Used# [2025-02-11 01:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:48:06 [end_date_ymd] => 2025-02-11 01:48:06 [RateCDR] => 1 ) [2025-02-11 01:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:48:06' and `end` < '2025-02-11 01:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:48:20] Production.INFO: count ==222 [2025-02-11 01:48:20] Production.ERROR: pbx CDR StartTime 2025-02-10 22:48:06 - End Time 2025-02-11 01:48:06 [2025-02-11 01:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448469', 'tblTempUsageDetail_20' ) start [2025-02-11 01:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448469', 'tblTempUsageDetail_20' ) end [2025-02-11 01:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448469', 'tblTempVendorCDR_20' ) start [2025-02-11 01:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448469', 'tblTempVendorCDR_20' ) end [2025-02-11 01:48:20] Production.INFO: ProcessCDR(1,14448469,1,1,2) [2025-02-11 01:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448469', 'tblTempUsageDetail_20' ) start [2025-02-11 01:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448469', 'tblTempUsageDetail_20' ) end [2025-02-11 01:48:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:48:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:48:25] Production.INFO: ==22128== Releasing lock... [2025-02-11 01:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:48:25] Production.INFO: 29.75 MB #Memory Used# [2025-02-11 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:49:05 [end_date_ymd] => 2025-02-11 01:49:05 [RateCDR] => 1 ) [2025-02-11 01:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:49:05' and `end` < '2025-02-11 01:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:49:18] Production.INFO: count ==221 [2025-02-11 01:49:18] Production.ERROR: pbx CDR StartTime 2025-02-10 22:49:05 - End Time 2025-02-11 01:49:05 [2025-02-11 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448474', 'tblTempUsageDetail_20' ) start [2025-02-11 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448474', 'tblTempUsageDetail_20' ) end [2025-02-11 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448474', 'tblTempVendorCDR_20' ) start [2025-02-11 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448474', 'tblTempVendorCDR_20' ) end [2025-02-11 01:49:18] Production.INFO: ProcessCDR(1,14448474,1,1,2) [2025-02-11 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448474', 'tblTempUsageDetail_20' ) start [2025-02-11 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448474', 'tblTempUsageDetail_20' ) end [2025-02-11 01:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:49:22] Production.INFO: ==22245== Releasing lock... [2025-02-11 01:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:49:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-11 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:50:06 [end_date_ymd] => 2025-02-11 01:50:06 [RateCDR] => 1 ) [2025-02-11 01:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:50:06' and `end` < '2025-02-11 01:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:50:21] Production.INFO: count ==227 [2025-02-11 01:50:21] Production.ERROR: pbx CDR StartTime 2025-02-10 22:50:06 - End Time 2025-02-11 01:50:06 [2025-02-11 01:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448480', 'tblTempUsageDetail_20' ) start [2025-02-11 01:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448480', 'tblTempUsageDetail_20' ) end [2025-02-11 01:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448480', 'tblTempVendorCDR_20' ) start [2025-02-11 01:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448480', 'tblTempVendorCDR_20' ) end [2025-02-11 01:50:21] Production.INFO: ProcessCDR(1,14448480,1,1,2) [2025-02-11 01:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448480', 'tblTempUsageDetail_20' ) start [2025-02-11 01:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448480', 'tblTempUsageDetail_20' ) end [2025-02-11 01:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:50:24] Production.INFO: ==22320== Releasing lock... [2025-02-11 01:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:50:24] Production.INFO: 29.75 MB #Memory Used# [2025-02-11 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:51:05 [end_date_ymd] => 2025-02-11 01:51:05 [RateCDR] => 1 ) [2025-02-11 01:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:51:05' and `end` < '2025-02-11 01:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:51:18] Production.INFO: count ==227 [2025-02-11 01:51:18] Production.ERROR: pbx CDR StartTime 2025-02-10 22:51:05 - End Time 2025-02-11 01:51:05 [2025-02-11 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448485', 'tblTempUsageDetail_20' ) start [2025-02-11 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448485', 'tblTempUsageDetail_20' ) end [2025-02-11 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448485', 'tblTempVendorCDR_20' ) start [2025-02-11 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448485', 'tblTempVendorCDR_20' ) end [2025-02-11 01:51:18] Production.INFO: ProcessCDR(1,14448485,1,1,2) [2025-02-11 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448485', 'tblTempUsageDetail_20' ) start [2025-02-11 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448485', 'tblTempUsageDetail_20' ) end [2025-02-11 01:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:51:22] Production.INFO: ==22399== Releasing lock... [2025-02-11 01:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:51:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-11 01:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:52:06 [end_date_ymd] => 2025-02-11 01:52:06 [RateCDR] => 1 ) [2025-02-11 01:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:52:06' and `end` < '2025-02-11 01:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:52:19] Production.INFO: count ==225 [2025-02-11 01:52:19] Production.ERROR: pbx CDR StartTime 2025-02-10 22:52:06 - End Time 2025-02-11 01:52:06 [2025-02-11 01:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448490', 'tblTempUsageDetail_20' ) start [2025-02-11 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448490', 'tblTempUsageDetail_20' ) end [2025-02-11 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448490', 'tblTempVendorCDR_20' ) start [2025-02-11 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448490', 'tblTempVendorCDR_20' ) end [2025-02-11 01:52:19] Production.INFO: ProcessCDR(1,14448490,1,1,2) [2025-02-11 01:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448490', 'tblTempUsageDetail_20' ) start [2025-02-11 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448490', 'tblTempUsageDetail_20' ) end [2025-02-11 01:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:52:22] Production.INFO: ==22472== Releasing lock... [2025-02-11 01:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:52:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-11 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:53:05 [end_date_ymd] => 2025-02-11 01:53:05 [RateCDR] => 1 ) [2025-02-11 01:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:53:05' and `end` < '2025-02-11 01:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:53:18] Production.INFO: count ==224 [2025-02-11 01:53:18] Production.ERROR: pbx CDR StartTime 2025-02-10 22:53:05 - End Time 2025-02-11 01:53:05 [2025-02-11 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448495', 'tblTempUsageDetail_20' ) start [2025-02-11 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448495', 'tblTempUsageDetail_20' ) end [2025-02-11 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448495', 'tblTempVendorCDR_20' ) start [2025-02-11 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448495', 'tblTempVendorCDR_20' ) end [2025-02-11 01:53:18] Production.INFO: ProcessCDR(1,14448495,1,1,2) [2025-02-11 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448495', 'tblTempUsageDetail_20' ) start [2025-02-11 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448495', 'tblTempUsageDetail_20' ) end [2025-02-11 01:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:53:21] Production.INFO: ==22546== Releasing lock... [2025-02-11 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:53:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:54:05 [end_date_ymd] => 2025-02-11 01:54:05 [RateCDR] => 1 ) [2025-02-11 01:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:54:05' and `end` < '2025-02-11 01:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:54:20] Production.INFO: count ==224 [2025-02-11 01:54:20] Production.ERROR: pbx CDR StartTime 2025-02-10 22:54:05 - End Time 2025-02-11 01:54:05 [2025-02-11 01:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448500', 'tblTempUsageDetail_20' ) start [2025-02-11 01:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448500', 'tblTempUsageDetail_20' ) end [2025-02-11 01:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448500', 'tblTempVendorCDR_20' ) start [2025-02-11 01:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448500', 'tblTempVendorCDR_20' ) end [2025-02-11 01:54:20] Production.INFO: ProcessCDR(1,14448500,1,1,2) [2025-02-11 01:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448500', 'tblTempUsageDetail_20' ) start [2025-02-11 01:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448500', 'tblTempUsageDetail_20' ) end [2025-02-11 01:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:54:24] Production.INFO: ==22617== Releasing lock... [2025-02-11 01:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:54:24] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:55:05 [end_date_ymd] => 2025-02-11 01:55:05 [RateCDR] => 1 ) [2025-02-11 01:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:55:05' and `end` < '2025-02-11 01:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:55:18] Production.INFO: count ==230 [2025-02-11 01:55:18] Production.ERROR: pbx CDR StartTime 2025-02-10 22:55:05 - End Time 2025-02-11 01:55:05 [2025-02-11 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448505', 'tblTempUsageDetail_20' ) start [2025-02-11 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448505', 'tblTempUsageDetail_20' ) end [2025-02-11 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448505', 'tblTempVendorCDR_20' ) start [2025-02-11 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448505', 'tblTempVendorCDR_20' ) end [2025-02-11 01:55:18] Production.INFO: ProcessCDR(1,14448505,1,1,2) [2025-02-11 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448505', 'tblTempUsageDetail_20' ) start [2025-02-11 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448505', 'tblTempUsageDetail_20' ) end [2025-02-11 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:55:21] Production.INFO: ==22730== Releasing lock... [2025-02-11 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:55:21] Production.INFO: 30 MB #Memory Used# [2025-02-11 01:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:56:06 [end_date_ymd] => 2025-02-11 01:56:06 [RateCDR] => 1 ) [2025-02-11 01:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:56:06' and `end` < '2025-02-11 01:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:56:18] Production.INFO: count ==235 [2025-02-11 01:56:18] Production.ERROR: pbx CDR StartTime 2025-02-10 22:56:06 - End Time 2025-02-11 01:56:06 [2025-02-11 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448510', 'tblTempUsageDetail_20' ) start [2025-02-11 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448510', 'tblTempUsageDetail_20' ) end [2025-02-11 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448510', 'tblTempVendorCDR_20' ) start [2025-02-11 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448510', 'tblTempVendorCDR_20' ) end [2025-02-11 01:56:19] Production.INFO: ProcessCDR(1,14448510,1,1,2) [2025-02-11 01:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448510', 'tblTempUsageDetail_20' ) start [2025-02-11 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448510', 'tblTempUsageDetail_20' ) end [2025-02-11 01:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:56:22] Production.INFO: ==22804== Releasing lock... [2025-02-11 01:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:56:22] Production.INFO: 30 MB #Memory Used# [2025-02-11 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:57:05 [end_date_ymd] => 2025-02-11 01:57:05 [RateCDR] => 1 ) [2025-02-11 01:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:57:05' and `end` < '2025-02-11 01:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:57:18] Production.INFO: count ==231 [2025-02-11 01:57:18] Production.ERROR: pbx CDR StartTime 2025-02-10 22:57:05 - End Time 2025-02-11 01:57:05 [2025-02-11 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448515', 'tblTempUsageDetail_20' ) start [2025-02-11 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448515', 'tblTempUsageDetail_20' ) end [2025-02-11 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448515', 'tblTempVendorCDR_20' ) start [2025-02-11 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448515', 'tblTempVendorCDR_20' ) end [2025-02-11 01:57:18] Production.INFO: ProcessCDR(1,14448515,1,1,2) [2025-02-11 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448515', 'tblTempUsageDetail_20' ) start [2025-02-11 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448515', 'tblTempUsageDetail_20' ) end [2025-02-11 01:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:57:22] Production.INFO: ==22879== Releasing lock... [2025-02-11 01:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:57:22] Production.INFO: 30 MB #Memory Used# [2025-02-11 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:58:05 [end_date_ymd] => 2025-02-11 01:58:05 [RateCDR] => 1 ) [2025-02-11 01:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:58:05' and `end` < '2025-02-11 01:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:58:19] Production.INFO: count ==230 [2025-02-11 01:58:19] Production.ERROR: pbx CDR StartTime 2025-02-10 22:58:05 - End Time 2025-02-11 01:58:05 [2025-02-11 01:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448520', 'tblTempUsageDetail_20' ) start [2025-02-11 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448520', 'tblTempUsageDetail_20' ) end [2025-02-11 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448520', 'tblTempVendorCDR_20' ) start [2025-02-11 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448520', 'tblTempVendorCDR_20' ) end [2025-02-11 01:58:19] Production.INFO: ProcessCDR(1,14448520,1,1,2) [2025-02-11 01:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448520', 'tblTempUsageDetail_20' ) start [2025-02-11 01:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448520', 'tblTempUsageDetail_20' ) end [2025-02-11 01:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:58:23] Production.INFO: ==22950== Releasing lock... [2025-02-11 01:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:58:23] Production.INFO: 30 MB #Memory Used# [2025-02-11 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 22:59:05 [end_date_ymd] => 2025-02-11 01:59:05 [RateCDR] => 1 ) [2025-02-11 01:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 22:59:05' and `end` < '2025-02-11 01:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 01:59:18] Production.INFO: count ==230 [2025-02-11 01:59:18] Production.ERROR: pbx CDR StartTime 2025-02-10 22:59:05 - End Time 2025-02-11 01:59:05 [2025-02-11 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448525', 'tblTempUsageDetail_20' ) start [2025-02-11 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448525', 'tblTempUsageDetail_20' ) end [2025-02-11 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448525', 'tblTempVendorCDR_20' ) start [2025-02-11 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448525', 'tblTempVendorCDR_20' ) end [2025-02-11 01:59:18] Production.INFO: ProcessCDR(1,14448525,1,1,2) [2025-02-11 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448525', 'tblTempUsageDetail_20' ) start [2025-02-11 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448525', 'tblTempUsageDetail_20' ) end [2025-02-11 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 01:59:21] Production.INFO: ==23023== Releasing lock... [2025-02-11 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 01:59:21] Production.INFO: 30 MB #Memory Used# [2025-02-11 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:00:07 [end_date_ymd] => 2025-02-11 02:00:07 [RateCDR] => 1 ) [2025-02-11 02:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:00:07' and `end` < '2025-02-11 02:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:00:20] Production.INFO: count ==241 [2025-02-11 02:00:20] Production.ERROR: pbx CDR StartTime 2025-02-10 23:00:07 - End Time 2025-02-11 02:00:07 [2025-02-11 02:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448531', 'tblTempUsageDetail_20' ) start [2025-02-11 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448531', 'tblTempUsageDetail_20' ) end [2025-02-11 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448531', 'tblTempVendorCDR_20' ) start [2025-02-11 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448531', 'tblTempVendorCDR_20' ) end [2025-02-11 02:00:20] Production.INFO: ProcessCDR(1,14448531,1,1,2) [2025-02-11 02:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448531', 'tblTempUsageDetail_20' ) start [2025-02-11 02:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448531', 'tblTempUsageDetail_20' ) end [2025-02-11 02:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:00:25] Production.INFO: ==23103== Releasing lock... [2025-02-11 02:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:00:25] Production.INFO: 29.75 MB #Memory Used# [2025-02-11 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:01:05 [end_date_ymd] => 2025-02-11 02:01:05 [RateCDR] => 1 ) [2025-02-11 02:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:01:05' and `end` < '2025-02-11 02:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:01:19] Production.INFO: count ==245 [2025-02-11 02:01:19] Production.ERROR: pbx CDR StartTime 2025-02-10 23:01:05 - End Time 2025-02-11 02:01:05 [2025-02-11 02:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448536', 'tblTempUsageDetail_20' ) start [2025-02-11 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448536', 'tblTempUsageDetail_20' ) end [2025-02-11 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448536', 'tblTempVendorCDR_20' ) start [2025-02-11 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448536', 'tblTempVendorCDR_20' ) end [2025-02-11 02:01:19] Production.INFO: ProcessCDR(1,14448536,1,1,2) [2025-02-11 02:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448536', 'tblTempUsageDetail_20' ) start [2025-02-11 02:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448536', 'tblTempUsageDetail_20' ) end [2025-02-11 02:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:01:23] Production.INFO: ==23281== Releasing lock... [2025-02-11 02:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:01:23] Production.INFO: 30 MB #Memory Used# [2025-02-11 02:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:02:06 [end_date_ymd] => 2025-02-11 02:02:06 [RateCDR] => 1 ) [2025-02-11 02:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:02:06' and `end` < '2025-02-11 02:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:02:20] Production.INFO: count ==245 [2025-02-11 02:02:20] Production.ERROR: pbx CDR StartTime 2025-02-10 23:02:06 - End Time 2025-02-11 02:02:06 [2025-02-11 02:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448541', 'tblTempUsageDetail_20' ) start [2025-02-11 02:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448541', 'tblTempUsageDetail_20' ) end [2025-02-11 02:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448541', 'tblTempVendorCDR_20' ) start [2025-02-11 02:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448541', 'tblTempVendorCDR_20' ) end [2025-02-11 02:02:20] Production.INFO: ProcessCDR(1,14448541,1,1,2) [2025-02-11 02:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448541', 'tblTempUsageDetail_20' ) start [2025-02-11 02:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448541', 'tblTempUsageDetail_20' ) end [2025-02-11 02:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:02:23] Production.INFO: ==23359== Releasing lock... [2025-02-11 02:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:02:23] Production.INFO: 30 MB #Memory Used# [2025-02-11 02:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:03:05 [end_date_ymd] => 2025-02-11 02:03:05 [RateCDR] => 1 ) [2025-02-11 02:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:03:05' and `end` < '2025-02-11 02:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:03:19] Production.INFO: count ==245 [2025-02-11 02:03:19] Production.ERROR: pbx CDR StartTime 2025-02-10 23:03:05 - End Time 2025-02-11 02:03:05 [2025-02-11 02:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448546', 'tblTempUsageDetail_20' ) start [2025-02-11 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448546', 'tblTempUsageDetail_20' ) end [2025-02-11 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448546', 'tblTempVendorCDR_20' ) start [2025-02-11 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448546', 'tblTempVendorCDR_20' ) end [2025-02-11 02:03:19] Production.INFO: ProcessCDR(1,14448546,1,1,2) [2025-02-11 02:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448546', 'tblTempUsageDetail_20' ) start [2025-02-11 02:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448546', 'tblTempUsageDetail_20' ) end [2025-02-11 02:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:03:23] Production.INFO: ==23435== Releasing lock... [2025-02-11 02:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:03:23] Production.INFO: 30 MB #Memory Used# [2025-02-11 02:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:04:06 [end_date_ymd] => 2025-02-11 02:04:06 [RateCDR] => 1 ) [2025-02-11 02:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:04:06' and `end` < '2025-02-11 02:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:04:19] Production.INFO: count ==249 [2025-02-11 02:04:19] Production.ERROR: pbx CDR StartTime 2025-02-10 23:04:06 - End Time 2025-02-11 02:04:06 [2025-02-11 02:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448551', 'tblTempUsageDetail_20' ) start [2025-02-11 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448551', 'tblTempUsageDetail_20' ) end [2025-02-11 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448551', 'tblTempVendorCDR_20' ) start [2025-02-11 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448551', 'tblTempVendorCDR_20' ) end [2025-02-11 02:04:19] Production.INFO: ProcessCDR(1,14448551,1,1,2) [2025-02-11 02:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448551', 'tblTempUsageDetail_20' ) start [2025-02-11 02:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448551', 'tblTempUsageDetail_20' ) end [2025-02-11 02:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:04:23] Production.INFO: ==23509== Releasing lock... [2025-02-11 02:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:04:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-11 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:05:05 [end_date_ymd] => 2025-02-11 02:05:05 [RateCDR] => 1 ) [2025-02-11 02:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:05:05' and `end` < '2025-02-11 02:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:05:18] Production.INFO: count ==249 [2025-02-11 02:05:18] Production.ERROR: pbx CDR StartTime 2025-02-10 23:05:05 - End Time 2025-02-11 02:05:05 [2025-02-11 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448556', 'tblTempUsageDetail_20' ) start [2025-02-11 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448556', 'tblTempUsageDetail_20' ) end [2025-02-11 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448556', 'tblTempVendorCDR_20' ) start [2025-02-11 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448556', 'tblTempVendorCDR_20' ) end [2025-02-11 02:05:18] Production.INFO: ProcessCDR(1,14448556,1,1,2) [2025-02-11 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448556', 'tblTempUsageDetail_20' ) start [2025-02-11 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448556', 'tblTempUsageDetail_20' ) end [2025-02-11 02:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:05:22] Production.INFO: ==23619== Releasing lock... [2025-02-11 02:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:05:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-11 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:06:05 [end_date_ymd] => 2025-02-11 02:06:05 [RateCDR] => 1 ) [2025-02-11 02:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:06:05' and `end` < '2025-02-11 02:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:06:19] Production.INFO: count ==249 [2025-02-11 02:06:19] Production.ERROR: pbx CDR StartTime 2025-02-10 23:06:05 - End Time 2025-02-11 02:06:05 [2025-02-11 02:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448561', 'tblTempUsageDetail_20' ) start [2025-02-11 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448561', 'tblTempUsageDetail_20' ) end [2025-02-11 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448561', 'tblTempVendorCDR_20' ) start [2025-02-11 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448561', 'tblTempVendorCDR_20' ) end [2025-02-11 02:06:19] Production.INFO: ProcessCDR(1,14448561,1,1,2) [2025-02-11 02:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448561', 'tblTempUsageDetail_20' ) start [2025-02-11 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448561', 'tblTempUsageDetail_20' ) end [2025-02-11 02:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:06:22] Production.INFO: ==23692== Releasing lock... [2025-02-11 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:06:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-11 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:07:05 [end_date_ymd] => 2025-02-11 02:07:05 [RateCDR] => 1 ) [2025-02-11 02:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:07:05' and `end` < '2025-02-11 02:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:07:18] Production.INFO: count ==249 [2025-02-11 02:07:18] Production.ERROR: pbx CDR StartTime 2025-02-10 23:07:05 - End Time 2025-02-11 02:07:05 [2025-02-11 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448566', 'tblTempUsageDetail_20' ) start [2025-02-11 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448566', 'tblTempUsageDetail_20' ) end [2025-02-11 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448566', 'tblTempVendorCDR_20' ) start [2025-02-11 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448566', 'tblTempVendorCDR_20' ) end [2025-02-11 02:07:19] Production.INFO: ProcessCDR(1,14448566,1,1,2) [2025-02-11 02:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448566', 'tblTempUsageDetail_20' ) start [2025-02-11 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448566', 'tblTempUsageDetail_20' ) end [2025-02-11 02:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:07:22] Production.INFO: ==23763== Releasing lock... [2025-02-11 02:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:07:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-11 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:08:05 [end_date_ymd] => 2025-02-11 02:08:05 [RateCDR] => 1 ) [2025-02-11 02:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:08:05' and `end` < '2025-02-11 02:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:08:19] Production.INFO: count ==246 [2025-02-11 02:08:19] Production.ERROR: pbx CDR StartTime 2025-02-10 23:08:05 - End Time 2025-02-11 02:08:05 [2025-02-11 02:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448571', 'tblTempUsageDetail_20' ) start [2025-02-11 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448571', 'tblTempUsageDetail_20' ) end [2025-02-11 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448571', 'tblTempVendorCDR_20' ) start [2025-02-11 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448571', 'tblTempVendorCDR_20' ) end [2025-02-11 02:08:19] Production.INFO: ProcessCDR(1,14448571,1,1,2) [2025-02-11 02:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448571', 'tblTempUsageDetail_20' ) start [2025-02-11 02:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448571', 'tblTempUsageDetail_20' ) end [2025-02-11 02:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:08:23] Production.INFO: ==23842== Releasing lock... [2025-02-11 02:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:08:23] Production.INFO: 30 MB #Memory Used# [2025-02-11 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:09:05 [end_date_ymd] => 2025-02-11 02:09:05 [RateCDR] => 1 ) [2025-02-11 02:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:09:05' and `end` < '2025-02-11 02:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:09:18] Production.INFO: count ==244 [2025-02-11 02:09:18] Production.ERROR: pbx CDR StartTime 2025-02-10 23:09:05 - End Time 2025-02-11 02:09:05 [2025-02-11 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448576', 'tblTempUsageDetail_20' ) start [2025-02-11 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448576', 'tblTempUsageDetail_20' ) end [2025-02-11 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448576', 'tblTempVendorCDR_20' ) start [2025-02-11 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448576', 'tblTempVendorCDR_20' ) end [2025-02-11 02:09:18] Production.INFO: ProcessCDR(1,14448576,1,1,2) [2025-02-11 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448576', 'tblTempUsageDetail_20' ) start [2025-02-11 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448576', 'tblTempUsageDetail_20' ) end [2025-02-11 02:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:09:21] Production.INFO: ==23912== Releasing lock... [2025-02-11 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:09:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-11 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:10:06 [end_date_ymd] => 2025-02-11 02:10:06 [RateCDR] => 1 ) [2025-02-11 02:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:10:06' and `end` < '2025-02-11 02:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:10:20] Production.INFO: count ==250 [2025-02-11 02:10:20] Production.ERROR: pbx CDR StartTime 2025-02-10 23:10:06 - End Time 2025-02-11 02:10:06 [2025-02-11 02:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448581', 'tblTempUsageDetail_20' ) start [2025-02-11 02:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448581', 'tblTempUsageDetail_20' ) end [2025-02-11 02:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448581', 'tblTempVendorCDR_20' ) start [2025-02-11 02:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448581', 'tblTempVendorCDR_20' ) end [2025-02-11 02:10:20] Production.INFO: ProcessCDR(1,14448581,1,1,2) [2025-02-11 02:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448581', 'tblTempUsageDetail_20' ) start [2025-02-11 02:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448581', 'tblTempUsageDetail_20' ) end [2025-02-11 02:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:10:23] Production.INFO: ==23987== Releasing lock... [2025-02-11 02:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:10:23] Production.INFO: 30 MB #Memory Used# [2025-02-11 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:11:05 [end_date_ymd] => 2025-02-11 02:11:05 [RateCDR] => 1 ) [2025-02-11 02:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:11:05' and `end` < '2025-02-11 02:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:11:19] Production.INFO: count ==246 [2025-02-11 02:11:19] Production.ERROR: pbx CDR StartTime 2025-02-10 23:11:05 - End Time 2025-02-11 02:11:05 [2025-02-11 02:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448587', 'tblTempUsageDetail_20' ) start [2025-02-11 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448587', 'tblTempUsageDetail_20' ) end [2025-02-11 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448587', 'tblTempVendorCDR_20' ) start [2025-02-11 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448587', 'tblTempVendorCDR_20' ) end [2025-02-11 02:11:19] Production.INFO: ProcessCDR(1,14448587,1,1,2) [2025-02-11 02:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448587', 'tblTempUsageDetail_20' ) start [2025-02-11 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448587', 'tblTempUsageDetail_20' ) end [2025-02-11 02:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:11:22] Production.INFO: ==24060== Releasing lock... [2025-02-11 02:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:11:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:12:05 [end_date_ymd] => 2025-02-11 02:12:05 [RateCDR] => 1 ) [2025-02-11 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-02-10 23:12:05' and `end` < '2025-02-11 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-02-11 02:12:18] Production.INFO: count ==246 [2025-02-11 02:12:18] Production.ERROR: pbx CDR StartTime 2025-02-10 23:12:05 - End Time 2025-02-11 02:12:05 [2025-02-11 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448592', 'tblTempUsageDetail_20' ) start [2025-02-11 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448592', 'tblTempUsageDetail_20' ) end [2025-02-11 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448592', 'tblTempVendorCDR_20' ) start [2025-02-11 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448592', 'tblTempVendorCDR_20' ) end [2025-02-11 02:12:18] Production.INFO: ProcessCDR(1,14448592,1,1,2) [2025-02-11 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448592', 'tblTempUsageDetail_20' ) start [2025-02-11 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448592', 'tblTempUsageDetail_20' ) end [2025-02-11 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:12:21] Production.INFO: ==24135== Releasing lock... [2025-02-11 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:12:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:13:05 [end_date_ymd] => 2025-02-11 02:13:05 [RateCDR] => 1 ) [2025-02-11 02:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:13:05' and `end` < '2025-02-11 02:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:13:18] Production.INFO: count ==242 [2025-02-11 02:13:18] Production.ERROR: pbx CDR StartTime 2025-02-10 23:13:05 - End Time 2025-02-11 02:13:05 [2025-02-11 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448597', 'tblTempUsageDetail_20' ) start [2025-02-11 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448597', 'tblTempUsageDetail_20' ) end [2025-02-11 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448597', 'tblTempVendorCDR_20' ) start [2025-02-11 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448597', 'tblTempVendorCDR_20' ) end [2025-02-11 02:13:19] Production.INFO: ProcessCDR(1,14448597,1,1,2) [2025-02-11 02:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448597', 'tblTempUsageDetail_20' ) start [2025-02-11 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448597', 'tblTempUsageDetail_20' ) end [2025-02-11 02:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:13:22] Production.INFO: ==24208== Releasing lock... [2025-02-11 02:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:13:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-11 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:14:05 [end_date_ymd] => 2025-02-11 02:14:05 [RateCDR] => 1 ) [2025-02-11 02:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:14:05' and `end` < '2025-02-11 02:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:14:18] Production.INFO: count ==242 [2025-02-11 02:14:18] Production.ERROR: pbx CDR StartTime 2025-02-10 23:14:05 - End Time 2025-02-11 02:14:05 [2025-02-11 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448602', 'tblTempUsageDetail_20' ) start [2025-02-11 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448602', 'tblTempUsageDetail_20' ) end [2025-02-11 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448602', 'tblTempVendorCDR_20' ) start [2025-02-11 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448602', 'tblTempVendorCDR_20' ) end [2025-02-11 02:14:18] Production.INFO: ProcessCDR(1,14448602,1,1,2) [2025-02-11 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448602', 'tblTempUsageDetail_20' ) start [2025-02-11 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448602', 'tblTempUsageDetail_20' ) end [2025-02-11 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:14:21] Production.INFO: ==24286== Releasing lock... [2025-02-11 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:14:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-11 02:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:15:04 [end_date_ymd] => 2025-02-11 02:15:04 [RateCDR] => 1 ) [2025-02-11 02:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:15:04' and `end` < '2025-02-11 02:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:15:17] Production.INFO: count ==242 [2025-02-11 02:15:17] Production.ERROR: pbx CDR StartTime 2025-02-10 23:15:04 - End Time 2025-02-11 02:15:04 [2025-02-11 02:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448607', 'tblTempUsageDetail_20' ) start [2025-02-11 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448607', 'tblTempUsageDetail_20' ) end [2025-02-11 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448607', 'tblTempVendorCDR_20' ) start [2025-02-11 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448607', 'tblTempVendorCDR_20' ) end [2025-02-11 02:15:17] Production.INFO: ProcessCDR(1,14448607,1,1,2) [2025-02-11 02:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448607', 'tblTempUsageDetail_20' ) start [2025-02-11 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448607', 'tblTempUsageDetail_20' ) end [2025-02-11 02:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:15:20] Production.INFO: ==24363== Releasing lock... [2025-02-11 02:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:15:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-11 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:16:05 [end_date_ymd] => 2025-02-11 02:16:05 [RateCDR] => 1 ) [2025-02-11 02:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:16:05' and `end` < '2025-02-11 02:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:16:18] Production.INFO: count ==239 [2025-02-11 02:16:18] Production.ERROR: pbx CDR StartTime 2025-02-10 23:16:05 - End Time 2025-02-11 02:16:05 [2025-02-11 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448612', 'tblTempUsageDetail_20' ) start [2025-02-11 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448612', 'tblTempUsageDetail_20' ) end [2025-02-11 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448612', 'tblTempVendorCDR_20' ) start [2025-02-11 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448612', 'tblTempVendorCDR_20' ) end [2025-02-11 02:16:18] Production.INFO: ProcessCDR(1,14448612,1,1,2) [2025-02-11 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448612', 'tblTempUsageDetail_20' ) start [2025-02-11 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448612', 'tblTempUsageDetail_20' ) end [2025-02-11 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:16:21] Production.INFO: ==24439== Releasing lock... [2025-02-11 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:16:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-11 02:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:17:04 [end_date_ymd] => 2025-02-11 02:17:04 [RateCDR] => 1 ) [2025-02-11 02:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:17:04' and `end` < '2025-02-11 02:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:17:17] Production.INFO: count ==239 [2025-02-11 02:17:17] Production.ERROR: pbx CDR StartTime 2025-02-10 23:17:04 - End Time 2025-02-11 02:17:04 [2025-02-11 02:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448617', 'tblTempUsageDetail_20' ) start [2025-02-11 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448617', 'tblTempUsageDetail_20' ) end [2025-02-11 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448617', 'tblTempVendorCDR_20' ) start [2025-02-11 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448617', 'tblTempVendorCDR_20' ) end [2025-02-11 02:17:17] Production.INFO: ProcessCDR(1,14448617,1,1,2) [2025-02-11 02:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448617', 'tblTempUsageDetail_20' ) start [2025-02-11 02:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448617', 'tblTempUsageDetail_20' ) end [2025-02-11 02:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:17:20] Production.INFO: ==24511== Releasing lock... [2025-02-11 02:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:17:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-11 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:18:05 [end_date_ymd] => 2025-02-11 02:18:05 [RateCDR] => 1 ) [2025-02-11 02:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:18:05' and `end` < '2025-02-11 02:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:18:18] Production.INFO: count ==239 [2025-02-11 02:18:18] Production.ERROR: pbx CDR StartTime 2025-02-10 23:18:05 - End Time 2025-02-11 02:18:05 [2025-02-11 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448622', 'tblTempUsageDetail_20' ) start [2025-02-11 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448622', 'tblTempUsageDetail_20' ) end [2025-02-11 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448622', 'tblTempVendorCDR_20' ) start [2025-02-11 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448622', 'tblTempVendorCDR_20' ) end [2025-02-11 02:18:18] Production.INFO: ProcessCDR(1,14448622,1,1,2) [2025-02-11 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448622', 'tblTempUsageDetail_20' ) start [2025-02-11 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448622', 'tblTempUsageDetail_20' ) end [2025-02-11 02:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:18:21] Production.INFO: ==24582== Releasing lock... [2025-02-11 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:18:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-11 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:19:05 [end_date_ymd] => 2025-02-11 02:19:05 [RateCDR] => 1 ) [2025-02-11 02:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:19:05' and `end` < '2025-02-11 02:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:19:18] Production.INFO: count ==238 [2025-02-11 02:19:18] Production.ERROR: pbx CDR StartTime 2025-02-10 23:19:05 - End Time 2025-02-11 02:19:05 [2025-02-11 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448627', 'tblTempUsageDetail_20' ) start [2025-02-11 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448627', 'tblTempUsageDetail_20' ) end [2025-02-11 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448627', 'tblTempVendorCDR_20' ) start [2025-02-11 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448627', 'tblTempVendorCDR_20' ) end [2025-02-11 02:19:18] Production.INFO: ProcessCDR(1,14448627,1,1,2) [2025-02-11 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448627', 'tblTempUsageDetail_20' ) start [2025-02-11 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448627', 'tblTempUsageDetail_20' ) end [2025-02-11 02:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:19:22] Production.INFO: ==24655== Releasing lock... [2025-02-11 02:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:19:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-11 02:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:20:05 [end_date_ymd] => 2025-02-11 02:20:05 [RateCDR] => 1 ) [2025-02-11 02:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:20:05' and `end` < '2025-02-11 02:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:20:18] Production.INFO: count ==238 [2025-02-11 02:20:18] Production.ERROR: pbx CDR StartTime 2025-02-10 23:20:05 - End Time 2025-02-11 02:20:05 [2025-02-11 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448633', 'tblTempUsageDetail_20' ) start [2025-02-11 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448633', 'tblTempUsageDetail_20' ) end [2025-02-11 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448633', 'tblTempVendorCDR_20' ) start [2025-02-11 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448633', 'tblTempVendorCDR_20' ) end [2025-02-11 02:20:18] Production.INFO: ProcessCDR(1,14448633,1,1,2) [2025-02-11 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448633', 'tblTempUsageDetail_20' ) start [2025-02-11 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448633', 'tblTempUsageDetail_20' ) end [2025-02-11 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:20:22] Production.INFO: ==24769== Releasing lock... [2025-02-11 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:20:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-11 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:21:05 [end_date_ymd] => 2025-02-11 02:21:05 [RateCDR] => 1 ) [2025-02-11 02:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:21:05' and `end` < '2025-02-11 02:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:21:18] Production.INFO: count ==238 [2025-02-11 02:21:18] Production.ERROR: pbx CDR StartTime 2025-02-10 23:21:05 - End Time 2025-02-11 02:21:05 [2025-02-11 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448638', 'tblTempUsageDetail_20' ) start [2025-02-11 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448638', 'tblTempUsageDetail_20' ) end [2025-02-11 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448638', 'tblTempVendorCDR_20' ) start [2025-02-11 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448638', 'tblTempVendorCDR_20' ) end [2025-02-11 02:21:18] Production.INFO: ProcessCDR(1,14448638,1,1,2) [2025-02-11 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448638', 'tblTempUsageDetail_20' ) start [2025-02-11 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448638', 'tblTempUsageDetail_20' ) end [2025-02-11 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:21:22] Production.INFO: ==24841== Releasing lock... [2025-02-11 02:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:21:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-11 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:22:05 [end_date_ymd] => 2025-02-11 02:22:05 [RateCDR] => 1 ) [2025-02-11 02:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:22:05' and `end` < '2025-02-11 02:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:22:18] Production.INFO: count ==237 [2025-02-11 02:22:18] Production.ERROR: pbx CDR StartTime 2025-02-10 23:22:05 - End Time 2025-02-11 02:22:05 [2025-02-11 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448643', 'tblTempUsageDetail_20' ) start [2025-02-11 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448643', 'tblTempUsageDetail_20' ) end [2025-02-11 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448643', 'tblTempVendorCDR_20' ) start [2025-02-11 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448643', 'tblTempVendorCDR_20' ) end [2025-02-11 02:22:18] Production.INFO: ProcessCDR(1,14448643,1,1,2) [2025-02-11 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448643', 'tblTempUsageDetail_20' ) start [2025-02-11 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448643', 'tblTempUsageDetail_20' ) end [2025-02-11 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:22:21] Production.INFO: ==24918== Releasing lock... [2025-02-11 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:22:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 02:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:23:06 [end_date_ymd] => 2025-02-11 02:23:06 [RateCDR] => 1 ) [2025-02-11 02:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:23:06' and `end` < '2025-02-11 02:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:23:18] Production.INFO: count ==237 [2025-02-11 02:23:18] Production.ERROR: pbx CDR StartTime 2025-02-10 23:23:06 - End Time 2025-02-11 02:23:06 [2025-02-11 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448648', 'tblTempUsageDetail_20' ) start [2025-02-11 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448648', 'tblTempUsageDetail_20' ) end [2025-02-11 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448648', 'tblTempVendorCDR_20' ) start [2025-02-11 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448648', 'tblTempVendorCDR_20' ) end [2025-02-11 02:23:18] Production.INFO: ProcessCDR(1,14448648,1,1,2) [2025-02-11 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448648', 'tblTempUsageDetail_20' ) start [2025-02-11 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448648', 'tblTempUsageDetail_20' ) end [2025-02-11 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:23:22] Production.INFO: ==24993== Releasing lock... [2025-02-11 02:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:23:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:24:05 [end_date_ymd] => 2025-02-11 02:24:05 [RateCDR] => 1 ) [2025-02-11 02:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:24:05' and `end` < '2025-02-11 02:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:24:18] Production.INFO: count ==237 [2025-02-11 02:24:18] Production.ERROR: pbx CDR StartTime 2025-02-10 23:24:05 - End Time 2025-02-11 02:24:05 [2025-02-11 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448653', 'tblTempUsageDetail_20' ) start [2025-02-11 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448653', 'tblTempUsageDetail_20' ) end [2025-02-11 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448653', 'tblTempVendorCDR_20' ) start [2025-02-11 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448653', 'tblTempVendorCDR_20' ) end [2025-02-11 02:24:18] Production.INFO: ProcessCDR(1,14448653,1,1,2) [2025-02-11 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448653', 'tblTempUsageDetail_20' ) start [2025-02-11 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448653', 'tblTempUsageDetail_20' ) end [2025-02-11 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:24:21] Production.INFO: ==25063== Releasing lock... [2025-02-11 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:24:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:25:05 [end_date_ymd] => 2025-02-11 02:25:05 [RateCDR] => 1 ) [2025-02-11 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:25:05' and `end` < '2025-02-11 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:25:18] Production.INFO: count ==237 [2025-02-11 02:25:18] Production.ERROR: pbx CDR StartTime 2025-02-10 23:25:05 - End Time 2025-02-11 02:25:05 [2025-02-11 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448658', 'tblTempUsageDetail_20' ) start [2025-02-11 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448658', 'tblTempUsageDetail_20' ) end [2025-02-11 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448658', 'tblTempVendorCDR_20' ) start [2025-02-11 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448658', 'tblTempVendorCDR_20' ) end [2025-02-11 02:25:18] Production.INFO: ProcessCDR(1,14448658,1,1,2) [2025-02-11 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448658', 'tblTempUsageDetail_20' ) start [2025-02-11 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448658', 'tblTempUsageDetail_20' ) end [2025-02-11 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:25:21] Production.INFO: ==25133== Releasing lock... [2025-02-11 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:25:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 02:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:26:04 [end_date_ymd] => 2025-02-11 02:26:04 [RateCDR] => 1 ) [2025-02-11 02:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:26:04' and `end` < '2025-02-11 02:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:26:18] Production.INFO: count ==237 [2025-02-11 02:26:18] Production.ERROR: pbx CDR StartTime 2025-02-10 23:26:04 - End Time 2025-02-11 02:26:04 [2025-02-11 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448663', 'tblTempUsageDetail_20' ) start [2025-02-11 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448663', 'tblTempUsageDetail_20' ) end [2025-02-11 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448663', 'tblTempVendorCDR_20' ) start [2025-02-11 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448663', 'tblTempVendorCDR_20' ) end [2025-02-11 02:26:18] Production.INFO: ProcessCDR(1,14448663,1,1,2) [2025-02-11 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448663', 'tblTempUsageDetail_20' ) start [2025-02-11 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448663', 'tblTempUsageDetail_20' ) end [2025-02-11 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:26:21] Production.INFO: ==25204== Releasing lock... [2025-02-11 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:26:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:27:05 [end_date_ymd] => 2025-02-11 02:27:05 [RateCDR] => 1 ) [2025-02-11 02:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:27:05' and `end` < '2025-02-11 02:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:27:18] Production.INFO: count ==237 [2025-02-11 02:27:18] Production.ERROR: pbx CDR StartTime 2025-02-10 23:27:05 - End Time 2025-02-11 02:27:05 [2025-02-11 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448668', 'tblTempUsageDetail_20' ) start [2025-02-11 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448668', 'tblTempUsageDetail_20' ) end [2025-02-11 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448668', 'tblTempVendorCDR_20' ) start [2025-02-11 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448668', 'tblTempVendorCDR_20' ) end [2025-02-11 02:27:18] Production.INFO: ProcessCDR(1,14448668,1,1,2) [2025-02-11 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448668', 'tblTempUsageDetail_20' ) start [2025-02-11 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448668', 'tblTempUsageDetail_20' ) end [2025-02-11 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:27:21] Production.INFO: ==25278== Releasing lock... [2025-02-11 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:27:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:28:05 [end_date_ymd] => 2025-02-11 02:28:05 [RateCDR] => 1 ) [2025-02-11 02:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:28:05' and `end` < '2025-02-11 02:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:28:19] Production.INFO: count ==237 [2025-02-11 02:28:19] Production.ERROR: pbx CDR StartTime 2025-02-10 23:28:05 - End Time 2025-02-11 02:28:05 [2025-02-11 02:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448673', 'tblTempUsageDetail_20' ) start [2025-02-11 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448673', 'tblTempUsageDetail_20' ) end [2025-02-11 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448673', 'tblTempVendorCDR_20' ) start [2025-02-11 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448673', 'tblTempVendorCDR_20' ) end [2025-02-11 02:28:19] Production.INFO: ProcessCDR(1,14448673,1,1,2) [2025-02-11 02:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448673', 'tblTempUsageDetail_20' ) start [2025-02-11 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448673', 'tblTempUsageDetail_20' ) end [2025-02-11 02:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:28:22] Production.INFO: ==25351== Releasing lock... [2025-02-11 02:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:28:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:29:05 [end_date_ymd] => 2025-02-11 02:29:05 [RateCDR] => 1 ) [2025-02-11 02:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:29:05' and `end` < '2025-02-11 02:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:29:18] Production.INFO: count ==236 [2025-02-11 02:29:18] Production.ERROR: pbx CDR StartTime 2025-02-10 23:29:05 - End Time 2025-02-11 02:29:05 [2025-02-11 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448678', 'tblTempUsageDetail_20' ) start [2025-02-11 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448678', 'tblTempUsageDetail_20' ) end [2025-02-11 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448678', 'tblTempVendorCDR_20' ) start [2025-02-11 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448678', 'tblTempVendorCDR_20' ) end [2025-02-11 02:29:18] Production.INFO: ProcessCDR(1,14448678,1,1,2) [2025-02-11 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448678', 'tblTempUsageDetail_20' ) start [2025-02-11 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448678', 'tblTempUsageDetail_20' ) end [2025-02-11 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:29:21] Production.INFO: ==25420== Releasing lock... [2025-02-11 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:29:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 02:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:30:05 [end_date_ymd] => 2025-02-11 02:30:05 [RateCDR] => 1 ) [2025-02-11 02:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:30:05' and `end` < '2025-02-11 02:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:30:18] Production.INFO: count ==242 [2025-02-11 02:30:18] Production.ERROR: pbx CDR StartTime 2025-02-10 23:30:05 - End Time 2025-02-11 02:30:05 [2025-02-11 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448683', 'tblTempUsageDetail_20' ) start [2025-02-11 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448683', 'tblTempUsageDetail_20' ) end [2025-02-11 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448683', 'tblTempVendorCDR_20' ) start [2025-02-11 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448683', 'tblTempVendorCDR_20' ) end [2025-02-11 02:30:18] Production.INFO: ProcessCDR(1,14448683,1,1,2) [2025-02-11 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448683', 'tblTempUsageDetail_20' ) start [2025-02-11 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448683', 'tblTempUsageDetail_20' ) end [2025-02-11 02:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:30:21] Production.INFO: ==25495== Releasing lock... [2025-02-11 02:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:30:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:31:05 [end_date_ymd] => 2025-02-11 02:31:05 [RateCDR] => 1 ) [2025-02-11 02:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:31:05' and `end` < '2025-02-11 02:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:31:19] Production.INFO: count ==240 [2025-02-11 02:31:19] Production.ERROR: pbx CDR StartTime 2025-02-10 23:31:05 - End Time 2025-02-11 02:31:05 [2025-02-11 02:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448689', 'tblTempUsageDetail_20' ) start [2025-02-11 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448689', 'tblTempUsageDetail_20' ) end [2025-02-11 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448689', 'tblTempVendorCDR_20' ) start [2025-02-11 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448689', 'tblTempVendorCDR_20' ) end [2025-02-11 02:31:19] Production.INFO: ProcessCDR(1,14448689,1,1,2) [2025-02-11 02:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448689', 'tblTempUsageDetail_20' ) start [2025-02-11 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448689', 'tblTempUsageDetail_20' ) end [2025-02-11 02:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:31:22] Production.INFO: ==25568== Releasing lock... [2025-02-11 02:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:31:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-11 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:32:05 [end_date_ymd] => 2025-02-11 02:32:05 [RateCDR] => 1 ) [2025-02-11 02:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:32:05' and `end` < '2025-02-11 02:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:32:18] Production.INFO: count ==236 [2025-02-11 02:32:18] Production.ERROR: pbx CDR StartTime 2025-02-10 23:32:05 - End Time 2025-02-11 02:32:05 [2025-02-11 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448694', 'tblTempUsageDetail_20' ) start [2025-02-11 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448694', 'tblTempUsageDetail_20' ) end [2025-02-11 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448694', 'tblTempVendorCDR_20' ) start [2025-02-11 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448694', 'tblTempVendorCDR_20' ) end [2025-02-11 02:32:18] Production.INFO: ProcessCDR(1,14448694,1,1,2) [2025-02-11 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448694', 'tblTempUsageDetail_20' ) start [2025-02-11 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448694', 'tblTempUsageDetail_20' ) end [2025-02-11 02:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:32:21] Production.INFO: ==25643== Releasing lock... [2025-02-11 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:32:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:33:05 [end_date_ymd] => 2025-02-11 02:33:05 [RateCDR] => 1 ) [2025-02-11 02:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:33:05' and `end` < '2025-02-11 02:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:33:19] Production.INFO: count ==232 [2025-02-11 02:33:19] Production.ERROR: pbx CDR StartTime 2025-02-10 23:33:05 - End Time 2025-02-11 02:33:05 [2025-02-11 02:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448699', 'tblTempUsageDetail_20' ) start [2025-02-11 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448699', 'tblTempUsageDetail_20' ) end [2025-02-11 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448699', 'tblTempVendorCDR_20' ) start [2025-02-11 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448699', 'tblTempVendorCDR_20' ) end [2025-02-11 02:33:19] Production.INFO: ProcessCDR(1,14448699,1,1,2) [2025-02-11 02:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448699', 'tblTempUsageDetail_20' ) start [2025-02-11 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448699', 'tblTempUsageDetail_20' ) end [2025-02-11 02:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:33:22] Production.INFO: ==25713== Releasing lock... [2025-02-11 02:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:33:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 02:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:34:06 [end_date_ymd] => 2025-02-11 02:34:06 [RateCDR] => 1 ) [2025-02-11 02:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:34:06' and `end` < '2025-02-11 02:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:34:19] Production.INFO: count ==232 [2025-02-11 02:34:19] Production.ERROR: pbx CDR StartTime 2025-02-10 23:34:06 - End Time 2025-02-11 02:34:06 [2025-02-11 02:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448704', 'tblTempUsageDetail_20' ) start [2025-02-11 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448704', 'tblTempUsageDetail_20' ) end [2025-02-11 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448704', 'tblTempVendorCDR_20' ) start [2025-02-11 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448704', 'tblTempVendorCDR_20' ) end [2025-02-11 02:34:19] Production.INFO: ProcessCDR(1,14448704,1,1,2) [2025-02-11 02:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448704', 'tblTempUsageDetail_20' ) start [2025-02-11 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448704', 'tblTempUsageDetail_20' ) end [2025-02-11 02:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:34:22] Production.INFO: ==25785== Releasing lock... [2025-02-11 02:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:34:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:35:05 [end_date_ymd] => 2025-02-11 02:35:05 [RateCDR] => 1 ) [2025-02-11 02:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:35:05' and `end` < '2025-02-11 02:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:35:18] Production.INFO: count ==232 [2025-02-11 02:35:18] Production.ERROR: pbx CDR StartTime 2025-02-10 23:35:05 - End Time 2025-02-11 02:35:05 [2025-02-11 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448709', 'tblTempUsageDetail_20' ) start [2025-02-11 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448709', 'tblTempUsageDetail_20' ) end [2025-02-11 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448709', 'tblTempVendorCDR_20' ) start [2025-02-11 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448709', 'tblTempVendorCDR_20' ) end [2025-02-11 02:35:18] Production.INFO: ProcessCDR(1,14448709,1,1,2) [2025-02-11 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448709', 'tblTempUsageDetail_20' ) start [2025-02-11 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448709', 'tblTempUsageDetail_20' ) end [2025-02-11 02:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:35:21] Production.INFO: ==25859== Releasing lock... [2025-02-11 02:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:35:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:36:05 [end_date_ymd] => 2025-02-11 02:36:05 [RateCDR] => 1 ) [2025-02-11 02:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:36:05' and `end` < '2025-02-11 02:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:36:18] Production.INFO: count ==230 [2025-02-11 02:36:18] Production.ERROR: pbx CDR StartTime 2025-02-10 23:36:05 - End Time 2025-02-11 02:36:05 [2025-02-11 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448714', 'tblTempUsageDetail_20' ) start [2025-02-11 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448714', 'tblTempUsageDetail_20' ) end [2025-02-11 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448714', 'tblTempVendorCDR_20' ) start [2025-02-11 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448714', 'tblTempVendorCDR_20' ) end [2025-02-11 02:36:18] Production.INFO: ProcessCDR(1,14448714,1,1,2) [2025-02-11 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448714', 'tblTempUsageDetail_20' ) start [2025-02-11 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448714', 'tblTempUsageDetail_20' ) end [2025-02-11 02:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:36:22] Production.INFO: ==25969== Releasing lock... [2025-02-11 02:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:36:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-11 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:37:05 [end_date_ymd] => 2025-02-11 02:37:05 [RateCDR] => 1 ) [2025-02-11 02:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:37:05' and `end` < '2025-02-11 02:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:37:19] Production.INFO: count ==230 [2025-02-11 02:37:19] Production.ERROR: pbx CDR StartTime 2025-02-10 23:37:05 - End Time 2025-02-11 02:37:05 [2025-02-11 02:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448719', 'tblTempUsageDetail_20' ) start [2025-02-11 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448719', 'tblTempUsageDetail_20' ) end [2025-02-11 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448719', 'tblTempVendorCDR_20' ) start [2025-02-11 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448719', 'tblTempVendorCDR_20' ) end [2025-02-11 02:37:19] Production.INFO: ProcessCDR(1,14448719,1,1,2) [2025-02-11 02:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448719', 'tblTempUsageDetail_20' ) start [2025-02-11 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448719', 'tblTempUsageDetail_20' ) end [2025-02-11 02:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:37:22] Production.INFO: ==26040== Releasing lock... [2025-02-11 02:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:37:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-11 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:38:05 [end_date_ymd] => 2025-02-11 02:38:05 [RateCDR] => 1 ) [2025-02-11 02:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:38:05' and `end` < '2025-02-11 02:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:38:18] Production.INFO: count ==228 [2025-02-11 02:38:18] Production.ERROR: pbx CDR StartTime 2025-02-10 23:38:05 - End Time 2025-02-11 02:38:05 [2025-02-11 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448724', 'tblTempUsageDetail_20' ) start [2025-02-11 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448724', 'tblTempUsageDetail_20' ) end [2025-02-11 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448724', 'tblTempVendorCDR_20' ) start [2025-02-11 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448724', 'tblTempVendorCDR_20' ) end [2025-02-11 02:38:18] Production.INFO: ProcessCDR(1,14448724,1,1,2) [2025-02-11 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448724', 'tblTempUsageDetail_20' ) start [2025-02-11 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448724', 'tblTempUsageDetail_20' ) end [2025-02-11 02:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:38:21] Production.INFO: ==26115== Releasing lock... [2025-02-11 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:38:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-11 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:39:05 [end_date_ymd] => 2025-02-11 02:39:05 [RateCDR] => 1 ) [2025-02-11 02:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:39:05' and `end` < '2025-02-11 02:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:39:18] Production.INFO: count ==225 [2025-02-11 02:39:18] Production.ERROR: pbx CDR StartTime 2025-02-10 23:39:05 - End Time 2025-02-11 02:39:05 [2025-02-11 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448729', 'tblTempUsageDetail_20' ) start [2025-02-11 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448729', 'tblTempUsageDetail_20' ) end [2025-02-11 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448729', 'tblTempVendorCDR_20' ) start [2025-02-11 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448729', 'tblTempVendorCDR_20' ) end [2025-02-11 02:39:18] Production.INFO: ProcessCDR(1,14448729,1,1,2) [2025-02-11 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448729', 'tblTempUsageDetail_20' ) start [2025-02-11 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448729', 'tblTempUsageDetail_20' ) end [2025-02-11 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:39:21] Production.INFO: ==26184== Releasing lock... [2025-02-11 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:39:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-11 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:40:06 [end_date_ymd] => 2025-02-11 02:40:06 [RateCDR] => 1 ) [2025-02-11 02:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:40:06' and `end` < '2025-02-11 02:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:40:19] Production.INFO: count ==233 [2025-02-11 02:40:19] Production.ERROR: pbx CDR StartTime 2025-02-10 23:40:06 - End Time 2025-02-11 02:40:06 [2025-02-11 02:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448734', 'tblTempUsageDetail_20' ) start [2025-02-11 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448734', 'tblTempUsageDetail_20' ) end [2025-02-11 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448734', 'tblTempVendorCDR_20' ) start [2025-02-11 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448734', 'tblTempVendorCDR_20' ) end [2025-02-11 02:40:19] Production.INFO: ProcessCDR(1,14448734,1,1,2) [2025-02-11 02:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448734', 'tblTempUsageDetail_20' ) start [2025-02-11 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448734', 'tblTempUsageDetail_20' ) end [2025-02-11 02:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:40:22] Production.INFO: ==26259== Releasing lock... [2025-02-11 02:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:40:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-11 02:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:41:04 [end_date_ymd] => 2025-02-11 02:41:04 [RateCDR] => 1 ) [2025-02-11 02:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:41:04' and `end` < '2025-02-11 02:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:41:17] Production.INFO: count ==248 [2025-02-11 02:41:17] Production.ERROR: pbx CDR StartTime 2025-02-10 23:41:04 - End Time 2025-02-11 02:41:04 [2025-02-11 02:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448740', 'tblTempUsageDetail_20' ) start [2025-02-11 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448740', 'tblTempUsageDetail_20' ) end [2025-02-11 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448740', 'tblTempVendorCDR_20' ) start [2025-02-11 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448740', 'tblTempVendorCDR_20' ) end [2025-02-11 02:41:17] Production.INFO: ProcessCDR(1,14448740,1,1,2) [2025-02-11 02:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448740', 'tblTempUsageDetail_20' ) start [2025-02-11 02:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448740', 'tblTempUsageDetail_20' ) end [2025-02-11 02:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:41:20] Production.INFO: ==26344== Releasing lock... [2025-02-11 02:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:41:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:42:05 [end_date_ymd] => 2025-02-11 02:42:05 [RateCDR] => 1 ) [2025-02-11 02:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:42:05' and `end` < '2025-02-11 02:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:42:20] Production.INFO: count ==248 [2025-02-11 02:42:20] Production.ERROR: pbx CDR StartTime 2025-02-10 23:42:05 - End Time 2025-02-11 02:42:05 [2025-02-11 02:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448745', 'tblTempUsageDetail_20' ) start [2025-02-11 02:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448745', 'tblTempUsageDetail_20' ) end [2025-02-11 02:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448745', 'tblTempVendorCDR_20' ) start [2025-02-11 02:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448745', 'tblTempVendorCDR_20' ) end [2025-02-11 02:42:21] Production.INFO: ProcessCDR(1,14448745,1,1,2) [2025-02-11 02:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448745', 'tblTempUsageDetail_20' ) start [2025-02-11 02:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448745', 'tblTempUsageDetail_20' ) end [2025-02-11 02:42:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:42:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:42:24] Production.INFO: ==26422== Releasing lock... [2025-02-11 02:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:42:24] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 02:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:43:04 [end_date_ymd] => 2025-02-11 02:43:04 [RateCDR] => 1 ) [2025-02-11 02:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:43:04' and `end` < '2025-02-11 02:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:43:17] Production.INFO: count ==247 [2025-02-11 02:43:17] Production.ERROR: pbx CDR StartTime 2025-02-10 23:43:04 - End Time 2025-02-11 02:43:04 [2025-02-11 02:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448750', 'tblTempUsageDetail_20' ) start [2025-02-11 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448750', 'tblTempUsageDetail_20' ) end [2025-02-11 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448750', 'tblTempVendorCDR_20' ) start [2025-02-11 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448750', 'tblTempVendorCDR_20' ) end [2025-02-11 02:43:17] Production.INFO: ProcessCDR(1,14448750,1,1,2) [2025-02-11 02:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448750', 'tblTempUsageDetail_20' ) start [2025-02-11 02:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448750', 'tblTempUsageDetail_20' ) end [2025-02-11 02:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:43:20] Production.INFO: ==26495== Releasing lock... [2025-02-11 02:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:43:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:44:05 [end_date_ymd] => 2025-02-11 02:44:05 [RateCDR] => 1 ) [2025-02-11 02:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:44:05' and `end` < '2025-02-11 02:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:44:18] Production.INFO: count ==247 [2025-02-11 02:44:18] Production.ERROR: pbx CDR StartTime 2025-02-10 23:44:05 - End Time 2025-02-11 02:44:05 [2025-02-11 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448755', 'tblTempUsageDetail_20' ) start [2025-02-11 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448755', 'tblTempUsageDetail_20' ) end [2025-02-11 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448755', 'tblTempVendorCDR_20' ) start [2025-02-11 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448755', 'tblTempVendorCDR_20' ) end [2025-02-11 02:44:18] Production.INFO: ProcessCDR(1,14448755,1,1,2) [2025-02-11 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448755', 'tblTempUsageDetail_20' ) start [2025-02-11 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448755', 'tblTempUsageDetail_20' ) end [2025-02-11 02:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:44:21] Production.INFO: ==26572== Releasing lock... [2025-02-11 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:44:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 02:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:45:06 [end_date_ymd] => 2025-02-11 02:45:06 [RateCDR] => 1 ) [2025-02-11 02:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:45:06' and `end` < '2025-02-11 02:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:45:19] Production.INFO: count ==251 [2025-02-11 02:45:19] Production.ERROR: pbx CDR StartTime 2025-02-10 23:45:06 - End Time 2025-02-11 02:45:06 [2025-02-11 02:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448760', 'tblTempUsageDetail_20' ) start [2025-02-11 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448760', 'tblTempUsageDetail_20' ) end [2025-02-11 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448760', 'tblTempVendorCDR_20' ) start [2025-02-11 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448760', 'tblTempVendorCDR_20' ) end [2025-02-11 02:45:19] Production.INFO: ProcessCDR(1,14448760,1,1,2) [2025-02-11 02:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448760', 'tblTempUsageDetail_20' ) start [2025-02-11 02:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448760', 'tblTempUsageDetail_20' ) end [2025-02-11 02:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:45:23] Production.INFO: ==26646== Releasing lock... [2025-02-11 02:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:45:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:46:05 [end_date_ymd] => 2025-02-11 02:46:05 [RateCDR] => 1 ) [2025-02-11 02:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:46:05' and `end` < '2025-02-11 02:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:46:18] Production.INFO: count ==250 [2025-02-11 02:46:18] Production.ERROR: pbx CDR StartTime 2025-02-10 23:46:05 - End Time 2025-02-11 02:46:05 [2025-02-11 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448765', 'tblTempUsageDetail_20' ) start [2025-02-11 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448765', 'tblTempUsageDetail_20' ) end [2025-02-11 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448765', 'tblTempVendorCDR_20' ) start [2025-02-11 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448765', 'tblTempVendorCDR_20' ) end [2025-02-11 02:46:18] Production.INFO: ProcessCDR(1,14448765,1,1,2) [2025-02-11 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448765', 'tblTempUsageDetail_20' ) start [2025-02-11 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448765', 'tblTempUsageDetail_20' ) end [2025-02-11 02:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:46:22] Production.INFO: ==26720== Releasing lock... [2025-02-11 02:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:46:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:47:05 [end_date_ymd] => 2025-02-11 02:47:05 [RateCDR] => 1 ) [2025-02-11 02:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:47:05' and `end` < '2025-02-11 02:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:47:18] Production.INFO: count ==250 [2025-02-11 02:47:18] Production.ERROR: pbx CDR StartTime 2025-02-10 23:47:05 - End Time 2025-02-11 02:47:05 [2025-02-11 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448768', 'tblTempUsageDetail_20' ) start [2025-02-11 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448768', 'tblTempUsageDetail_20' ) end [2025-02-11 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448768', 'tblTempVendorCDR_20' ) start [2025-02-11 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448768', 'tblTempVendorCDR_20' ) end [2025-02-11 02:47:18] Production.INFO: ProcessCDR(1,14448768,1,1,2) [2025-02-11 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448768', 'tblTempUsageDetail_20' ) start [2025-02-11 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448768', 'tblTempUsageDetail_20' ) end [2025-02-11 02:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:47:22] Production.INFO: ==26792== Releasing lock... [2025-02-11 02:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:47:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:48:05 [end_date_ymd] => 2025-02-11 02:48:05 [RateCDR] => 1 ) [2025-02-11 02:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:48:05' and `end` < '2025-02-11 02:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:48:18] Production.INFO: count ==250 [2025-02-11 02:48:18] Production.ERROR: pbx CDR StartTime 2025-02-10 23:48:05 - End Time 2025-02-11 02:48:05 [2025-02-11 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448775', 'tblTempUsageDetail_20' ) start [2025-02-11 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448775', 'tblTempUsageDetail_20' ) end [2025-02-11 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448775', 'tblTempVendorCDR_20' ) start [2025-02-11 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448775', 'tblTempVendorCDR_20' ) end [2025-02-11 02:48:18] Production.INFO: ProcessCDR(1,14448775,1,1,2) [2025-02-11 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448775', 'tblTempUsageDetail_20' ) start [2025-02-11 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448775', 'tblTempUsageDetail_20' ) end [2025-02-11 02:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:48:21] Production.INFO: ==26865== Releasing lock... [2025-02-11 02:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:48:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:49:05 [end_date_ymd] => 2025-02-11 02:49:05 [RateCDR] => 1 ) [2025-02-11 02:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:49:05' and `end` < '2025-02-11 02:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:49:18] Production.INFO: count ==250 [2025-02-11 02:49:18] Production.ERROR: pbx CDR StartTime 2025-02-10 23:49:05 - End Time 2025-02-11 02:49:05 [2025-02-11 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448780', 'tblTempUsageDetail_20' ) start [2025-02-11 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448780', 'tblTempUsageDetail_20' ) end [2025-02-11 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448780', 'tblTempVendorCDR_20' ) start [2025-02-11 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448780', 'tblTempVendorCDR_20' ) end [2025-02-11 02:49:18] Production.INFO: ProcessCDR(1,14448780,1,1,2) [2025-02-11 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448780', 'tblTempUsageDetail_20' ) start [2025-02-11 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448780', 'tblTempUsageDetail_20' ) end [2025-02-11 02:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:49:21] Production.INFO: ==26940== Releasing lock... [2025-02-11 02:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:49:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 02:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:50:05 [end_date_ymd] => 2025-02-11 02:50:05 [RateCDR] => 1 ) [2025-02-11 02:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:50:05' and `end` < '2025-02-11 02:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:50:19] Production.INFO: count ==256 [2025-02-11 02:50:19] Production.ERROR: pbx CDR StartTime 2025-02-10 23:50:05 - End Time 2025-02-11 02:50:05 [2025-02-11 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448786', 'tblTempUsageDetail_20' ) start [2025-02-11 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448786', 'tblTempUsageDetail_20' ) end [2025-02-11 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448786', 'tblTempVendorCDR_20' ) start [2025-02-11 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448786', 'tblTempVendorCDR_20' ) end [2025-02-11 02:50:19] Production.INFO: ProcessCDR(1,14448786,1,1,2) [2025-02-11 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448786', 'tblTempUsageDetail_20' ) start [2025-02-11 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448786', 'tblTempUsageDetail_20' ) end [2025-02-11 02:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:50:22] Production.INFO: ==27015== Releasing lock... [2025-02-11 02:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:50:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-11 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:51:05 [end_date_ymd] => 2025-02-11 02:51:05 [RateCDR] => 1 ) [2025-02-11 02:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:51:05' and `end` < '2025-02-11 02:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:51:18] Production.INFO: count ==256 [2025-02-11 02:51:18] Production.ERROR: pbx CDR StartTime 2025-02-10 23:51:05 - End Time 2025-02-11 02:51:05 [2025-02-11 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448791', 'tblTempUsageDetail_20' ) start [2025-02-11 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448791', 'tblTempUsageDetail_20' ) end [2025-02-11 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448791', 'tblTempVendorCDR_20' ) start [2025-02-11 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448791', 'tblTempVendorCDR_20' ) end [2025-02-11 02:51:18] Production.INFO: ProcessCDR(1,14448791,1,1,2) [2025-02-11 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448791', 'tblTempUsageDetail_20' ) start [2025-02-11 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448791', 'tblTempUsageDetail_20' ) end [2025-02-11 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:51:22] Production.INFO: ==27129== Releasing lock... [2025-02-11 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:51:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-11 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:52:05 [end_date_ymd] => 2025-02-11 02:52:05 [RateCDR] => 1 ) [2025-02-11 02:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:52:05' and `end` < '2025-02-11 02:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:52:17] Production.INFO: count ==256 [2025-02-11 02:52:17] Production.ERROR: pbx CDR StartTime 2025-02-10 23:52:05 - End Time 2025-02-11 02:52:05 [2025-02-11 02:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448796', 'tblTempUsageDetail_20' ) start [2025-02-11 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448796', 'tblTempUsageDetail_20' ) end [2025-02-11 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448796', 'tblTempVendorCDR_20' ) start [2025-02-11 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448796', 'tblTempVendorCDR_20' ) end [2025-02-11 02:52:17] Production.INFO: ProcessCDR(1,14448796,1,1,2) [2025-02-11 02:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448796', 'tblTempUsageDetail_20' ) start [2025-02-11 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448796', 'tblTempUsageDetail_20' ) end [2025-02-11 02:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:52:21] Production.INFO: ==27202== Releasing lock... [2025-02-11 02:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:52:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-11 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:53:05 [end_date_ymd] => 2025-02-11 02:53:05 [RateCDR] => 1 ) [2025-02-11 02:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:53:05' and `end` < '2025-02-11 02:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:53:19] Production.INFO: count ==256 [2025-02-11 02:53:19] Production.ERROR: pbx CDR StartTime 2025-02-10 23:53:05 - End Time 2025-02-11 02:53:05 [2025-02-11 02:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448801', 'tblTempUsageDetail_20' ) start [2025-02-11 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448801', 'tblTempUsageDetail_20' ) end [2025-02-11 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448801', 'tblTempVendorCDR_20' ) start [2025-02-11 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448801', 'tblTempVendorCDR_20' ) end [2025-02-11 02:53:19] Production.INFO: ProcessCDR(1,14448801,1,1,2) [2025-02-11 02:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448801', 'tblTempUsageDetail_20' ) start [2025-02-11 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448801', 'tblTempUsageDetail_20' ) end [2025-02-11 02:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:53:22] Production.INFO: ==27277== Releasing lock... [2025-02-11 02:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:53:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-11 02:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:54:04 [end_date_ymd] => 2025-02-11 02:54:04 [RateCDR] => 1 ) [2025-02-11 02:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:54:04' and `end` < '2025-02-11 02:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:54:17] Production.INFO: count ==251 [2025-02-11 02:54:17] Production.ERROR: pbx CDR StartTime 2025-02-10 23:54:04 - End Time 2025-02-11 02:54:04 [2025-02-11 02:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448806', 'tblTempUsageDetail_20' ) start [2025-02-11 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448806', 'tblTempUsageDetail_20' ) end [2025-02-11 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448806', 'tblTempVendorCDR_20' ) start [2025-02-11 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448806', 'tblTempVendorCDR_20' ) end [2025-02-11 02:54:17] Production.INFO: ProcessCDR(1,14448806,1,1,2) [2025-02-11 02:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448806', 'tblTempUsageDetail_20' ) start [2025-02-11 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448806', 'tblTempUsageDetail_20' ) end [2025-02-11 02:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:54:21] Production.INFO: ==27358== Releasing lock... [2025-02-11 02:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:54:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:55:05 [end_date_ymd] => 2025-02-11 02:55:05 [RateCDR] => 1 ) [2025-02-11 02:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:55:05' and `end` < '2025-02-11 02:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:55:19] Production.INFO: count ==251 [2025-02-11 02:55:19] Production.ERROR: pbx CDR StartTime 2025-02-10 23:55:05 - End Time 2025-02-11 02:55:05 [2025-02-11 02:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448811', 'tblTempUsageDetail_20' ) start [2025-02-11 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448811', 'tblTempUsageDetail_20' ) end [2025-02-11 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448811', 'tblTempVendorCDR_20' ) start [2025-02-11 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448811', 'tblTempVendorCDR_20' ) end [2025-02-11 02:55:19] Production.INFO: ProcessCDR(1,14448811,1,1,2) [2025-02-11 02:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448811', 'tblTempUsageDetail_20' ) start [2025-02-11 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448811', 'tblTempUsageDetail_20' ) end [2025-02-11 02:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:55:22] Production.INFO: ==27430== Releasing lock... [2025-02-11 02:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:55:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:56:05 [end_date_ymd] => 2025-02-11 02:56:05 [RateCDR] => 1 ) [2025-02-11 02:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:56:05' and `end` < '2025-02-11 02:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:56:19] Production.INFO: count ==251 [2025-02-11 02:56:19] Production.ERROR: pbx CDR StartTime 2025-02-10 23:56:05 - End Time 2025-02-11 02:56:05 [2025-02-11 02:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448816', 'tblTempUsageDetail_20' ) start [2025-02-11 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448816', 'tblTempUsageDetail_20' ) end [2025-02-11 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448816', 'tblTempVendorCDR_20' ) start [2025-02-11 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448816', 'tblTempVendorCDR_20' ) end [2025-02-11 02:56:19] Production.INFO: ProcessCDR(1,14448816,1,1,2) [2025-02-11 02:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448816', 'tblTempUsageDetail_20' ) start [2025-02-11 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448816', 'tblTempUsageDetail_20' ) end [2025-02-11 02:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:56:22] Production.INFO: ==27506== Releasing lock... [2025-02-11 02:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:56:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:57:05 [end_date_ymd] => 2025-02-11 02:57:05 [RateCDR] => 1 ) [2025-02-11 02:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:57:05' and `end` < '2025-02-11 02:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:57:18] Production.INFO: count ==251 [2025-02-11 02:57:18] Production.ERROR: pbx CDR StartTime 2025-02-10 23:57:05 - End Time 2025-02-11 02:57:05 [2025-02-11 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448821', 'tblTempUsageDetail_20' ) start [2025-02-11 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448821', 'tblTempUsageDetail_20' ) end [2025-02-11 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448821', 'tblTempVendorCDR_20' ) start [2025-02-11 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448821', 'tblTempVendorCDR_20' ) end [2025-02-11 02:57:18] Production.INFO: ProcessCDR(1,14448821,1,1,2) [2025-02-11 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448821', 'tblTempUsageDetail_20' ) start [2025-02-11 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448821', 'tblTempUsageDetail_20' ) end [2025-02-11 02:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:57:21] Production.INFO: ==27577== Releasing lock... [2025-02-11 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:57:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:58:05 [end_date_ymd] => 2025-02-11 02:58:05 [RateCDR] => 1 ) [2025-02-11 02:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:58:05' and `end` < '2025-02-11 02:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:58:18] Production.INFO: count ==251 [2025-02-11 02:58:18] Production.ERROR: pbx CDR StartTime 2025-02-10 23:58:05 - End Time 2025-02-11 02:58:05 [2025-02-11 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448826', 'tblTempUsageDetail_20' ) start [2025-02-11 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448826', 'tblTempUsageDetail_20' ) end [2025-02-11 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448826', 'tblTempVendorCDR_20' ) start [2025-02-11 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448826', 'tblTempVendorCDR_20' ) end [2025-02-11 02:58:18] Production.INFO: ProcessCDR(1,14448826,1,1,2) [2025-02-11 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448826', 'tblTempUsageDetail_20' ) start [2025-02-11 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448826', 'tblTempUsageDetail_20' ) end [2025-02-11 02:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:58:22] Production.INFO: ==27650== Releasing lock... [2025-02-11 02:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:58:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-10 23:59:05 [end_date_ymd] => 2025-02-11 02:59:05 [RateCDR] => 1 ) [2025-02-11 02:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-10 23:59:05' and `end` < '2025-02-11 02:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 02:59:19] Production.INFO: count ==251 [2025-02-11 02:59:19] Production.ERROR: pbx CDR StartTime 2025-02-10 23:59:05 - End Time 2025-02-11 02:59:05 [2025-02-11 02:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448831', 'tblTempUsageDetail_20' ) start [2025-02-11 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448831', 'tblTempUsageDetail_20' ) end [2025-02-11 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448831', 'tblTempVendorCDR_20' ) start [2025-02-11 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448831', 'tblTempVendorCDR_20' ) end [2025-02-11 02:59:19] Production.INFO: ProcessCDR(1,14448831,1,1,2) [2025-02-11 02:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 02:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 02:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448831', 'tblTempUsageDetail_20' ) start [2025-02-11 02:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448831', 'tblTempUsageDetail_20' ) end [2025-02-11 02:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 02:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 02:59:23] Production.INFO: ==27726== Releasing lock... [2025-02-11 02:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 02:59:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:00:06 [end_date_ymd] => 2025-02-11 03:00:06 [RateCDR] => 1 ) [2025-02-11 03:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:00:06' and `end` < '2025-02-11 03:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:00:19] Production.INFO: count ==255 [2025-02-11 03:00:19] Production.ERROR: pbx CDR StartTime 2025-02-11 00:00:06 - End Time 2025-02-11 03:00:06 [2025-02-11 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448837', 'tblTempUsageDetail_20' ) start [2025-02-11 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448837', 'tblTempUsageDetail_20' ) end [2025-02-11 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448837', 'tblTempVendorCDR_20' ) start [2025-02-11 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448837', 'tblTempVendorCDR_20' ) end [2025-02-11 03:00:20] Production.INFO: ProcessCDR(1,14448837,1,1,2) [2025-02-11 03:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448837', 'tblTempUsageDetail_20' ) start [2025-02-11 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448837', 'tblTempUsageDetail_20' ) end [2025-02-11 03:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:00:23] Production.INFO: ==27801== Releasing lock... [2025-02-11 03:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:00:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:01:05 [end_date_ymd] => 2025-02-11 03:01:05 [RateCDR] => 1 ) [2025-02-11 03:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:01:05' and `end` < '2025-02-11 03:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:01:19] Production.INFO: count ==255 [2025-02-11 03:01:19] Production.ERROR: pbx CDR StartTime 2025-02-11 00:01:05 - End Time 2025-02-11 03:01:05 [2025-02-11 03:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448842', 'tblTempUsageDetail_20' ) start [2025-02-11 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448842', 'tblTempUsageDetail_20' ) end [2025-02-11 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448842', 'tblTempVendorCDR_20' ) start [2025-02-11 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448842', 'tblTempVendorCDR_20' ) end [2025-02-11 03:01:19] Production.INFO: ProcessCDR(1,14448842,1,1,2) [2025-02-11 03:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448842', 'tblTempUsageDetail_20' ) start [2025-02-11 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448842', 'tblTempUsageDetail_20' ) end [2025-02-11 03:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:01:22] Production.INFO: ==27893== Releasing lock... [2025-02-11 03:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:01:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:02:05 [end_date_ymd] => 2025-02-11 03:02:05 [RateCDR] => 1 ) [2025-02-11 03:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:02:05' and `end` < '2025-02-11 03:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:02:18] Production.INFO: count ==255 [2025-02-11 03:02:18] Production.ERROR: pbx CDR StartTime 2025-02-11 00:02:05 - End Time 2025-02-11 03:02:05 [2025-02-11 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448847', 'tblTempUsageDetail_20' ) start [2025-02-11 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448847', 'tblTempUsageDetail_20' ) end [2025-02-11 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448847', 'tblTempVendorCDR_20' ) start [2025-02-11 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448847', 'tblTempVendorCDR_20' ) end [2025-02-11 03:02:18] Production.INFO: ProcessCDR(1,14448847,1,1,2) [2025-02-11 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448847', 'tblTempUsageDetail_20' ) start [2025-02-11 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448847', 'tblTempUsageDetail_20' ) end [2025-02-11 03:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:02:22] Production.INFO: ==28045== Releasing lock... [2025-02-11 03:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:02:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:03:05 [end_date_ymd] => 2025-02-11 03:03:05 [RateCDR] => 1 ) [2025-02-11 03:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:03:05' and `end` < '2025-02-11 03:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:03:19] Production.INFO: count ==255 [2025-02-11 03:03:19] Production.ERROR: pbx CDR StartTime 2025-02-11 00:03:05 - End Time 2025-02-11 03:03:05 [2025-02-11 03:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448852', 'tblTempUsageDetail_20' ) start [2025-02-11 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448852', 'tblTempUsageDetail_20' ) end [2025-02-11 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448852', 'tblTempVendorCDR_20' ) start [2025-02-11 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448852', 'tblTempVendorCDR_20' ) end [2025-02-11 03:03:19] Production.INFO: ProcessCDR(1,14448852,1,1,2) [2025-02-11 03:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448852', 'tblTempUsageDetail_20' ) start [2025-02-11 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448852', 'tblTempUsageDetail_20' ) end [2025-02-11 03:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:03:22] Production.INFO: ==28113== Releasing lock... [2025-02-11 03:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:03:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:04:05 [end_date_ymd] => 2025-02-11 03:04:05 [RateCDR] => 1 ) [2025-02-11 03:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:04:05' and `end` < '2025-02-11 03:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:04:19] Production.INFO: count ==255 [2025-02-11 03:04:19] Production.ERROR: pbx CDR StartTime 2025-02-11 00:04:05 - End Time 2025-02-11 03:04:05 [2025-02-11 03:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448857', 'tblTempUsageDetail_20' ) start [2025-02-11 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448857', 'tblTempUsageDetail_20' ) end [2025-02-11 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448857', 'tblTempVendorCDR_20' ) start [2025-02-11 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448857', 'tblTempVendorCDR_20' ) end [2025-02-11 03:04:19] Production.INFO: ProcessCDR(1,14448857,1,1,2) [2025-02-11 03:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448857', 'tblTempUsageDetail_20' ) start [2025-02-11 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448857', 'tblTempUsageDetail_20' ) end [2025-02-11 03:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:04:22] Production.INFO: ==28187== Releasing lock... [2025-02-11 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:04:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 03:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:05:05 [end_date_ymd] => 2025-02-11 03:05:05 [RateCDR] => 1 ) [2025-02-11 03:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:05:05' and `end` < '2025-02-11 03:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:05:19] Production.INFO: count ==255 [2025-02-11 03:05:19] Production.ERROR: pbx CDR StartTime 2025-02-11 00:05:05 - End Time 2025-02-11 03:05:05 [2025-02-11 03:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448862', 'tblTempUsageDetail_20' ) start [2025-02-11 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448862', 'tblTempUsageDetail_20' ) end [2025-02-11 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448862', 'tblTempVendorCDR_20' ) start [2025-02-11 03:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448862', 'tblTempVendorCDR_20' ) end [2025-02-11 03:05:19] Production.INFO: ProcessCDR(1,14448862,1,1,2) [2025-02-11 03:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448862', 'tblTempUsageDetail_20' ) start [2025-02-11 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448862', 'tblTempUsageDetail_20' ) end [2025-02-11 03:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:05:22] Production.INFO: ==28260== Releasing lock... [2025-02-11 03:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:05:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:06:05 [end_date_ymd] => 2025-02-11 03:06:05 [RateCDR] => 1 ) [2025-02-11 03:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:06:05' and `end` < '2025-02-11 03:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:06:18] Production.INFO: count ==255 [2025-02-11 03:06:18] Production.ERROR: pbx CDR StartTime 2025-02-11 00:06:05 - End Time 2025-02-11 03:06:05 [2025-02-11 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448866', 'tblTempUsageDetail_20' ) start [2025-02-11 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448866', 'tblTempUsageDetail_20' ) end [2025-02-11 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448866', 'tblTempVendorCDR_20' ) start [2025-02-11 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448866', 'tblTempVendorCDR_20' ) end [2025-02-11 03:06:18] Production.INFO: ProcessCDR(1,14448866,1,1,2) [2025-02-11 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448866', 'tblTempUsageDetail_20' ) start [2025-02-11 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448866', 'tblTempUsageDetail_20' ) end [2025-02-11 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:06:21] Production.INFO: ==28408== Releasing lock... [2025-02-11 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:06:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:07:05 [end_date_ymd] => 2025-02-11 03:07:05 [RateCDR] => 1 ) [2025-02-11 03:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:07:05' and `end` < '2025-02-11 03:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:07:18] Production.INFO: count ==255 [2025-02-11 03:07:18] Production.ERROR: pbx CDR StartTime 2025-02-11 00:07:05 - End Time 2025-02-11 03:07:05 [2025-02-11 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448872', 'tblTempUsageDetail_20' ) start [2025-02-11 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448872', 'tblTempUsageDetail_20' ) end [2025-02-11 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448872', 'tblTempVendorCDR_20' ) start [2025-02-11 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448872', 'tblTempVendorCDR_20' ) end [2025-02-11 03:07:18] Production.INFO: ProcessCDR(1,14448872,1,1,2) [2025-02-11 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448872', 'tblTempUsageDetail_20' ) start [2025-02-11 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448872', 'tblTempUsageDetail_20' ) end [2025-02-11 03:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:07:22] Production.INFO: ==28518== Releasing lock... [2025-02-11 03:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:07:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:08:05 [end_date_ymd] => 2025-02-11 03:08:05 [RateCDR] => 1 ) [2025-02-11 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:08:05' and `end` < '2025-02-11 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:08:18] Production.INFO: count ==252 [2025-02-11 03:08:18] Production.ERROR: pbx CDR StartTime 2025-02-11 00:08:05 - End Time 2025-02-11 03:08:05 [2025-02-11 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448877', 'tblTempUsageDetail_20' ) start [2025-02-11 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448877', 'tblTempUsageDetail_20' ) end [2025-02-11 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448877', 'tblTempVendorCDR_20' ) start [2025-02-11 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448877', 'tblTempVendorCDR_20' ) end [2025-02-11 03:08:18] Production.INFO: ProcessCDR(1,14448877,1,1,2) [2025-02-11 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448877', 'tblTempUsageDetail_20' ) start [2025-02-11 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448877', 'tblTempUsageDetail_20' ) end [2025-02-11 03:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:08:21] Production.INFO: ==28595== Releasing lock... [2025-02-11 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:08:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-11 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:09:05 [end_date_ymd] => 2025-02-11 03:09:05 [RateCDR] => 1 ) [2025-02-11 03:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:09:05' and `end` < '2025-02-11 03:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:09:18] Production.INFO: count ==251 [2025-02-11 03:09:18] Production.ERROR: pbx CDR StartTime 2025-02-11 00:09:05 - End Time 2025-02-11 03:09:05 [2025-02-11 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448882', 'tblTempUsageDetail_20' ) start [2025-02-11 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448882', 'tblTempUsageDetail_20' ) end [2025-02-11 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448882', 'tblTempVendorCDR_20' ) start [2025-02-11 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448882', 'tblTempVendorCDR_20' ) end [2025-02-11 03:09:18] Production.INFO: ProcessCDR(1,14448882,1,1,2) [2025-02-11 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448882', 'tblTempUsageDetail_20' ) start [2025-02-11 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448882', 'tblTempUsageDetail_20' ) end [2025-02-11 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:09:21] Production.INFO: ==28745== Releasing lock... [2025-02-11 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:09:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-11 03:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:10:05 [end_date_ymd] => 2025-02-11 03:10:05 [RateCDR] => 1 ) [2025-02-11 03:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:10:05' and `end` < '2025-02-11 03:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:10:18] Production.INFO: count ==249 [2025-02-11 03:10:18] Production.ERROR: pbx CDR StartTime 2025-02-11 00:10:05 - End Time 2025-02-11 03:10:05 [2025-02-11 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448887', 'tblTempUsageDetail_20' ) start [2025-02-11 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448887', 'tblTempUsageDetail_20' ) end [2025-02-11 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448887', 'tblTempVendorCDR_20' ) start [2025-02-11 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448887', 'tblTempVendorCDR_20' ) end [2025-02-11 03:10:18] Production.INFO: ProcessCDR(1,14448887,1,1,2) [2025-02-11 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448887', 'tblTempUsageDetail_20' ) start [2025-02-11 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448887', 'tblTempUsageDetail_20' ) end [2025-02-11 03:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:10:21] Production.INFO: ==28817== Releasing lock... [2025-02-11 03:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:10:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-11 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:11:05 [end_date_ymd] => 2025-02-11 03:11:05 [RateCDR] => 1 ) [2025-02-11 03:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:11:05' and `end` < '2025-02-11 03:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:11:18] Production.INFO: count ==235 [2025-02-11 03:11:18] Production.ERROR: pbx CDR StartTime 2025-02-11 00:11:05 - End Time 2025-02-11 03:11:05 [2025-02-11 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448893', 'tblTempUsageDetail_20' ) start [2025-02-11 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448893', 'tblTempUsageDetail_20' ) end [2025-02-11 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448893', 'tblTempVendorCDR_20' ) start [2025-02-11 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448893', 'tblTempVendorCDR_20' ) end [2025-02-11 03:11:18] Production.INFO: ProcessCDR(1,14448893,1,1,2) [2025-02-11 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448893', 'tblTempUsageDetail_20' ) start [2025-02-11 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448893', 'tblTempUsageDetail_20' ) end [2025-02-11 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:11:21] Production.INFO: ==28889== Releasing lock... [2025-02-11 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:11:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-11 03:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:12:06 [end_date_ymd] => 2025-02-11 03:12:06 [RateCDR] => 1 ) [2025-02-11 03:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:12:06' and `end` < '2025-02-11 03:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:12:19] Production.INFO: count ==232 [2025-02-11 03:12:19] Production.ERROR: pbx CDR StartTime 2025-02-11 00:12:06 - End Time 2025-02-11 03:12:06 [2025-02-11 03:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448898', 'tblTempUsageDetail_20' ) start [2025-02-11 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448898', 'tblTempUsageDetail_20' ) end [2025-02-11 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448898', 'tblTempVendorCDR_20' ) start [2025-02-11 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448898', 'tblTempVendorCDR_20' ) end [2025-02-11 03:12:19] Production.INFO: ProcessCDR(1,14448898,1,1,2) [2025-02-11 03:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448898', 'tblTempUsageDetail_20' ) start [2025-02-11 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448898', 'tblTempUsageDetail_20' ) end [2025-02-11 03:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:12:22] Production.INFO: ==28964== Releasing lock... [2025-02-11 03:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:12:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-11 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:13:05 [end_date_ymd] => 2025-02-11 03:13:05 [RateCDR] => 1 ) [2025-02-11 03:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:13:05' and `end` < '2025-02-11 03:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:13:18] Production.INFO: count ==231 [2025-02-11 03:13:18] Production.ERROR: pbx CDR StartTime 2025-02-11 00:13:05 - End Time 2025-02-11 03:13:05 [2025-02-11 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448903', 'tblTempUsageDetail_20' ) start [2025-02-11 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448903', 'tblTempUsageDetail_20' ) end [2025-02-11 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448903', 'tblTempVendorCDR_20' ) start [2025-02-11 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448903', 'tblTempVendorCDR_20' ) end [2025-02-11 03:13:18] Production.INFO: ProcessCDR(1,14448903,1,1,2) [2025-02-11 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448903', 'tblTempUsageDetail_20' ) start [2025-02-11 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448903', 'tblTempUsageDetail_20' ) end [2025-02-11 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:13:21] Production.INFO: ==29112== Releasing lock... [2025-02-11 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:13:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-11 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:14:05 [end_date_ymd] => 2025-02-11 03:14:05 [RateCDR] => 1 ) [2025-02-11 03:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:14:05' and `end` < '2025-02-11 03:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:14:18] Production.INFO: count ==230 [2025-02-11 03:14:18] Production.ERROR: pbx CDR StartTime 2025-02-11 00:14:05 - End Time 2025-02-11 03:14:05 [2025-02-11 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448908', 'tblTempUsageDetail_20' ) start [2025-02-11 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448908', 'tblTempUsageDetail_20' ) end [2025-02-11 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448908', 'tblTempVendorCDR_20' ) start [2025-02-11 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448908', 'tblTempVendorCDR_20' ) end [2025-02-11 03:14:18] Production.INFO: ProcessCDR(1,14448908,1,1,2) [2025-02-11 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448908', 'tblTempUsageDetail_20' ) start [2025-02-11 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448908', 'tblTempUsageDetail_20' ) end [2025-02-11 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:14:21] Production.INFO: ==29190== Releasing lock... [2025-02-11 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:14:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:15:05 [end_date_ymd] => 2025-02-11 03:15:05 [RateCDR] => 1 ) [2025-02-11 03:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:15:05' and `end` < '2025-02-11 03:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:15:18] Production.INFO: count ==230 [2025-02-11 03:15:18] Production.ERROR: pbx CDR StartTime 2025-02-11 00:15:05 - End Time 2025-02-11 03:15:05 [2025-02-11 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448913', 'tblTempUsageDetail_20' ) start [2025-02-11 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448913', 'tblTempUsageDetail_20' ) end [2025-02-11 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448913', 'tblTempVendorCDR_20' ) start [2025-02-11 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448913', 'tblTempVendorCDR_20' ) end [2025-02-11 03:15:18] Production.INFO: ProcessCDR(1,14448913,1,1,2) [2025-02-11 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448913', 'tblTempUsageDetail_20' ) start [2025-02-11 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448913', 'tblTempUsageDetail_20' ) end [2025-02-11 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:15:21] Production.INFO: ==29261== Releasing lock... [2025-02-11 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:15:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:16:05 [end_date_ymd] => 2025-02-11 03:16:05 [RateCDR] => 1 ) [2025-02-11 03:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:16:05' and `end` < '2025-02-11 03:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:16:19] Production.INFO: count ==229 [2025-02-11 03:16:19] Production.ERROR: pbx CDR StartTime 2025-02-11 00:16:05 - End Time 2025-02-11 03:16:05 [2025-02-11 03:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448918', 'tblTempUsageDetail_20' ) start [2025-02-11 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448918', 'tblTempUsageDetail_20' ) end [2025-02-11 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448918', 'tblTempVendorCDR_20' ) start [2025-02-11 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448918', 'tblTempVendorCDR_20' ) end [2025-02-11 03:16:19] Production.INFO: ProcessCDR(1,14448918,1,1,2) [2025-02-11 03:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448918', 'tblTempUsageDetail_20' ) start [2025-02-11 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448918', 'tblTempUsageDetail_20' ) end [2025-02-11 03:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:16:22] Production.INFO: ==29334== Releasing lock... [2025-02-11 03:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:16:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 03:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:17:04 [end_date_ymd] => 2025-02-11 03:17:04 [RateCDR] => 1 ) [2025-02-11 03:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:17:04' and `end` < '2025-02-11 03:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:17:18] Production.INFO: count ==229 [2025-02-11 03:17:18] Production.ERROR: pbx CDR StartTime 2025-02-11 00:17:04 - End Time 2025-02-11 03:17:04 [2025-02-11 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448923', 'tblTempUsageDetail_20' ) start [2025-02-11 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448923', 'tblTempUsageDetail_20' ) end [2025-02-11 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448923', 'tblTempVendorCDR_20' ) start [2025-02-11 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448923', 'tblTempVendorCDR_20' ) end [2025-02-11 03:17:18] Production.INFO: ProcessCDR(1,14448923,1,1,2) [2025-02-11 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448923', 'tblTempUsageDetail_20' ) start [2025-02-11 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448923', 'tblTempUsageDetail_20' ) end [2025-02-11 03:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:17:22] Production.INFO: ==29480== Releasing lock... [2025-02-11 03:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:17:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:18:05 [end_date_ymd] => 2025-02-11 03:18:05 [RateCDR] => 1 ) [2025-02-11 03:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:18:05' and `end` < '2025-02-11 03:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:18:18] Production.INFO: count ==229 [2025-02-11 03:18:18] Production.ERROR: pbx CDR StartTime 2025-02-11 00:18:05 - End Time 2025-02-11 03:18:05 [2025-02-11 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448928', 'tblTempUsageDetail_20' ) start [2025-02-11 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448928', 'tblTempUsageDetail_20' ) end [2025-02-11 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448928', 'tblTempVendorCDR_20' ) start [2025-02-11 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448928', 'tblTempVendorCDR_20' ) end [2025-02-11 03:18:18] Production.INFO: ProcessCDR(1,14448928,1,1,2) [2025-02-11 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448928', 'tblTempUsageDetail_20' ) start [2025-02-11 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448928', 'tblTempUsageDetail_20' ) end [2025-02-11 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:18:21] Production.INFO: ==29560== Releasing lock... [2025-02-11 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:18:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:19:05 [end_date_ymd] => 2025-02-11 03:19:05 [RateCDR] => 1 ) [2025-02-11 03:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:19:05' and `end` < '2025-02-11 03:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:19:18] Production.INFO: count ==229 [2025-02-11 03:19:18] Production.ERROR: pbx CDR StartTime 2025-02-11 00:19:05 - End Time 2025-02-11 03:19:05 [2025-02-11 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448933', 'tblTempUsageDetail_20' ) start [2025-02-11 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448933', 'tblTempUsageDetail_20' ) end [2025-02-11 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448933', 'tblTempVendorCDR_20' ) start [2025-02-11 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448933', 'tblTempVendorCDR_20' ) end [2025-02-11 03:19:18] Production.INFO: ProcessCDR(1,14448933,1,1,2) [2025-02-11 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448933', 'tblTempUsageDetail_20' ) start [2025-02-11 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448933', 'tblTempUsageDetail_20' ) end [2025-02-11 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:19:21] Production.INFO: ==29631== Releasing lock... [2025-02-11 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:19:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:20:06 [end_date_ymd] => 2025-02-11 03:20:06 [RateCDR] => 1 ) [2025-02-11 03:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:20:06' and `end` < '2025-02-11 03:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:20:20] Production.INFO: count ==229 [2025-02-11 03:20:20] Production.ERROR: pbx CDR StartTime 2025-02-11 00:20:06 - End Time 2025-02-11 03:20:06 [2025-02-11 03:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448938', 'tblTempUsageDetail_20' ) start [2025-02-11 03:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448938', 'tblTempUsageDetail_20' ) end [2025-02-11 03:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448938', 'tblTempVendorCDR_20' ) start [2025-02-11 03:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448938', 'tblTempVendorCDR_20' ) end [2025-02-11 03:20:20] Production.INFO: ProcessCDR(1,14448938,1,1,2) [2025-02-11 03:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448938', 'tblTempUsageDetail_20' ) start [2025-02-11 03:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448938', 'tblTempUsageDetail_20' ) end [2025-02-11 03:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:20:23] Production.INFO: ==29711== Releasing lock... [2025-02-11 03:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:20:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-11 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:21:05 [end_date_ymd] => 2025-02-11 03:21:05 [RateCDR] => 1 ) [2025-02-11 03:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:21:05' and `end` < '2025-02-11 03:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:21:18] Production.INFO: count ==211 [2025-02-11 03:21:18] Production.ERROR: pbx CDR StartTime 2025-02-11 00:21:05 - End Time 2025-02-11 03:21:05 [2025-02-11 03:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448944', 'tblTempUsageDetail_20' ) start [2025-02-11 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448944', 'tblTempUsageDetail_20' ) end [2025-02-11 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448944', 'tblTempVendorCDR_20' ) start [2025-02-11 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448944', 'tblTempVendorCDR_20' ) end [2025-02-11 03:21:18] Production.INFO: ProcessCDR(1,14448944,1,1,2) [2025-02-11 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448944', 'tblTempUsageDetail_20' ) start [2025-02-11 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448944', 'tblTempUsageDetail_20' ) end [2025-02-11 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:21:21] Production.INFO: ==29790== Releasing lock... [2025-02-11 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:21:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-11 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:22:05 [end_date_ymd] => 2025-02-11 03:22:05 [RateCDR] => 1 ) [2025-02-11 03:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:22:05' and `end` < '2025-02-11 03:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:22:18] Production.INFO: count ==207 [2025-02-11 03:22:18] Production.ERROR: pbx CDR StartTime 2025-02-11 00:22:05 - End Time 2025-02-11 03:22:05 [2025-02-11 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448949', 'tblTempUsageDetail_20' ) start [2025-02-11 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448949', 'tblTempUsageDetail_20' ) end [2025-02-11 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448949', 'tblTempVendorCDR_20' ) start [2025-02-11 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448949', 'tblTempVendorCDR_20' ) end [2025-02-11 03:22:18] Production.INFO: ProcessCDR(1,14448949,1,1,2) [2025-02-11 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448949', 'tblTempUsageDetail_20' ) start [2025-02-11 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448949', 'tblTempUsageDetail_20' ) end [2025-02-11 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:22:21] Production.INFO: ==29861== Releasing lock... [2025-02-11 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:22:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-11 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:23:05 [end_date_ymd] => 2025-02-11 03:23:05 [RateCDR] => 1 ) [2025-02-11 03:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:23:05' and `end` < '2025-02-11 03:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:23:18] Production.INFO: count ==207 [2025-02-11 03:23:18] Production.ERROR: pbx CDR StartTime 2025-02-11 00:23:05 - End Time 2025-02-11 03:23:05 [2025-02-11 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448954', 'tblTempUsageDetail_20' ) start [2025-02-11 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448954', 'tblTempUsageDetail_20' ) end [2025-02-11 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448954', 'tblTempVendorCDR_20' ) start [2025-02-11 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448954', 'tblTempVendorCDR_20' ) end [2025-02-11 03:23:18] Production.INFO: ProcessCDR(1,14448954,1,1,2) [2025-02-11 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448954', 'tblTempUsageDetail_20' ) start [2025-02-11 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448954', 'tblTempUsageDetail_20' ) end [2025-02-11 03:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:23:22] Production.INFO: ==29931== Releasing lock... [2025-02-11 03:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:23:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-11 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:24:05 [end_date_ymd] => 2025-02-11 03:24:05 [RateCDR] => 1 ) [2025-02-11 03:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:24:05' and `end` < '2025-02-11 03:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:24:18] Production.INFO: count ==207 [2025-02-11 03:24:18] Production.ERROR: pbx CDR StartTime 2025-02-11 00:24:05 - End Time 2025-02-11 03:24:05 [2025-02-11 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448959', 'tblTempUsageDetail_20' ) start [2025-02-11 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448959', 'tblTempUsageDetail_20' ) end [2025-02-11 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448959', 'tblTempVendorCDR_20' ) start [2025-02-11 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448959', 'tblTempVendorCDR_20' ) end [2025-02-11 03:24:18] Production.INFO: ProcessCDR(1,14448959,1,1,2) [2025-02-11 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448959', 'tblTempUsageDetail_20' ) start [2025-02-11 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448959', 'tblTempUsageDetail_20' ) end [2025-02-11 03:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:24:22] Production.INFO: ==30040== Releasing lock... [2025-02-11 03:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:24:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-11 03:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:25:06 [end_date_ymd] => 2025-02-11 03:25:06 [RateCDR] => 1 ) [2025-02-11 03:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:25:06' and `end` < '2025-02-11 03:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:25:19] Production.INFO: count ==207 [2025-02-11 03:25:19] Production.ERROR: pbx CDR StartTime 2025-02-11 00:25:06 - End Time 2025-02-11 03:25:06 [2025-02-11 03:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448964', 'tblTempUsageDetail_20' ) start [2025-02-11 03:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448964', 'tblTempUsageDetail_20' ) end [2025-02-11 03:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448964', 'tblTempVendorCDR_20' ) start [2025-02-11 03:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448964', 'tblTempVendorCDR_20' ) end [2025-02-11 03:25:19] Production.INFO: ProcessCDR(1,14448964,1,1,2) [2025-02-11 03:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448964', 'tblTempUsageDetail_20' ) start [2025-02-11 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448964', 'tblTempUsageDetail_20' ) end [2025-02-11 03:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:25:23] Production.INFO: ==30111== Releasing lock... [2025-02-11 03:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:25:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-11 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:26:05 [end_date_ymd] => 2025-02-11 03:26:05 [RateCDR] => 1 ) [2025-02-11 03:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:26:05' and `end` < '2025-02-11 03:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:26:19] Production.INFO: count ==207 [2025-02-11 03:26:19] Production.ERROR: pbx CDR StartTime 2025-02-11 00:26:05 - End Time 2025-02-11 03:26:05 [2025-02-11 03:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448969', 'tblTempUsageDetail_20' ) start [2025-02-11 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448969', 'tblTempUsageDetail_20' ) end [2025-02-11 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448969', 'tblTempVendorCDR_20' ) start [2025-02-11 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448969', 'tblTempVendorCDR_20' ) end [2025-02-11 03:26:19] Production.INFO: ProcessCDR(1,14448969,1,1,2) [2025-02-11 03:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448969', 'tblTempUsageDetail_20' ) start [2025-02-11 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448969', 'tblTempUsageDetail_20' ) end [2025-02-11 03:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:26:22] Production.INFO: ==30180== Releasing lock... [2025-02-11 03:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:26:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-11 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:27:05 [end_date_ymd] => 2025-02-11 03:27:05 [RateCDR] => 1 ) [2025-02-11 03:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:27:05' and `end` < '2025-02-11 03:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:27:19] Production.INFO: count ==207 [2025-02-11 03:27:19] Production.ERROR: pbx CDR StartTime 2025-02-11 00:27:05 - End Time 2025-02-11 03:27:05 [2025-02-11 03:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448974', 'tblTempUsageDetail_20' ) start [2025-02-11 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448974', 'tblTempUsageDetail_20' ) end [2025-02-11 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448974', 'tblTempVendorCDR_20' ) start [2025-02-11 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448974', 'tblTempVendorCDR_20' ) end [2025-02-11 03:27:19] Production.INFO: ProcessCDR(1,14448974,1,1,2) [2025-02-11 03:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448974', 'tblTempUsageDetail_20' ) start [2025-02-11 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448974', 'tblTempUsageDetail_20' ) end [2025-02-11 03:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:27:22] Production.INFO: ==30248== Releasing lock... [2025-02-11 03:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:27:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-11 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:28:05 [end_date_ymd] => 2025-02-11 03:28:05 [RateCDR] => 1 ) [2025-02-11 03:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:28:05' and `end` < '2025-02-11 03:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:28:19] Production.INFO: count ==207 [2025-02-11 03:28:19] Production.ERROR: pbx CDR StartTime 2025-02-11 00:28:05 - End Time 2025-02-11 03:28:05 [2025-02-11 03:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448979', 'tblTempUsageDetail_20' ) start [2025-02-11 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448979', 'tblTempUsageDetail_20' ) end [2025-02-11 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448979', 'tblTempVendorCDR_20' ) start [2025-02-11 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448979', 'tblTempVendorCDR_20' ) end [2025-02-11 03:28:19] Production.INFO: ProcessCDR(1,14448979,1,1,2) [2025-02-11 03:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448979', 'tblTempUsageDetail_20' ) start [2025-02-11 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448979', 'tblTempUsageDetail_20' ) end [2025-02-11 03:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:28:22] Production.INFO: ==30323== Releasing lock... [2025-02-11 03:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:28:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-11 03:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:29:06 [end_date_ymd] => 2025-02-11 03:29:06 [RateCDR] => 1 ) [2025-02-11 03:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:29:06' and `end` < '2025-02-11 03:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:29:19] Production.INFO: count ==207 [2025-02-11 03:29:19] Production.ERROR: pbx CDR StartTime 2025-02-11 00:29:06 - End Time 2025-02-11 03:29:06 [2025-02-11 03:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448984', 'tblTempUsageDetail_20' ) start [2025-02-11 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448984', 'tblTempUsageDetail_20' ) end [2025-02-11 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448984', 'tblTempVendorCDR_20' ) start [2025-02-11 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448984', 'tblTempVendorCDR_20' ) end [2025-02-11 03:29:19] Production.INFO: ProcessCDR(1,14448984,1,1,2) [2025-02-11 03:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448984', 'tblTempUsageDetail_20' ) start [2025-02-11 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448984', 'tblTempUsageDetail_20' ) end [2025-02-11 03:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:29:22] Production.INFO: ==30393== Releasing lock... [2025-02-11 03:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:29:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-11 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:30:06 [end_date_ymd] => 2025-02-11 03:30:06 [RateCDR] => 1 ) [2025-02-11 03:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:30:06' and `end` < '2025-02-11 03:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:30:19] Production.INFO: count ==201 [2025-02-11 03:30:19] Production.ERROR: pbx CDR StartTime 2025-02-11 00:30:06 - End Time 2025-02-11 03:30:06 [2025-02-11 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448990', 'tblTempUsageDetail_20' ) start [2025-02-11 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448990', 'tblTempUsageDetail_20' ) end [2025-02-11 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448990', 'tblTempVendorCDR_20' ) start [2025-02-11 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448990', 'tblTempVendorCDR_20' ) end [2025-02-11 03:30:19] Production.INFO: ProcessCDR(1,14448990,1,1,2) [2025-02-11 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448990', 'tblTempUsageDetail_20' ) start [2025-02-11 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448990', 'tblTempUsageDetail_20' ) end [2025-02-11 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:30:22] Production.INFO: ==30464== Releasing lock... [2025-02-11 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:30:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-11 03:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:31:06 [end_date_ymd] => 2025-02-11 03:31:06 [RateCDR] => 1 ) [2025-02-11 03:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:31:06' and `end` < '2025-02-11 03:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:31:19] Production.INFO: count ==201 [2025-02-11 03:31:19] Production.ERROR: pbx CDR StartTime 2025-02-11 00:31:06 - End Time 2025-02-11 03:31:06 [2025-02-11 03:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448995', 'tblTempUsageDetail_20' ) start [2025-02-11 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14448995', 'tblTempUsageDetail_20' ) end [2025-02-11 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448995', 'tblTempVendorCDR_20' ) start [2025-02-11 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14448995', 'tblTempVendorCDR_20' ) end [2025-02-11 03:31:19] Production.INFO: ProcessCDR(1,14448995,1,1,2) [2025-02-11 03:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14448995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14448995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14448995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14448995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448995', 'tblTempUsageDetail_20' ) start [2025-02-11 03:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14448995', 'tblTempUsageDetail_20' ) end [2025-02-11 03:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:31:23] Production.INFO: ==30537== Releasing lock... [2025-02-11 03:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:31:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:32:06 [end_date_ymd] => 2025-02-11 03:32:06 [RateCDR] => 1 ) [2025-02-11 03:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:32:06' and `end` < '2025-02-11 03:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:32:18] Production.INFO: count ==201 [2025-02-11 03:32:18] Production.ERROR: pbx CDR StartTime 2025-02-11 00:32:06 - End Time 2025-02-11 03:32:06 [2025-02-11 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449000', 'tblTempUsageDetail_20' ) start [2025-02-11 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449000', 'tblTempUsageDetail_20' ) end [2025-02-11 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449000', 'tblTempVendorCDR_20' ) start [2025-02-11 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449000', 'tblTempVendorCDR_20' ) end [2025-02-11 03:32:18] Production.INFO: ProcessCDR(1,14449000,1,1,2) [2025-02-11 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449000', 'tblTempUsageDetail_20' ) start [2025-02-11 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449000', 'tblTempUsageDetail_20' ) end [2025-02-11 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:32:22] Production.INFO: ==30605== Releasing lock... [2025-02-11 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:32:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-11 03:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:33:06 [end_date_ymd] => 2025-02-11 03:33:06 [RateCDR] => 1 ) [2025-02-11 03:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:33:06' and `end` < '2025-02-11 03:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:33:19] Production.INFO: count ==198 [2025-02-11 03:33:19] Production.ERROR: pbx CDR StartTime 2025-02-11 00:33:06 - End Time 2025-02-11 03:33:06 [2025-02-11 03:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449005', 'tblTempUsageDetail_20' ) start [2025-02-11 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449005', 'tblTempUsageDetail_20' ) end [2025-02-11 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449005', 'tblTempVendorCDR_20' ) start [2025-02-11 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449005', 'tblTempVendorCDR_20' ) end [2025-02-11 03:33:19] Production.INFO: ProcessCDR(1,14449005,1,1,2) [2025-02-11 03:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449005', 'tblTempUsageDetail_20' ) start [2025-02-11 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449005', 'tblTempUsageDetail_20' ) end [2025-02-11 03:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:33:22] Production.INFO: ==30676== Releasing lock... [2025-02-11 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:33:22] Production.INFO: 29 MB #Memory Used# [2025-02-11 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:34:05 [end_date_ymd] => 2025-02-11 03:34:05 [RateCDR] => 1 ) [2025-02-11 03:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:34:05' and `end` < '2025-02-11 03:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:34:18] Production.INFO: count ==198 [2025-02-11 03:34:18] Production.ERROR: pbx CDR StartTime 2025-02-11 00:34:05 - End Time 2025-02-11 03:34:05 [2025-02-11 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449010', 'tblTempUsageDetail_20' ) start [2025-02-11 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449010', 'tblTempUsageDetail_20' ) end [2025-02-11 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449010', 'tblTempVendorCDR_20' ) start [2025-02-11 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449010', 'tblTempVendorCDR_20' ) end [2025-02-11 03:34:18] Production.INFO: ProcessCDR(1,14449010,1,1,2) [2025-02-11 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449010', 'tblTempUsageDetail_20' ) start [2025-02-11 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449010', 'tblTempUsageDetail_20' ) end [2025-02-11 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:34:22] Production.INFO: ==30747== Releasing lock... [2025-02-11 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:34:22] Production.INFO: 29 MB #Memory Used# [2025-02-11 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:35:05 [end_date_ymd] => 2025-02-11 03:35:05 [RateCDR] => 1 ) [2025-02-11 03:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:35:05' and `end` < '2025-02-11 03:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:35:18] Production.INFO: count ==198 [2025-02-11 03:35:18] Production.ERROR: pbx CDR StartTime 2025-02-11 00:35:05 - End Time 2025-02-11 03:35:05 [2025-02-11 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449015', 'tblTempUsageDetail_20' ) start [2025-02-11 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449015', 'tblTempUsageDetail_20' ) end [2025-02-11 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449015', 'tblTempVendorCDR_20' ) start [2025-02-11 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449015', 'tblTempVendorCDR_20' ) end [2025-02-11 03:35:18] Production.INFO: ProcessCDR(1,14449015,1,1,2) [2025-02-11 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449015', 'tblTempUsageDetail_20' ) start [2025-02-11 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449015', 'tblTempUsageDetail_20' ) end [2025-02-11 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:35:22] Production.INFO: ==30818== Releasing lock... [2025-02-11 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:35:22] Production.INFO: 29 MB #Memory Used# [2025-02-11 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:36:05 [end_date_ymd] => 2025-02-11 03:36:05 [RateCDR] => 1 ) [2025-02-11 03:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:36:05' and `end` < '2025-02-11 03:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:36:18] Production.INFO: count ==198 [2025-02-11 03:36:18] Production.ERROR: pbx CDR StartTime 2025-02-11 00:36:05 - End Time 2025-02-11 03:36:05 [2025-02-11 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449020', 'tblTempUsageDetail_20' ) start [2025-02-11 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449020', 'tblTempUsageDetail_20' ) end [2025-02-11 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449020', 'tblTempVendorCDR_20' ) start [2025-02-11 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449020', 'tblTempVendorCDR_20' ) end [2025-02-11 03:36:18] Production.INFO: ProcessCDR(1,14449020,1,1,2) [2025-02-11 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449020', 'tblTempUsageDetail_20' ) start [2025-02-11 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449020', 'tblTempUsageDetail_20' ) end [2025-02-11 03:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:36:21] Production.INFO: ==30895== Releasing lock... [2025-02-11 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:36:21] Production.INFO: 29 MB #Memory Used# [2025-02-11 03:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:37:06 [end_date_ymd] => 2025-02-11 03:37:06 [RateCDR] => 1 ) [2025-02-11 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-02-11 00:37:06' and `end` < '2025-02-11 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-02-11 03:37:18] Production.INFO: count ==197 [2025-02-11 03:37:18] Production.ERROR: pbx CDR StartTime 2025-02-11 00:37:06 - End Time 2025-02-11 03:37:06 [2025-02-11 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449025', 'tblTempUsageDetail_20' ) start [2025-02-11 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449025', 'tblTempUsageDetail_20' ) end [2025-02-11 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449025', 'tblTempVendorCDR_20' ) start [2025-02-11 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449025', 'tblTempVendorCDR_20' ) end [2025-02-11 03:37:18] Production.INFO: ProcessCDR(1,14449025,1,1,2) [2025-02-11 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449025', 'tblTempUsageDetail_20' ) start [2025-02-11 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449025', 'tblTempUsageDetail_20' ) end [2025-02-11 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:37:22] Production.INFO: ==30966== Releasing lock... [2025-02-11 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:37:22] Production.INFO: 29 MB #Memory Used# [2025-02-11 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:38:05 [end_date_ymd] => 2025-02-11 03:38:05 [RateCDR] => 1 ) [2025-02-11 03:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:38:05' and `end` < '2025-02-11 03:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:38:18] Production.INFO: count ==196 [2025-02-11 03:38:18] Production.ERROR: pbx CDR StartTime 2025-02-11 00:38:05 - End Time 2025-02-11 03:38:05 [2025-02-11 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449030', 'tblTempUsageDetail_20' ) start [2025-02-11 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449030', 'tblTempUsageDetail_20' ) end [2025-02-11 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449030', 'tblTempVendorCDR_20' ) start [2025-02-11 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449030', 'tblTempVendorCDR_20' ) end [2025-02-11 03:38:18] Production.INFO: ProcessCDR(1,14449030,1,1,2) [2025-02-11 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449030', 'tblTempUsageDetail_20' ) start [2025-02-11 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449030', 'tblTempUsageDetail_20' ) end [2025-02-11 03:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:38:22] Production.INFO: ==31035== Releasing lock... [2025-02-11 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:38:22] Production.INFO: 29 MB #Memory Used# [2025-02-11 03:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:39:06 [end_date_ymd] => 2025-02-11 03:39:06 [RateCDR] => 1 ) [2025-02-11 03:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:39:06' and `end` < '2025-02-11 03:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:39:19] Production.INFO: count ==196 [2025-02-11 03:39:19] Production.ERROR: pbx CDR StartTime 2025-02-11 00:39:06 - End Time 2025-02-11 03:39:06 [2025-02-11 03:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449035', 'tblTempUsageDetail_20' ) start [2025-02-11 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449035', 'tblTempUsageDetail_20' ) end [2025-02-11 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449035', 'tblTempVendorCDR_20' ) start [2025-02-11 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449035', 'tblTempVendorCDR_20' ) end [2025-02-11 03:39:19] Production.INFO: ProcessCDR(1,14449035,1,1,2) [2025-02-11 03:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449035', 'tblTempUsageDetail_20' ) start [2025-02-11 03:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449035', 'tblTempUsageDetail_20' ) end [2025-02-11 03:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:39:23] Production.INFO: ==31166== Releasing lock... [2025-02-11 03:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:39:23] Production.INFO: 29 MB #Memory Used# [2025-02-11 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:40:06 [end_date_ymd] => 2025-02-11 03:40:06 [RateCDR] => 1 ) [2025-02-11 03:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:40:06' and `end` < '2025-02-11 03:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:40:19] Production.INFO: count ==189 [2025-02-11 03:40:19] Production.ERROR: pbx CDR StartTime 2025-02-11 00:40:06 - End Time 2025-02-11 03:40:06 [2025-02-11 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449041', 'tblTempUsageDetail_20' ) start [2025-02-11 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449041', 'tblTempUsageDetail_20' ) end [2025-02-11 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449041', 'tblTempVendorCDR_20' ) start [2025-02-11 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449041', 'tblTempVendorCDR_20' ) end [2025-02-11 03:40:19] Production.INFO: ProcessCDR(1,14449041,1,1,2) [2025-02-11 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449041', 'tblTempUsageDetail_20' ) start [2025-02-11 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449041', 'tblTempUsageDetail_20' ) end [2025-02-11 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:40:22] Production.INFO: ==31258== Releasing lock... [2025-02-11 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:40:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-11 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:41:05 [end_date_ymd] => 2025-02-11 03:41:05 [RateCDR] => 1 ) [2025-02-11 03:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:41:05' and `end` < '2025-02-11 03:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:41:19] Production.INFO: count ==179 [2025-02-11 03:41:19] Production.ERROR: pbx CDR StartTime 2025-02-11 00:41:05 - End Time 2025-02-11 03:41:05 [2025-02-11 03:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449046', 'tblTempUsageDetail_20' ) start [2025-02-11 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449046', 'tblTempUsageDetail_20' ) end [2025-02-11 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449046', 'tblTempVendorCDR_20' ) start [2025-02-11 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449046', 'tblTempVendorCDR_20' ) end [2025-02-11 03:41:19] Production.INFO: ProcessCDR(1,14449046,1,1,2) [2025-02-11 03:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449046', 'tblTempUsageDetail_20' ) start [2025-02-11 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449046', 'tblTempUsageDetail_20' ) end [2025-02-11 03:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:41:22] Production.INFO: ==31331== Releasing lock... [2025-02-11 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:41:22] Production.INFO: 29 MB #Memory Used# [2025-02-11 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:42:05 [end_date_ymd] => 2025-02-11 03:42:05 [RateCDR] => 1 ) [2025-02-11 03:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:42:05' and `end` < '2025-02-11 03:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:42:18] Production.INFO: count ==179 [2025-02-11 03:42:18] Production.ERROR: pbx CDR StartTime 2025-02-11 00:42:05 - End Time 2025-02-11 03:42:05 [2025-02-11 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449051', 'tblTempUsageDetail_20' ) start [2025-02-11 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449051', 'tblTempUsageDetail_20' ) end [2025-02-11 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449051', 'tblTempVendorCDR_20' ) start [2025-02-11 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449051', 'tblTempVendorCDR_20' ) end [2025-02-11 03:42:18] Production.INFO: ProcessCDR(1,14449051,1,1,2) [2025-02-11 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449051', 'tblTempUsageDetail_20' ) start [2025-02-11 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449051', 'tblTempUsageDetail_20' ) end [2025-02-11 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:42:22] Production.INFO: ==31399== Releasing lock... [2025-02-11 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:42:22] Production.INFO: 29 MB #Memory Used# [2025-02-11 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:43:05 [end_date_ymd] => 2025-02-11 03:43:05 [RateCDR] => 1 ) [2025-02-11 03:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:43:05' and `end` < '2025-02-11 03:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:43:18] Production.INFO: count ==178 [2025-02-11 03:43:18] Production.ERROR: pbx CDR StartTime 2025-02-11 00:43:05 - End Time 2025-02-11 03:43:05 [2025-02-11 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449056', 'tblTempUsageDetail_20' ) start [2025-02-11 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449056', 'tblTempUsageDetail_20' ) end [2025-02-11 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449056', 'tblTempVendorCDR_20' ) start [2025-02-11 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449056', 'tblTempVendorCDR_20' ) end [2025-02-11 03:43:18] Production.INFO: ProcessCDR(1,14449056,1,1,2) [2025-02-11 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449056', 'tblTempUsageDetail_20' ) start [2025-02-11 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449056', 'tblTempUsageDetail_20' ) end [2025-02-11 03:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:43:22] Production.INFO: ==31470== Releasing lock... [2025-02-11 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:43:22] Production.INFO: 29 MB #Memory Used# [2025-02-11 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:44:05 [end_date_ymd] => 2025-02-11 03:44:05 [RateCDR] => 1 ) [2025-02-11 03:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:44:05' and `end` < '2025-02-11 03:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:44:18] Production.INFO: count ==178 [2025-02-11 03:44:18] Production.ERROR: pbx CDR StartTime 2025-02-11 00:44:05 - End Time 2025-02-11 03:44:05 [2025-02-11 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449061', 'tblTempUsageDetail_20' ) start [2025-02-11 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449061', 'tblTempUsageDetail_20' ) end [2025-02-11 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449061', 'tblTempVendorCDR_20' ) start [2025-02-11 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449061', 'tblTempVendorCDR_20' ) end [2025-02-11 03:44:18] Production.INFO: ProcessCDR(1,14449061,1,1,2) [2025-02-11 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449061', 'tblTempUsageDetail_20' ) start [2025-02-11 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449061', 'tblTempUsageDetail_20' ) end [2025-02-11 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:44:21] Production.INFO: ==31538== Releasing lock... [2025-02-11 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:44:21] Production.INFO: 29 MB #Memory Used# [2025-02-11 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:45:05 [end_date_ymd] => 2025-02-11 03:45:05 [RateCDR] => 1 ) [2025-02-11 03:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:45:05' and `end` < '2025-02-11 03:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:45:18] Production.INFO: count ==178 [2025-02-11 03:45:18] Production.ERROR: pbx CDR StartTime 2025-02-11 00:45:05 - End Time 2025-02-11 03:45:05 [2025-02-11 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449066', 'tblTempUsageDetail_20' ) start [2025-02-11 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449066', 'tblTempUsageDetail_20' ) end [2025-02-11 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449066', 'tblTempVendorCDR_20' ) start [2025-02-11 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449066', 'tblTempVendorCDR_20' ) end [2025-02-11 03:45:18] Production.INFO: ProcessCDR(1,14449066,1,1,2) [2025-02-11 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449066', 'tblTempUsageDetail_20' ) start [2025-02-11 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449066', 'tblTempUsageDetail_20' ) end [2025-02-11 03:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:45:22] Production.INFO: ==31613== Releasing lock... [2025-02-11 03:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:45:22] Production.INFO: 29 MB #Memory Used# [2025-02-11 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:46:05 [end_date_ymd] => 2025-02-11 03:46:05 [RateCDR] => 1 ) [2025-02-11 03:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:46:05' and `end` < '2025-02-11 03:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:46:18] Production.INFO: count ==178 [2025-02-11 03:46:18] Production.ERROR: pbx CDR StartTime 2025-02-11 00:46:05 - End Time 2025-02-11 03:46:05 [2025-02-11 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449071', 'tblTempUsageDetail_20' ) start [2025-02-11 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449071', 'tblTempUsageDetail_20' ) end [2025-02-11 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449071', 'tblTempVendorCDR_20' ) start [2025-02-11 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449071', 'tblTempVendorCDR_20' ) end [2025-02-11 03:46:18] Production.INFO: ProcessCDR(1,14449071,1,1,2) [2025-02-11 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449071', 'tblTempUsageDetail_20' ) start [2025-02-11 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449071', 'tblTempUsageDetail_20' ) end [2025-02-11 03:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:46:22] Production.INFO: ==31704== Releasing lock... [2025-02-11 03:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:46:22] Production.INFO: 29 MB #Memory Used# [2025-02-11 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:47:05 [end_date_ymd] => 2025-02-11 03:47:05 [RateCDR] => 1 ) [2025-02-11 03:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:47:05' and `end` < '2025-02-11 03:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:47:19] Production.INFO: count ==178 [2025-02-11 03:47:19] Production.ERROR: pbx CDR StartTime 2025-02-11 00:47:05 - End Time 2025-02-11 03:47:05 [2025-02-11 03:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449076', 'tblTempUsageDetail_20' ) start [2025-02-11 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449076', 'tblTempUsageDetail_20' ) end [2025-02-11 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449076', 'tblTempVendorCDR_20' ) start [2025-02-11 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449076', 'tblTempVendorCDR_20' ) end [2025-02-11 03:47:19] Production.INFO: ProcessCDR(1,14449076,1,1,2) [2025-02-11 03:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449076', 'tblTempUsageDetail_20' ) start [2025-02-11 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449076', 'tblTempUsageDetail_20' ) end [2025-02-11 03:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:47:22] Production.INFO: ==31794== Releasing lock... [2025-02-11 03:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:47:22] Production.INFO: 29 MB #Memory Used# [2025-02-11 03:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:48:06 [end_date_ymd] => 2025-02-11 03:48:06 [RateCDR] => 1 ) [2025-02-11 03:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:48:06' and `end` < '2025-02-11 03:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:48:19] Production.INFO: count ==178 [2025-02-11 03:48:19] Production.ERROR: pbx CDR StartTime 2025-02-11 00:48:06 - End Time 2025-02-11 03:48:06 [2025-02-11 03:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449081', 'tblTempUsageDetail_20' ) start [2025-02-11 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449081', 'tblTempUsageDetail_20' ) end [2025-02-11 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449081', 'tblTempVendorCDR_20' ) start [2025-02-11 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449081', 'tblTempVendorCDR_20' ) end [2025-02-11 03:48:19] Production.INFO: ProcessCDR(1,14449081,1,1,2) [2025-02-11 03:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449081', 'tblTempUsageDetail_20' ) start [2025-02-11 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449081', 'tblTempUsageDetail_20' ) end [2025-02-11 03:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:48:22] Production.INFO: ==31866== Releasing lock... [2025-02-11 03:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:48:22] Production.INFO: 29 MB #Memory Used# [2025-02-11 03:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:49:05 [end_date_ymd] => 2025-02-11 03:49:05 [RateCDR] => 1 ) [2025-02-11 03:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:49:05' and `end` < '2025-02-11 03:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:49:18] Production.INFO: count ==182 [2025-02-11 03:49:18] Production.ERROR: pbx CDR StartTime 2025-02-11 00:49:05 - End Time 2025-02-11 03:49:05 [2025-02-11 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449086', 'tblTempUsageDetail_20' ) start [2025-02-11 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449086', 'tblTempUsageDetail_20' ) end [2025-02-11 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449086', 'tblTempVendorCDR_20' ) start [2025-02-11 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449086', 'tblTempVendorCDR_20' ) end [2025-02-11 03:49:18] Production.INFO: ProcessCDR(1,14449086,1,1,2) [2025-02-11 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449086', 'tblTempUsageDetail_20' ) start [2025-02-11 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449086', 'tblTempUsageDetail_20' ) end [2025-02-11 03:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:49:22] Production.INFO: ==31937== Releasing lock... [2025-02-11 03:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:49:22] Production.INFO: 29 MB #Memory Used# [2025-02-11 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:50:06 [end_date_ymd] => 2025-02-11 03:50:06 [RateCDR] => 1 ) [2025-02-11 03:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:50:06' and `end` < '2025-02-11 03:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:50:20] Production.INFO: count ==184 [2025-02-11 03:50:20] Production.ERROR: pbx CDR StartTime 2025-02-11 00:50:06 - End Time 2025-02-11 03:50:06 [2025-02-11 03:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449091', 'tblTempUsageDetail_20' ) start [2025-02-11 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449091', 'tblTempUsageDetail_20' ) end [2025-02-11 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449091', 'tblTempVendorCDR_20' ) start [2025-02-11 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449091', 'tblTempVendorCDR_20' ) end [2025-02-11 03:50:20] Production.INFO: ProcessCDR(1,14449091,1,1,2) [2025-02-11 03:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449091', 'tblTempUsageDetail_20' ) start [2025-02-11 03:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449091', 'tblTempUsageDetail_20' ) end [2025-02-11 03:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:50:24] Production.INFO: ==32012== Releasing lock... [2025-02-11 03:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:50:24] Production.INFO: 29 MB #Memory Used# [2025-02-11 03:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:51:06 [end_date_ymd] => 2025-02-11 03:51:06 [RateCDR] => 1 ) [2025-02-11 03:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:51:06' and `end` < '2025-02-11 03:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:51:19] Production.INFO: count ==181 [2025-02-11 03:51:19] Production.ERROR: pbx CDR StartTime 2025-02-11 00:51:06 - End Time 2025-02-11 03:51:06 [2025-02-11 03:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449097', 'tblTempUsageDetail_20' ) start [2025-02-11 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449097', 'tblTempUsageDetail_20' ) end [2025-02-11 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449097', 'tblTempVendorCDR_20' ) start [2025-02-11 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449097', 'tblTempVendorCDR_20' ) end [2025-02-11 03:51:19] Production.INFO: ProcessCDR(1,14449097,1,1,2) [2025-02-11 03:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449097', 'tblTempUsageDetail_20' ) start [2025-02-11 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449097', 'tblTempUsageDetail_20' ) end [2025-02-11 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:51:22] Production.INFO: ==32083== Releasing lock... [2025-02-11 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:51:22] Production.INFO: 29 MB #Memory Used# [2025-02-11 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:52:05 [end_date_ymd] => 2025-02-11 03:52:05 [RateCDR] => 1 ) [2025-02-11 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-02-11 00:52:05' and `end` < '2025-02-11 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-02-11 03:52:19] Production.INFO: count ==180 [2025-02-11 03:52:19] Production.ERROR: pbx CDR StartTime 2025-02-11 00:52:05 - End Time 2025-02-11 03:52:05 [2025-02-11 03:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449102', 'tblTempUsageDetail_20' ) start [2025-02-11 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449102', 'tblTempUsageDetail_20' ) end [2025-02-11 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449102', 'tblTempVendorCDR_20' ) start [2025-02-11 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449102', 'tblTempVendorCDR_20' ) end [2025-02-11 03:52:19] Production.INFO: ProcessCDR(1,14449102,1,1,2) [2025-02-11 03:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449102', 'tblTempUsageDetail_20' ) start [2025-02-11 03:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449102', 'tblTempUsageDetail_20' ) end [2025-02-11 03:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:52:23] Production.INFO: ==32155== Releasing lock... [2025-02-11 03:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:52:23] Production.INFO: 29 MB #Memory Used# [2025-02-11 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:53:05 [end_date_ymd] => 2025-02-11 03:53:05 [RateCDR] => 1 ) [2025-02-11 03:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:53:05' and `end` < '2025-02-11 03:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:53:19] Production.INFO: count ==180 [2025-02-11 03:53:19] Production.ERROR: pbx CDR StartTime 2025-02-11 00:53:05 - End Time 2025-02-11 03:53:05 [2025-02-11 03:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449107', 'tblTempUsageDetail_20' ) start [2025-02-11 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449107', 'tblTempUsageDetail_20' ) end [2025-02-11 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449107', 'tblTempVendorCDR_20' ) start [2025-02-11 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449107', 'tblTempVendorCDR_20' ) end [2025-02-11 03:53:19] Production.INFO: ProcessCDR(1,14449107,1,1,2) [2025-02-11 03:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449107', 'tblTempUsageDetail_20' ) start [2025-02-11 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449107', 'tblTempUsageDetail_20' ) end [2025-02-11 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:53:22] Production.INFO: ==32232== Releasing lock... [2025-02-11 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:53:22] Production.INFO: 29 MB #Memory Used# [2025-02-11 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:54:05 [end_date_ymd] => 2025-02-11 03:54:05 [RateCDR] => 1 ) [2025-02-11 03:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:54:05' and `end` < '2025-02-11 03:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:54:17] Production.INFO: count ==179 [2025-02-11 03:54:17] Production.ERROR: pbx CDR StartTime 2025-02-11 00:54:05 - End Time 2025-02-11 03:54:05 [2025-02-11 03:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449112', 'tblTempUsageDetail_20' ) start [2025-02-11 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449112', 'tblTempUsageDetail_20' ) end [2025-02-11 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449112', 'tblTempVendorCDR_20' ) start [2025-02-11 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449112', 'tblTempVendorCDR_20' ) end [2025-02-11 03:54:17] Production.INFO: ProcessCDR(1,14449112,1,1,2) [2025-02-11 03:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449112', 'tblTempUsageDetail_20' ) start [2025-02-11 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449112', 'tblTempUsageDetail_20' ) end [2025-02-11 03:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:54:21] Production.INFO: ==32300== Releasing lock... [2025-02-11 03:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:54:21] Production.INFO: 29 MB #Memory Used# [2025-02-11 03:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:55:06 [end_date_ymd] => 2025-02-11 03:55:06 [RateCDR] => 1 ) [2025-02-11 03:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:55:06' and `end` < '2025-02-11 03:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:55:18] Production.INFO: count ==179 [2025-02-11 03:55:18] Production.ERROR: pbx CDR StartTime 2025-02-11 00:55:06 - End Time 2025-02-11 03:55:06 [2025-02-11 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449117', 'tblTempUsageDetail_20' ) start [2025-02-11 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449117', 'tblTempUsageDetail_20' ) end [2025-02-11 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449117', 'tblTempVendorCDR_20' ) start [2025-02-11 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449117', 'tblTempVendorCDR_20' ) end [2025-02-11 03:55:18] Production.INFO: ProcessCDR(1,14449117,1,1,2) [2025-02-11 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449117', 'tblTempUsageDetail_20' ) start [2025-02-11 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449117', 'tblTempUsageDetail_20' ) end [2025-02-11 03:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:55:22] Production.INFO: ==32409== Releasing lock... [2025-02-11 03:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:55:22] Production.INFO: 29 MB #Memory Used# [2025-02-11 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:56:05 [end_date_ymd] => 2025-02-11 03:56:05 [RateCDR] => 1 ) [2025-02-11 03:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:56:05' and `end` < '2025-02-11 03:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:56:18] Production.INFO: count ==179 [2025-02-11 03:56:18] Production.ERROR: pbx CDR StartTime 2025-02-11 00:56:05 - End Time 2025-02-11 03:56:05 [2025-02-11 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449122', 'tblTempUsageDetail_20' ) start [2025-02-11 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449122', 'tblTempUsageDetail_20' ) end [2025-02-11 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449122', 'tblTempVendorCDR_20' ) start [2025-02-11 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449122', 'tblTempVendorCDR_20' ) end [2025-02-11 03:56:18] Production.INFO: ProcessCDR(1,14449122,1,1,2) [2025-02-11 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449122', 'tblTempUsageDetail_20' ) start [2025-02-11 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449122', 'tblTempUsageDetail_20' ) end [2025-02-11 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:56:22] Production.INFO: ==32484== Releasing lock... [2025-02-11 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:56:22] Production.INFO: 29 MB #Memory Used# [2025-02-11 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:57:05 [end_date_ymd] => 2025-02-11 03:57:05 [RateCDR] => 1 ) [2025-02-11 03:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:57:05' and `end` < '2025-02-11 03:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:57:18] Production.INFO: count ==179 [2025-02-11 03:57:18] Production.ERROR: pbx CDR StartTime 2025-02-11 00:57:05 - End Time 2025-02-11 03:57:05 [2025-02-11 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449127', 'tblTempUsageDetail_20' ) start [2025-02-11 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449127', 'tblTempUsageDetail_20' ) end [2025-02-11 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449127', 'tblTempVendorCDR_20' ) start [2025-02-11 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449127', 'tblTempVendorCDR_20' ) end [2025-02-11 03:57:18] Production.INFO: ProcessCDR(1,14449127,1,1,2) [2025-02-11 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449127', 'tblTempUsageDetail_20' ) start [2025-02-11 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449127', 'tblTempUsageDetail_20' ) end [2025-02-11 03:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:57:22] Production.INFO: ==32557== Releasing lock... [2025-02-11 03:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:57:22] Production.INFO: 29 MB #Memory Used# [2025-02-11 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:58:05 [end_date_ymd] => 2025-02-11 03:58:05 [RateCDR] => 1 ) [2025-02-11 03:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:58:05' and `end` < '2025-02-11 03:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:58:18] Production.INFO: count ==178 [2025-02-11 03:58:18] Production.ERROR: pbx CDR StartTime 2025-02-11 00:58:05 - End Time 2025-02-11 03:58:05 [2025-02-11 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449132', 'tblTempUsageDetail_20' ) start [2025-02-11 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449132', 'tblTempUsageDetail_20' ) end [2025-02-11 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449132', 'tblTempVendorCDR_20' ) start [2025-02-11 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449132', 'tblTempVendorCDR_20' ) end [2025-02-11 03:58:18] Production.INFO: ProcessCDR(1,14449132,1,1,2) [2025-02-11 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449132', 'tblTempUsageDetail_20' ) start [2025-02-11 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449132', 'tblTempUsageDetail_20' ) end [2025-02-11 03:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:58:22] Production.INFO: ==32629== Releasing lock... [2025-02-11 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:58:22] Production.INFO: 29 MB #Memory Used# [2025-02-11 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 00:59:05 [end_date_ymd] => 2025-02-11 03:59:05 [RateCDR] => 1 ) [2025-02-11 03:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 00:59:05' and `end` < '2025-02-11 03:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 03:59:18] Production.INFO: count ==178 [2025-02-11 03:59:18] Production.ERROR: pbx CDR StartTime 2025-02-11 00:59:05 - End Time 2025-02-11 03:59:05 [2025-02-11 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449137', 'tblTempUsageDetail_20' ) start [2025-02-11 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449137', 'tblTempUsageDetail_20' ) end [2025-02-11 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449137', 'tblTempVendorCDR_20' ) start [2025-02-11 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449137', 'tblTempVendorCDR_20' ) end [2025-02-11 03:59:18] Production.INFO: ProcessCDR(1,14449137,1,1,2) [2025-02-11 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449137', 'tblTempUsageDetail_20' ) start [2025-02-11 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449137', 'tblTempUsageDetail_20' ) end [2025-02-11 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 03:59:21] Production.INFO: ==32705== Releasing lock... [2025-02-11 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 03:59:21] Production.INFO: 29 MB #Memory Used# [2025-02-11 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:00:07 [end_date_ymd] => 2025-02-11 04:00:07 [RateCDR] => 1 ) [2025-02-11 04:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:00:07' and `end` < '2025-02-11 04:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:00:20] Production.INFO: count ==170 [2025-02-11 04:00:20] Production.ERROR: pbx CDR StartTime 2025-02-11 01:00:07 - End Time 2025-02-11 04:00:07 [2025-02-11 04:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449144', 'tblTempUsageDetail_20' ) start [2025-02-11 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449144', 'tblTempUsageDetail_20' ) end [2025-02-11 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449144', 'tblTempVendorCDR_20' ) start [2025-02-11 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449144', 'tblTempVendorCDR_20' ) end [2025-02-11 04:00:20] Production.INFO: ProcessCDR(1,14449144,1,1,2) [2025-02-11 04:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449144', 'tblTempUsageDetail_20' ) start [2025-02-11 04:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449144', 'tblTempUsageDetail_20' ) end [2025-02-11 04:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:00:25] Production.INFO: ==325== Releasing lock... [2025-02-11 04:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:00:25] Production.INFO: 29 MB #Memory Used# [2025-02-11 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:01:06 [end_date_ymd] => 2025-02-11 04:01:06 [RateCDR] => 1 ) [2025-02-11 04:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:01:06' and `end` < '2025-02-11 04:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:01:19] Production.INFO: count ==170 [2025-02-11 04:01:19] Production.ERROR: pbx CDR StartTime 2025-02-11 01:01:06 - End Time 2025-02-11 04:01:06 [2025-02-11 04:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449149', 'tblTempUsageDetail_20' ) start [2025-02-11 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449149', 'tblTempUsageDetail_20' ) end [2025-02-11 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449149', 'tblTempVendorCDR_20' ) start [2025-02-11 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449149', 'tblTempVendorCDR_20' ) end [2025-02-11 04:01:19] Production.INFO: ProcessCDR(1,14449149,1,1,2) [2025-02-11 04:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449149', 'tblTempUsageDetail_20' ) start [2025-02-11 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449149', 'tblTempUsageDetail_20' ) end [2025-02-11 04:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:01:22] Production.INFO: ==426== Releasing lock... [2025-02-11 04:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:01:22] Production.INFO: 29 MB #Memory Used# [2025-02-11 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:02:05 [end_date_ymd] => 2025-02-11 04:02:05 [RateCDR] => 1 ) [2025-02-11 04:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:02:05' and `end` < '2025-02-11 04:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:02:19] Production.INFO: count ==169 [2025-02-11 04:02:19] Production.ERROR: pbx CDR StartTime 2025-02-11 01:02:05 - End Time 2025-02-11 04:02:05 [2025-02-11 04:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449154', 'tblTempUsageDetail_20' ) start [2025-02-11 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449154', 'tblTempUsageDetail_20' ) end [2025-02-11 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449154', 'tblTempVendorCDR_20' ) start [2025-02-11 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449154', 'tblTempVendorCDR_20' ) end [2025-02-11 04:02:19] Production.INFO: ProcessCDR(1,14449154,1,1,2) [2025-02-11 04:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449154', 'tblTempUsageDetail_20' ) start [2025-02-11 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449154', 'tblTempUsageDetail_20' ) end [2025-02-11 04:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:02:22] Production.INFO: ==499== Releasing lock... [2025-02-11 04:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:02:22] Production.INFO: 29 MB #Memory Used# [2025-02-11 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:03:05 [end_date_ymd] => 2025-02-11 04:03:05 [RateCDR] => 1 ) [2025-02-11 04:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:03:05' and `end` < '2025-02-11 04:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:03:18] Production.INFO: count ==169 [2025-02-11 04:03:18] Production.ERROR: pbx CDR StartTime 2025-02-11 01:03:05 - End Time 2025-02-11 04:03:05 [2025-02-11 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449159', 'tblTempUsageDetail_20' ) start [2025-02-11 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449159', 'tblTempUsageDetail_20' ) end [2025-02-11 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449159', 'tblTempVendorCDR_20' ) start [2025-02-11 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449159', 'tblTempVendorCDR_20' ) end [2025-02-11 04:03:18] Production.INFO: ProcessCDR(1,14449159,1,1,2) [2025-02-11 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449159', 'tblTempUsageDetail_20' ) start [2025-02-11 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449159', 'tblTempUsageDetail_20' ) end [2025-02-11 04:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:03:22] Production.INFO: ==574== Releasing lock... [2025-02-11 04:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:03:22] Production.INFO: 29 MB #Memory Used# [2025-02-11 04:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:04:04 [end_date_ymd] => 2025-02-11 04:04:04 [RateCDR] => 1 ) [2025-02-11 04:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:04:04' and `end` < '2025-02-11 04:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:04:17] Production.INFO: count ==169 [2025-02-11 04:04:17] Production.ERROR: pbx CDR StartTime 2025-02-11 01:04:04 - End Time 2025-02-11 04:04:04 [2025-02-11 04:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449164', 'tblTempUsageDetail_20' ) start [2025-02-11 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449164', 'tblTempUsageDetail_20' ) end [2025-02-11 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449164', 'tblTempVendorCDR_20' ) start [2025-02-11 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449164', 'tblTempVendorCDR_20' ) end [2025-02-11 04:04:17] Production.INFO: ProcessCDR(1,14449164,1,1,2) [2025-02-11 04:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449164', 'tblTempUsageDetail_20' ) start [2025-02-11 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449164', 'tblTempUsageDetail_20' ) end [2025-02-11 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:04:21] Production.INFO: ==655== Releasing lock... [2025-02-11 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:04:21] Production.INFO: 29 MB #Memory Used# [2025-02-11 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:05:05 [end_date_ymd] => 2025-02-11 04:05:05 [RateCDR] => 1 ) [2025-02-11 04:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:05:05' and `end` < '2025-02-11 04:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:05:18] Production.INFO: count ==169 [2025-02-11 04:05:18] Production.ERROR: pbx CDR StartTime 2025-02-11 01:05:05 - End Time 2025-02-11 04:05:05 [2025-02-11 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449169', 'tblTempUsageDetail_20' ) start [2025-02-11 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449169', 'tblTempUsageDetail_20' ) end [2025-02-11 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449169', 'tblTempVendorCDR_20' ) start [2025-02-11 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449169', 'tblTempVendorCDR_20' ) end [2025-02-11 04:05:18] Production.INFO: ProcessCDR(1,14449169,1,1,2) [2025-02-11 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449169', 'tblTempUsageDetail_20' ) start [2025-02-11 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449169', 'tblTempUsageDetail_20' ) end [2025-02-11 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:05:21] Production.INFO: ==758== Releasing lock... [2025-02-11 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:05:21] Production.INFO: 29 MB #Memory Used# [2025-02-11 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:06:05 [end_date_ymd] => 2025-02-11 04:06:05 [RateCDR] => 1 ) [2025-02-11 04:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:06:05' and `end` < '2025-02-11 04:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:06:18] Production.INFO: count ==168 [2025-02-11 04:06:18] Production.ERROR: pbx CDR StartTime 2025-02-11 01:06:05 - End Time 2025-02-11 04:06:05 [2025-02-11 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449174', 'tblTempUsageDetail_20' ) start [2025-02-11 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449174', 'tblTempUsageDetail_20' ) end [2025-02-11 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449174', 'tblTempVendorCDR_20' ) start [2025-02-11 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449174', 'tblTempVendorCDR_20' ) end [2025-02-11 04:06:18] Production.INFO: ProcessCDR(1,14449174,1,1,2) [2025-02-11 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449174', 'tblTempUsageDetail_20' ) start [2025-02-11 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449174', 'tblTempUsageDetail_20' ) end [2025-02-11 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:06:21] Production.INFO: ==832== Releasing lock... [2025-02-11 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:06:21] Production.INFO: 29 MB #Memory Used# [2025-02-11 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:07:05 [end_date_ymd] => 2025-02-11 04:07:05 [RateCDR] => 1 ) [2025-02-11 04:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:07:05' and `end` < '2025-02-11 04:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:07:18] Production.INFO: count ==168 [2025-02-11 04:07:18] Production.ERROR: pbx CDR StartTime 2025-02-11 01:07:05 - End Time 2025-02-11 04:07:05 [2025-02-11 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449179', 'tblTempUsageDetail_20' ) start [2025-02-11 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449179', 'tblTempUsageDetail_20' ) end [2025-02-11 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449179', 'tblTempVendorCDR_20' ) start [2025-02-11 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449179', 'tblTempVendorCDR_20' ) end [2025-02-11 04:07:18] Production.INFO: ProcessCDR(1,14449179,1,1,2) [2025-02-11 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449179', 'tblTempUsageDetail_20' ) start [2025-02-11 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449179', 'tblTempUsageDetail_20' ) end [2025-02-11 04:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:07:22] Production.INFO: ==902== Releasing lock... [2025-02-11 04:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:07:22] Production.INFO: 29 MB #Memory Used# [2025-02-11 04:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:08:06 [end_date_ymd] => 2025-02-11 04:08:06 [RateCDR] => 1 ) [2025-02-11 04:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:08:06' and `end` < '2025-02-11 04:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:08:19] Production.INFO: count ==168 [2025-02-11 04:08:19] Production.ERROR: pbx CDR StartTime 2025-02-11 01:08:06 - End Time 2025-02-11 04:08:06 [2025-02-11 04:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449184', 'tblTempUsageDetail_20' ) start [2025-02-11 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449184', 'tblTempUsageDetail_20' ) end [2025-02-11 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449184', 'tblTempVendorCDR_20' ) start [2025-02-11 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449184', 'tblTempVendorCDR_20' ) end [2025-02-11 04:08:19] Production.INFO: ProcessCDR(1,14449184,1,1,2) [2025-02-11 04:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449184', 'tblTempUsageDetail_20' ) start [2025-02-11 04:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449184', 'tblTempUsageDetail_20' ) end [2025-02-11 04:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:08:23] Production.INFO: ==978== Releasing lock... [2025-02-11 04:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:08:23] Production.INFO: 29 MB #Memory Used# [2025-02-11 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:09:05 [end_date_ymd] => 2025-02-11 04:09:05 [RateCDR] => 1 ) [2025-02-11 04:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:09:05' and `end` < '2025-02-11 04:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:09:18] Production.INFO: count ==168 [2025-02-11 04:09:18] Production.ERROR: pbx CDR StartTime 2025-02-11 01:09:05 - End Time 2025-02-11 04:09:05 [2025-02-11 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449189', 'tblTempUsageDetail_20' ) start [2025-02-11 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449189', 'tblTempUsageDetail_20' ) end [2025-02-11 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449189', 'tblTempVendorCDR_20' ) start [2025-02-11 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449189', 'tblTempVendorCDR_20' ) end [2025-02-11 04:09:18] Production.INFO: ProcessCDR(1,14449189,1,1,2) [2025-02-11 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449189', 'tblTempUsageDetail_20' ) start [2025-02-11 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449189', 'tblTempUsageDetail_20' ) end [2025-02-11 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:09:21] Production.INFO: ==1053== Releasing lock... [2025-02-11 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:09:21] Production.INFO: 29 MB #Memory Used# [2025-02-11 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:10:06 [end_date_ymd] => 2025-02-11 04:10:06 [RateCDR] => 1 ) [2025-02-11 04:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:10:06' and `end` < '2025-02-11 04:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:10:19] Production.INFO: count ==168 [2025-02-11 04:10:19] Production.ERROR: pbx CDR StartTime 2025-02-11 01:10:06 - End Time 2025-02-11 04:10:06 [2025-02-11 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449195', 'tblTempUsageDetail_20' ) start [2025-02-11 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449195', 'tblTempUsageDetail_20' ) end [2025-02-11 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449195', 'tblTempVendorCDR_20' ) start [2025-02-11 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449195', 'tblTempVendorCDR_20' ) end [2025-02-11 04:10:19] Production.INFO: ProcessCDR(1,14449195,1,1,2) [2025-02-11 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449195', 'tblTempUsageDetail_20' ) start [2025-02-11 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449195', 'tblTempUsageDetail_20' ) end [2025-02-11 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:10:22] Production.INFO: ==1170== Releasing lock... [2025-02-11 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:10:22] Production.INFO: 29 MB #Memory Used# [2025-02-11 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:11:05 [end_date_ymd] => 2025-02-11 04:11:05 [RateCDR] => 1 ) [2025-02-11 04:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:11:05' and `end` < '2025-02-11 04:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:11:18] Production.INFO: count ==168 [2025-02-11 04:11:19] Production.ERROR: pbx CDR StartTime 2025-02-11 01:11:05 - End Time 2025-02-11 04:11:05 [2025-02-11 04:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449200', 'tblTempUsageDetail_20' ) start [2025-02-11 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449200', 'tblTempUsageDetail_20' ) end [2025-02-11 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449200', 'tblTempVendorCDR_20' ) start [2025-02-11 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449200', 'tblTempVendorCDR_20' ) end [2025-02-11 04:11:19] Production.INFO: ProcessCDR(1,14449200,1,1,2) [2025-02-11 04:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449200', 'tblTempUsageDetail_20' ) start [2025-02-11 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449200', 'tblTempUsageDetail_20' ) end [2025-02-11 04:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:11:22] Production.INFO: ==1260== Releasing lock... [2025-02-11 04:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:11:22] Production.INFO: 29 MB #Memory Used# [2025-02-11 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:12:05 [end_date_ymd] => 2025-02-11 04:12:05 [RateCDR] => 1 ) [2025-02-11 04:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:12:05' and `end` < '2025-02-11 04:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:12:18] Production.INFO: count ==168 [2025-02-11 04:12:18] Production.ERROR: pbx CDR StartTime 2025-02-11 01:12:05 - End Time 2025-02-11 04:12:05 [2025-02-11 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449205', 'tblTempUsageDetail_20' ) start [2025-02-11 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449205', 'tblTempUsageDetail_20' ) end [2025-02-11 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449205', 'tblTempVendorCDR_20' ) start [2025-02-11 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449205', 'tblTempVendorCDR_20' ) end [2025-02-11 04:12:18] Production.INFO: ProcessCDR(1,14449205,1,1,2) [2025-02-11 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449205', 'tblTempUsageDetail_20' ) start [2025-02-11 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449205', 'tblTempUsageDetail_20' ) end [2025-02-11 04:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:12:22] Production.INFO: ==1338== Releasing lock... [2025-02-11 04:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:12:22] Production.INFO: 29 MB #Memory Used# [2025-02-11 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:13:05 [end_date_ymd] => 2025-02-11 04:13:05 [RateCDR] => 1 ) [2025-02-11 04:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:13:05' and `end` < '2025-02-11 04:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:13:18] Production.INFO: count ==167 [2025-02-11 04:13:18] Production.ERROR: pbx CDR StartTime 2025-02-11 01:13:05 - End Time 2025-02-11 04:13:05 [2025-02-11 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449210', 'tblTempUsageDetail_20' ) start [2025-02-11 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449210', 'tblTempUsageDetail_20' ) end [2025-02-11 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449210', 'tblTempVendorCDR_20' ) start [2025-02-11 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449210', 'tblTempVendorCDR_20' ) end [2025-02-11 04:13:18] Production.INFO: ProcessCDR(1,14449210,1,1,2) [2025-02-11 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449210', 'tblTempUsageDetail_20' ) start [2025-02-11 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449210', 'tblTempUsageDetail_20' ) end [2025-02-11 04:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:13:22] Production.INFO: ==1412== Releasing lock... [2025-02-11 04:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:13:22] Production.INFO: 29 MB #Memory Used# [2025-02-11 04:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:14:06 [end_date_ymd] => 2025-02-11 04:14:06 [RateCDR] => 1 ) [2025-02-11 04:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:14:06' and `end` < '2025-02-11 04:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:14:19] Production.INFO: count ==167 [2025-02-11 04:14:20] Production.ERROR: pbx CDR StartTime 2025-02-11 01:14:06 - End Time 2025-02-11 04:14:06 [2025-02-11 04:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449215', 'tblTempUsageDetail_20' ) start [2025-02-11 04:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449215', 'tblTempUsageDetail_20' ) end [2025-02-11 04:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449215', 'tblTempVendorCDR_20' ) start [2025-02-11 04:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449215', 'tblTempVendorCDR_20' ) end [2025-02-11 04:14:20] Production.INFO: ProcessCDR(1,14449215,1,1,2) [2025-02-11 04:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449215', 'tblTempUsageDetail_20' ) start [2025-02-11 04:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449215', 'tblTempUsageDetail_20' ) end [2025-02-11 04:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:14:23] Production.INFO: ==1485== Releasing lock... [2025-02-11 04:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:14:23] Production.INFO: 29 MB #Memory Used# [2025-02-11 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:15:05 [end_date_ymd] => 2025-02-11 04:15:05 [RateCDR] => 1 ) [2025-02-11 04:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:15:05' and `end` < '2025-02-11 04:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:15:18] Production.INFO: count ==167 [2025-02-11 04:15:18] Production.ERROR: pbx CDR StartTime 2025-02-11 01:15:05 - End Time 2025-02-11 04:15:05 [2025-02-11 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449220', 'tblTempUsageDetail_20' ) start [2025-02-11 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449220', 'tblTempUsageDetail_20' ) end [2025-02-11 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449220', 'tblTempVendorCDR_20' ) start [2025-02-11 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449220', 'tblTempVendorCDR_20' ) end [2025-02-11 04:15:18] Production.INFO: ProcessCDR(1,14449220,1,1,2) [2025-02-11 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449220', 'tblTempUsageDetail_20' ) start [2025-02-11 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449220', 'tblTempUsageDetail_20' ) end [2025-02-11 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:15:21] Production.INFO: ==1597== Releasing lock... [2025-02-11 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:15:21] Production.INFO: 29 MB #Memory Used# [2025-02-11 04:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:16:06 [end_date_ymd] => 2025-02-11 04:16:06 [RateCDR] => 1 ) [2025-02-11 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-02-11 01:16:06' and `end` < '2025-02-11 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-02-11 04:16:19] Production.INFO: count ==167 [2025-02-11 04:16:19] Production.ERROR: pbx CDR StartTime 2025-02-11 01:16:06 - End Time 2025-02-11 04:16:06 [2025-02-11 04:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449225', 'tblTempUsageDetail_20' ) start [2025-02-11 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449225', 'tblTempUsageDetail_20' ) end [2025-02-11 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449225', 'tblTempVendorCDR_20' ) start [2025-02-11 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449225', 'tblTempVendorCDR_20' ) end [2025-02-11 04:16:19] Production.INFO: ProcessCDR(1,14449225,1,1,2) [2025-02-11 04:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449225', 'tblTempUsageDetail_20' ) start [2025-02-11 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449225', 'tblTempUsageDetail_20' ) end [2025-02-11 04:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:16:22] Production.INFO: ==1718== Releasing lock... [2025-02-11 04:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:16:22] Production.INFO: 29 MB #Memory Used# [2025-02-11 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:17:05 [end_date_ymd] => 2025-02-11 04:17:05 [RateCDR] => 1 ) [2025-02-11 04:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:17:05' and `end` < '2025-02-11 04:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:17:18] Production.INFO: count ==163 [2025-02-11 04:17:18] Production.ERROR: pbx CDR StartTime 2025-02-11 01:17:05 - End Time 2025-02-11 04:17:05 [2025-02-11 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449230', 'tblTempUsageDetail_20' ) start [2025-02-11 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449230', 'tblTempUsageDetail_20' ) end [2025-02-11 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449230', 'tblTempVendorCDR_20' ) start [2025-02-11 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449230', 'tblTempVendorCDR_20' ) end [2025-02-11 04:17:18] Production.INFO: ProcessCDR(1,14449230,1,1,2) [2025-02-11 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449230', 'tblTempUsageDetail_20' ) start [2025-02-11 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449230', 'tblTempUsageDetail_20' ) end [2025-02-11 04:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:17:21] Production.INFO: ==1796== Releasing lock... [2025-02-11 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:17:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-11 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:18:05 [end_date_ymd] => 2025-02-11 04:18:05 [RateCDR] => 1 ) [2025-02-11 04:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:18:05' and `end` < '2025-02-11 04:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:18:18] Production.INFO: count ==162 [2025-02-11 04:18:18] Production.ERROR: pbx CDR StartTime 2025-02-11 01:18:05 - End Time 2025-02-11 04:18:05 [2025-02-11 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449235', 'tblTempUsageDetail_20' ) start [2025-02-11 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449235', 'tblTempUsageDetail_20' ) end [2025-02-11 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449235', 'tblTempVendorCDR_20' ) start [2025-02-11 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449235', 'tblTempVendorCDR_20' ) end [2025-02-11 04:18:18] Production.INFO: ProcessCDR(1,14449235,1,1,2) [2025-02-11 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449235', 'tblTempUsageDetail_20' ) start [2025-02-11 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449235', 'tblTempUsageDetail_20' ) end [2025-02-11 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:18:21] Production.INFO: ==1892== Releasing lock... [2025-02-11 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:18:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-11 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:19:05 [end_date_ymd] => 2025-02-11 04:19:05 [RateCDR] => 1 ) [2025-02-11 04:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:19:05' and `end` < '2025-02-11 04:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:19:18] Production.INFO: count ==162 [2025-02-11 04:19:18] Production.ERROR: pbx CDR StartTime 2025-02-11 01:19:05 - End Time 2025-02-11 04:19:05 [2025-02-11 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449240', 'tblTempUsageDetail_20' ) start [2025-02-11 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449240', 'tblTempUsageDetail_20' ) end [2025-02-11 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449240', 'tblTempVendorCDR_20' ) start [2025-02-11 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449240', 'tblTempVendorCDR_20' ) end [2025-02-11 04:19:18] Production.INFO: ProcessCDR(1,14449240,1,1,2) [2025-02-11 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449240', 'tblTempUsageDetail_20' ) start [2025-02-11 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449240', 'tblTempUsageDetail_20' ) end [2025-02-11 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:19:21] Production.INFO: ==1967== Releasing lock... [2025-02-11 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:19:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-11 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:20:06 [end_date_ymd] => 2025-02-11 04:20:06 [RateCDR] => 1 ) [2025-02-11 04:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:20:06' and `end` < '2025-02-11 04:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:20:19] Production.INFO: count ==160 [2025-02-11 04:20:19] Production.ERROR: pbx CDR StartTime 2025-02-11 01:20:06 - End Time 2025-02-11 04:20:06 [2025-02-11 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449246', 'tblTempUsageDetail_20' ) start [2025-02-11 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449246', 'tblTempUsageDetail_20' ) end [2025-02-11 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449246', 'tblTempVendorCDR_20' ) start [2025-02-11 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449246', 'tblTempVendorCDR_20' ) end [2025-02-11 04:20:19] Production.INFO: ProcessCDR(1,14449246,1,1,2) [2025-02-11 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449246', 'tblTempUsageDetail_20' ) start [2025-02-11 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449246', 'tblTempUsageDetail_20' ) end [2025-02-11 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:20:22] Production.INFO: ==2044== Releasing lock... [2025-02-11 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:20:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-11 04:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:21:04 [end_date_ymd] => 2025-02-11 04:21:04 [RateCDR] => 1 ) [2025-02-11 04:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:21:04' and `end` < '2025-02-11 04:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:21:17] Production.INFO: count ==160 [2025-02-11 04:21:17] Production.ERROR: pbx CDR StartTime 2025-02-11 01:21:04 - End Time 2025-02-11 04:21:04 [2025-02-11 04:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449251', 'tblTempUsageDetail_20' ) start [2025-02-11 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449251', 'tblTempUsageDetail_20' ) end [2025-02-11 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449251', 'tblTempVendorCDR_20' ) start [2025-02-11 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449251', 'tblTempVendorCDR_20' ) end [2025-02-11 04:21:17] Production.INFO: ProcessCDR(1,14449251,1,1,2) [2025-02-11 04:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449251', 'tblTempUsageDetail_20' ) start [2025-02-11 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449251', 'tblTempUsageDetail_20' ) end [2025-02-11 04:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:21:20] Production.INFO: ==2118== Releasing lock... [2025-02-11 04:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:21:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-11 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:22:05 [end_date_ymd] => 2025-02-11 04:22:05 [RateCDR] => 1 ) [2025-02-11 04:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:22:05' and `end` < '2025-02-11 04:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:22:19] Production.INFO: count ==160 [2025-02-11 04:22:19] Production.ERROR: pbx CDR StartTime 2025-02-11 01:22:05 - End Time 2025-02-11 04:22:05 [2025-02-11 04:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449256', 'tblTempUsageDetail_20' ) start [2025-02-11 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449256', 'tblTempUsageDetail_20' ) end [2025-02-11 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449256', 'tblTempVendorCDR_20' ) start [2025-02-11 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449256', 'tblTempVendorCDR_20' ) end [2025-02-11 04:22:19] Production.INFO: ProcessCDR(1,14449256,1,1,2) [2025-02-11 04:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449256', 'tblTempUsageDetail_20' ) start [2025-02-11 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449256', 'tblTempUsageDetail_20' ) end [2025-02-11 04:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:22:22] Production.INFO: ==2191== Releasing lock... [2025-02-11 04:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:22:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-11 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:23:05 [end_date_ymd] => 2025-02-11 04:23:05 [RateCDR] => 1 ) [2025-02-11 04:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:23:05' and `end` < '2025-02-11 04:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:23:18] Production.INFO: count ==160 [2025-02-11 04:23:18] Production.ERROR: pbx CDR StartTime 2025-02-11 01:23:05 - End Time 2025-02-11 04:23:05 [2025-02-11 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449261', 'tblTempUsageDetail_20' ) start [2025-02-11 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449261', 'tblTempUsageDetail_20' ) end [2025-02-11 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449261', 'tblTempVendorCDR_20' ) start [2025-02-11 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449261', 'tblTempVendorCDR_20' ) end [2025-02-11 04:23:18] Production.INFO: ProcessCDR(1,14449261,1,1,2) [2025-02-11 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449261', 'tblTempUsageDetail_20' ) start [2025-02-11 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449261', 'tblTempUsageDetail_20' ) end [2025-02-11 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:23:21] Production.INFO: ==2264== Releasing lock... [2025-02-11 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:23:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-11 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:24:05 [end_date_ymd] => 2025-02-11 04:24:05 [RateCDR] => 1 ) [2025-02-11 04:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:24:05' and `end` < '2025-02-11 04:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:24:18] Production.INFO: count ==160 [2025-02-11 04:24:18] Production.ERROR: pbx CDR StartTime 2025-02-11 01:24:05 - End Time 2025-02-11 04:24:05 [2025-02-11 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449266', 'tblTempUsageDetail_20' ) start [2025-02-11 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449266', 'tblTempUsageDetail_20' ) end [2025-02-11 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449266', 'tblTempVendorCDR_20' ) start [2025-02-11 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449266', 'tblTempVendorCDR_20' ) end [2025-02-11 04:24:18] Production.INFO: ProcessCDR(1,14449266,1,1,2) [2025-02-11 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449266', 'tblTempUsageDetail_20' ) start [2025-02-11 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449266', 'tblTempUsageDetail_20' ) end [2025-02-11 04:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:24:21] Production.INFO: ==2336== Releasing lock... [2025-02-11 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:24:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-11 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:25:05 [end_date_ymd] => 2025-02-11 04:25:05 [RateCDR] => 1 ) [2025-02-11 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:25:05' and `end` < '2025-02-11 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:25:18] Production.INFO: count ==160 [2025-02-11 04:25:18] Production.ERROR: pbx CDR StartTime 2025-02-11 01:25:05 - End Time 2025-02-11 04:25:05 [2025-02-11 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449271', 'tblTempUsageDetail_20' ) start [2025-02-11 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449271', 'tblTempUsageDetail_20' ) end [2025-02-11 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449271', 'tblTempVendorCDR_20' ) start [2025-02-11 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449271', 'tblTempVendorCDR_20' ) end [2025-02-11 04:25:18] Production.INFO: ProcessCDR(1,14449271,1,1,2) [2025-02-11 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449271', 'tblTempUsageDetail_20' ) start [2025-02-11 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449271', 'tblTempUsageDetail_20' ) end [2025-02-11 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:25:21] Production.INFO: ==2407== Releasing lock... [2025-02-11 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:25:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-11 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:26:05 [end_date_ymd] => 2025-02-11 04:26:05 [RateCDR] => 1 ) [2025-02-11 04:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:26:05' and `end` < '2025-02-11 04:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:26:19] Production.INFO: count ==160 [2025-02-11 04:26:19] Production.ERROR: pbx CDR StartTime 2025-02-11 01:26:05 - End Time 2025-02-11 04:26:05 [2025-02-11 04:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449276', 'tblTempUsageDetail_20' ) start [2025-02-11 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449276', 'tblTempUsageDetail_20' ) end [2025-02-11 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449276', 'tblTempVendorCDR_20' ) start [2025-02-11 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449276', 'tblTempVendorCDR_20' ) end [2025-02-11 04:26:19] Production.INFO: ProcessCDR(1,14449276,1,1,2) [2025-02-11 04:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449276', 'tblTempUsageDetail_20' ) start [2025-02-11 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449276', 'tblTempUsageDetail_20' ) end [2025-02-11 04:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:26:22] Production.INFO: ==2522== Releasing lock... [2025-02-11 04:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:26:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-11 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:27:05 [end_date_ymd] => 2025-02-11 04:27:05 [RateCDR] => 1 ) [2025-02-11 04:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:27:05' and `end` < '2025-02-11 04:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:27:19] Production.INFO: count ==160 [2025-02-11 04:27:19] Production.ERROR: pbx CDR StartTime 2025-02-11 01:27:05 - End Time 2025-02-11 04:27:05 [2025-02-11 04:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449281', 'tblTempUsageDetail_20' ) start [2025-02-11 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449281', 'tblTempUsageDetail_20' ) end [2025-02-11 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449281', 'tblTempVendorCDR_20' ) start [2025-02-11 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449281', 'tblTempVendorCDR_20' ) end [2025-02-11 04:27:19] Production.INFO: ProcessCDR(1,14449281,1,1,2) [2025-02-11 04:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449281', 'tblTempUsageDetail_20' ) start [2025-02-11 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449281', 'tblTempUsageDetail_20' ) end [2025-02-11 04:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:27:22] Production.INFO: ==2599== Releasing lock... [2025-02-11 04:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:27:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-11 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:28:05 [end_date_ymd] => 2025-02-11 04:28:05 [RateCDR] => 1 ) [2025-02-11 04:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:28:05' and `end` < '2025-02-11 04:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:28:19] Production.INFO: count ==160 [2025-02-11 04:28:19] Production.ERROR: pbx CDR StartTime 2025-02-11 01:28:05 - End Time 2025-02-11 04:28:05 [2025-02-11 04:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449286', 'tblTempUsageDetail_20' ) start [2025-02-11 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449286', 'tblTempUsageDetail_20' ) end [2025-02-11 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449286', 'tblTempVendorCDR_20' ) start [2025-02-11 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449286', 'tblTempVendorCDR_20' ) end [2025-02-11 04:28:19] Production.INFO: ProcessCDR(1,14449286,1,1,2) [2025-02-11 04:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449286', 'tblTempUsageDetail_20' ) start [2025-02-11 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449286', 'tblTempUsageDetail_20' ) end [2025-02-11 04:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:28:22] Production.INFO: ==2673== Releasing lock... [2025-02-11 04:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:28:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-11 04:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:29:06 [end_date_ymd] => 2025-02-11 04:29:06 [RateCDR] => 1 ) [2025-02-11 04:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:29:06' and `end` < '2025-02-11 04:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:29:19] Production.INFO: count ==160 [2025-02-11 04:29:19] Production.ERROR: pbx CDR StartTime 2025-02-11 01:29:06 - End Time 2025-02-11 04:29:06 [2025-02-11 04:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449291', 'tblTempUsageDetail_20' ) start [2025-02-11 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449291', 'tblTempUsageDetail_20' ) end [2025-02-11 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449291', 'tblTempVendorCDR_20' ) start [2025-02-11 04:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449291', 'tblTempVendorCDR_20' ) end [2025-02-11 04:29:19] Production.INFO: ProcessCDR(1,14449291,1,1,2) [2025-02-11 04:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449291', 'tblTempUsageDetail_20' ) start [2025-02-11 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449291', 'tblTempUsageDetail_20' ) end [2025-02-11 04:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:29:22] Production.INFO: ==2744== Releasing lock... [2025-02-11 04:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:29:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-11 04:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:30:05 [end_date_ymd] => 2025-02-11 04:30:05 [RateCDR] => 1 ) [2025-02-11 04:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:30:05' and `end` < '2025-02-11 04:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:30:18] Production.INFO: count ==160 [2025-02-11 04:30:18] Production.ERROR: pbx CDR StartTime 2025-02-11 01:30:05 - End Time 2025-02-11 04:30:05 [2025-02-11 04:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449297', 'tblTempUsageDetail_20' ) start [2025-02-11 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449297', 'tblTempUsageDetail_20' ) end [2025-02-11 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449297', 'tblTempVendorCDR_20' ) start [2025-02-11 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449297', 'tblTempVendorCDR_20' ) end [2025-02-11 04:30:18] Production.INFO: ProcessCDR(1,14449297,1,1,2) [2025-02-11 04:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449297', 'tblTempUsageDetail_20' ) start [2025-02-11 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449297', 'tblTempUsageDetail_20' ) end [2025-02-11 04:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:30:21] Production.INFO: ==2821== Releasing lock... [2025-02-11 04:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:30:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-11 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:31:05 [end_date_ymd] => 2025-02-11 04:31:05 [RateCDR] => 1 ) [2025-02-11 04:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:31:05' and `end` < '2025-02-11 04:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:31:19] Production.INFO: count ==161 [2025-02-11 04:31:19] Production.ERROR: pbx CDR StartTime 2025-02-11 01:31:05 - End Time 2025-02-11 04:31:05 [2025-02-11 04:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449303', 'tblTempUsageDetail_20' ) start [2025-02-11 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449303', 'tblTempUsageDetail_20' ) end [2025-02-11 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449303', 'tblTempVendorCDR_20' ) start [2025-02-11 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449303', 'tblTempVendorCDR_20' ) end [2025-02-11 04:31:19] Production.INFO: ProcessCDR(1,14449303,1,1,2) [2025-02-11 04:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449303', 'tblTempUsageDetail_20' ) start [2025-02-11 04:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449303', 'tblTempUsageDetail_20' ) end [2025-02-11 04:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:31:23] Production.INFO: ==2903== Releasing lock... [2025-02-11 04:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:31:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-11 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:32:05 [end_date_ymd] => 2025-02-11 04:32:05 [RateCDR] => 1 ) [2025-02-11 04:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:32:05' and `end` < '2025-02-11 04:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:32:19] Production.INFO: count ==161 [2025-02-11 04:32:19] Production.ERROR: pbx CDR StartTime 2025-02-11 01:32:05 - End Time 2025-02-11 04:32:05 [2025-02-11 04:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449308', 'tblTempUsageDetail_20' ) start [2025-02-11 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449308', 'tblTempUsageDetail_20' ) end [2025-02-11 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449308', 'tblTempVendorCDR_20' ) start [2025-02-11 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449308', 'tblTempVendorCDR_20' ) end [2025-02-11 04:32:19] Production.INFO: ProcessCDR(1,14449308,1,1,2) [2025-02-11 04:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449308', 'tblTempUsageDetail_20' ) start [2025-02-11 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449308', 'tblTempUsageDetail_20' ) end [2025-02-11 04:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:32:22] Production.INFO: ==3073== Releasing lock... [2025-02-11 04:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:32:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-11 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:33:05 [end_date_ymd] => 2025-02-11 04:33:05 [RateCDR] => 1 ) [2025-02-11 04:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:33:05' and `end` < '2025-02-11 04:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:33:18] Production.INFO: count ==161 [2025-02-11 04:33:18] Production.ERROR: pbx CDR StartTime 2025-02-11 01:33:05 - End Time 2025-02-11 04:33:05 [2025-02-11 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449313', 'tblTempUsageDetail_20' ) start [2025-02-11 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449313', 'tblTempUsageDetail_20' ) end [2025-02-11 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449313', 'tblTempVendorCDR_20' ) start [2025-02-11 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449313', 'tblTempVendorCDR_20' ) end [2025-02-11 04:33:18] Production.INFO: ProcessCDR(1,14449313,1,1,2) [2025-02-11 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449313', 'tblTempUsageDetail_20' ) start [2025-02-11 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449313', 'tblTempUsageDetail_20' ) end [2025-02-11 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:33:21] Production.INFO: ==3149== Releasing lock... [2025-02-11 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:33:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-11 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:34:05 [end_date_ymd] => 2025-02-11 04:34:05 [RateCDR] => 1 ) [2025-02-11 04:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:34:05' and `end` < '2025-02-11 04:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:34:19] Production.INFO: count ==161 [2025-02-11 04:34:19] Production.ERROR: pbx CDR StartTime 2025-02-11 01:34:05 - End Time 2025-02-11 04:34:05 [2025-02-11 04:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449318', 'tblTempUsageDetail_20' ) start [2025-02-11 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449318', 'tblTempUsageDetail_20' ) end [2025-02-11 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449318', 'tblTempVendorCDR_20' ) start [2025-02-11 04:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449318', 'tblTempVendorCDR_20' ) end [2025-02-11 04:34:19] Production.INFO: ProcessCDR(1,14449318,1,1,2) [2025-02-11 04:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449318', 'tblTempUsageDetail_20' ) start [2025-02-11 04:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449318', 'tblTempUsageDetail_20' ) end [2025-02-11 04:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:34:22] Production.INFO: ==3225== Releasing lock... [2025-02-11 04:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:34:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-11 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:35:05 [end_date_ymd] => 2025-02-11 04:35:05 [RateCDR] => 1 ) [2025-02-11 04:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:35:05' and `end` < '2025-02-11 04:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:35:18] Production.INFO: count ==161 [2025-02-11 04:35:18] Production.ERROR: pbx CDR StartTime 2025-02-11 01:35:05 - End Time 2025-02-11 04:35:05 [2025-02-11 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449323', 'tblTempUsageDetail_20' ) start [2025-02-11 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449323', 'tblTempUsageDetail_20' ) end [2025-02-11 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449323', 'tblTempVendorCDR_20' ) start [2025-02-11 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449323', 'tblTempVendorCDR_20' ) end [2025-02-11 04:35:18] Production.INFO: ProcessCDR(1,14449323,1,1,2) [2025-02-11 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449323', 'tblTempUsageDetail_20' ) start [2025-02-11 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449323', 'tblTempUsageDetail_20' ) end [2025-02-11 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:35:21] Production.INFO: ==3296== Releasing lock... [2025-02-11 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:35:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-11 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:36:05 [end_date_ymd] => 2025-02-11 04:36:05 [RateCDR] => 1 ) [2025-02-11 04:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:36:05' and `end` < '2025-02-11 04:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:36:19] Production.INFO: count ==161 [2025-02-11 04:36:19] Production.ERROR: pbx CDR StartTime 2025-02-11 01:36:05 - End Time 2025-02-11 04:36:05 [2025-02-11 04:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449328', 'tblTempUsageDetail_20' ) start [2025-02-11 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449328', 'tblTempUsageDetail_20' ) end [2025-02-11 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449328', 'tblTempVendorCDR_20' ) start [2025-02-11 04:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449328', 'tblTempVendorCDR_20' ) end [2025-02-11 04:36:19] Production.INFO: ProcessCDR(1,14449328,1,1,2) [2025-02-11 04:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449328', 'tblTempUsageDetail_20' ) start [2025-02-11 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449328', 'tblTempUsageDetail_20' ) end [2025-02-11 04:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:36:22] Production.INFO: ==3367== Releasing lock... [2025-02-11 04:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:36:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-11 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:37:05 [end_date_ymd] => 2025-02-11 04:37:05 [RateCDR] => 1 ) [2025-02-11 04:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:37:05' and `end` < '2025-02-11 04:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:37:18] Production.INFO: count ==161 [2025-02-11 04:37:18] Production.ERROR: pbx CDR StartTime 2025-02-11 01:37:05 - End Time 2025-02-11 04:37:05 [2025-02-11 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449333', 'tblTempUsageDetail_20' ) start [2025-02-11 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449333', 'tblTempUsageDetail_20' ) end [2025-02-11 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449333', 'tblTempVendorCDR_20' ) start [2025-02-11 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449333', 'tblTempVendorCDR_20' ) end [2025-02-11 04:37:19] Production.INFO: ProcessCDR(1,14449333,1,1,2) [2025-02-11 04:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449333', 'tblTempUsageDetail_20' ) start [2025-02-11 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449333', 'tblTempUsageDetail_20' ) end [2025-02-11 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:37:21] Production.INFO: ==3438== Releasing lock... [2025-02-11 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:37:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-11 04:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:38:06 [end_date_ymd] => 2025-02-11 04:38:06 [RateCDR] => 1 ) [2025-02-11 04:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:38:06' and `end` < '2025-02-11 04:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:38:19] Production.INFO: count ==161 [2025-02-11 04:38:19] Production.ERROR: pbx CDR StartTime 2025-02-11 01:38:06 - End Time 2025-02-11 04:38:06 [2025-02-11 04:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449338', 'tblTempUsageDetail_20' ) start [2025-02-11 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449338', 'tblTempUsageDetail_20' ) end [2025-02-11 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449338', 'tblTempVendorCDR_20' ) start [2025-02-11 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449338', 'tblTempVendorCDR_20' ) end [2025-02-11 04:38:19] Production.INFO: ProcessCDR(1,14449338,1,1,2) [2025-02-11 04:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449338', 'tblTempUsageDetail_20' ) start [2025-02-11 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449338', 'tblTempUsageDetail_20' ) end [2025-02-11 04:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:38:22] Production.INFO: ==3515== Releasing lock... [2025-02-11 04:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:38:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-11 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:39:05 [end_date_ymd] => 2025-02-11 04:39:05 [RateCDR] => 1 ) [2025-02-11 04:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:39:05' and `end` < '2025-02-11 04:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:39:18] Production.INFO: count ==161 [2025-02-11 04:39:18] Production.ERROR: pbx CDR StartTime 2025-02-11 01:39:05 - End Time 2025-02-11 04:39:05 [2025-02-11 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449343', 'tblTempUsageDetail_20' ) start [2025-02-11 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449343', 'tblTempUsageDetail_20' ) end [2025-02-11 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449343', 'tblTempVendorCDR_20' ) start [2025-02-11 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449343', 'tblTempVendorCDR_20' ) end [2025-02-11 04:39:18] Production.INFO: ProcessCDR(1,14449343,1,1,2) [2025-02-11 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449343', 'tblTempUsageDetail_20' ) start [2025-02-11 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449343', 'tblTempUsageDetail_20' ) end [2025-02-11 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:39:21] Production.INFO: ==3589== Releasing lock... [2025-02-11 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:39:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-11 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:40:06 [end_date_ymd] => 2025-02-11 04:40:06 [RateCDR] => 1 ) [2025-02-11 04:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:40:06' and `end` < '2025-02-11 04:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:40:19] Production.INFO: count ==159 [2025-02-11 04:40:19] Production.ERROR: pbx CDR StartTime 2025-02-11 01:40:06 - End Time 2025-02-11 04:40:06 [2025-02-11 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449348', 'tblTempUsageDetail_20' ) start [2025-02-11 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449348', 'tblTempUsageDetail_20' ) end [2025-02-11 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449348', 'tblTempVendorCDR_20' ) start [2025-02-11 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449348', 'tblTempVendorCDR_20' ) end [2025-02-11 04:40:19] Production.INFO: ProcessCDR(1,14449348,1,1,2) [2025-02-11 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449348', 'tblTempUsageDetail_20' ) start [2025-02-11 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449348', 'tblTempUsageDetail_20' ) end [2025-02-11 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:40:22] Production.INFO: ==3670== Releasing lock... [2025-02-11 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:40:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-11 04:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:41:04 [end_date_ymd] => 2025-02-11 04:41:04 [RateCDR] => 1 ) [2025-02-11 04:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:41:04' and `end` < '2025-02-11 04:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:41:17] Production.INFO: count ==159 [2025-02-11 04:41:17] Production.ERROR: pbx CDR StartTime 2025-02-11 01:41:04 - End Time 2025-02-11 04:41:04 [2025-02-11 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449354', 'tblTempUsageDetail_20' ) start [2025-02-11 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449354', 'tblTempUsageDetail_20' ) end [2025-02-11 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449354', 'tblTempVendorCDR_20' ) start [2025-02-11 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449354', 'tblTempVendorCDR_20' ) end [2025-02-11 04:41:17] Production.INFO: ProcessCDR(1,14449354,1,1,2) [2025-02-11 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449354', 'tblTempUsageDetail_20' ) start [2025-02-11 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449354', 'tblTempUsageDetail_20' ) end [2025-02-11 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:41:21] Production.INFO: ==3784== Releasing lock... [2025-02-11 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:41:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-11 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:42:05 [end_date_ymd] => 2025-02-11 04:42:05 [RateCDR] => 1 ) [2025-02-11 04:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:42:05' and `end` < '2025-02-11 04:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:42:19] Production.INFO: count ==159 [2025-02-11 04:42:19] Production.ERROR: pbx CDR StartTime 2025-02-11 01:42:05 - End Time 2025-02-11 04:42:05 [2025-02-11 04:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449359', 'tblTempUsageDetail_20' ) start [2025-02-11 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449359', 'tblTempUsageDetail_20' ) end [2025-02-11 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449359', 'tblTempVendorCDR_20' ) start [2025-02-11 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449359', 'tblTempVendorCDR_20' ) end [2025-02-11 04:42:19] Production.INFO: ProcessCDR(1,14449359,1,1,2) [2025-02-11 04:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449359', 'tblTempUsageDetail_20' ) start [2025-02-11 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449359', 'tblTempUsageDetail_20' ) end [2025-02-11 04:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:42:22] Production.INFO: ==3858== Releasing lock... [2025-02-11 04:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:42:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-11 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:43:05 [end_date_ymd] => 2025-02-11 04:43:05 [RateCDR] => 1 ) [2025-02-11 04:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:43:05' and `end` < '2025-02-11 04:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:43:19] Production.INFO: count ==158 [2025-02-11 04:43:19] Production.ERROR: pbx CDR StartTime 2025-02-11 01:43:05 - End Time 2025-02-11 04:43:05 [2025-02-11 04:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449364', 'tblTempUsageDetail_20' ) start [2025-02-11 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449364', 'tblTempUsageDetail_20' ) end [2025-02-11 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449364', 'tblTempVendorCDR_20' ) start [2025-02-11 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449364', 'tblTempVendorCDR_20' ) end [2025-02-11 04:43:19] Production.INFO: ProcessCDR(1,14449364,1,1,2) [2025-02-11 04:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449364', 'tblTempUsageDetail_20' ) start [2025-02-11 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449364', 'tblTempUsageDetail_20' ) end [2025-02-11 04:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:43:22] Production.INFO: ==3927== Releasing lock... [2025-02-11 04:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:43:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-11 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:44:05 [end_date_ymd] => 2025-02-11 04:44:05 [RateCDR] => 1 ) [2025-02-11 04:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:44:05' and `end` < '2025-02-11 04:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:44:18] Production.INFO: count ==158 [2025-02-11 04:44:18] Production.ERROR: pbx CDR StartTime 2025-02-11 01:44:05 - End Time 2025-02-11 04:44:05 [2025-02-11 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449369', 'tblTempUsageDetail_20' ) start [2025-02-11 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449369', 'tblTempUsageDetail_20' ) end [2025-02-11 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449369', 'tblTempVendorCDR_20' ) start [2025-02-11 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449369', 'tblTempVendorCDR_20' ) end [2025-02-11 04:44:18] Production.INFO: ProcessCDR(1,14449369,1,1,2) [2025-02-11 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449369', 'tblTempUsageDetail_20' ) start [2025-02-11 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449369', 'tblTempUsageDetail_20' ) end [2025-02-11 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:44:21] Production.INFO: ==4001== Releasing lock... [2025-02-11 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:44:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-11 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:45:05 [end_date_ymd] => 2025-02-11 04:45:05 [RateCDR] => 1 ) [2025-02-11 04:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:45:05' and `end` < '2025-02-11 04:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:45:18] Production.INFO: count ==158 [2025-02-11 04:45:18] Production.ERROR: pbx CDR StartTime 2025-02-11 01:45:05 - End Time 2025-02-11 04:45:05 [2025-02-11 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449374', 'tblTempUsageDetail_20' ) start [2025-02-11 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449374', 'tblTempUsageDetail_20' ) end [2025-02-11 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449374', 'tblTempVendorCDR_20' ) start [2025-02-11 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449374', 'tblTempVendorCDR_20' ) end [2025-02-11 04:45:18] Production.INFO: ProcessCDR(1,14449374,1,1,2) [2025-02-11 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449374', 'tblTempUsageDetail_20' ) start [2025-02-11 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449374', 'tblTempUsageDetail_20' ) end [2025-02-11 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:45:21] Production.INFO: ==4084== Releasing lock... [2025-02-11 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:45:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-11 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:46:05 [end_date_ymd] => 2025-02-11 04:46:05 [RateCDR] => 1 ) [2025-02-11 04:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:46:05' and `end` < '2025-02-11 04:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:46:38] Production.INFO: count ==150 [2025-02-11 04:46:38] Production.ERROR: pbx CDR StartTime 2025-02-11 01:46:05 - End Time 2025-02-11 04:46:05 [2025-02-11 04:46:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:46:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449379', 'tblTempUsageDetail_20' ) start [2025-02-11 04:46:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449379', 'tblTempUsageDetail_20' ) end [2025-02-11 04:46:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449379', 'tblTempVendorCDR_20' ) start [2025-02-11 04:46:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449379', 'tblTempVendorCDR_20' ) end [2025-02-11 04:46:38] Production.INFO: ProcessCDR(1,14449379,1,1,2) [2025-02-11 04:46:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:46:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:46:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:46:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:46:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449379', 'tblTempUsageDetail_20' ) start [2025-02-11 04:46:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449379', 'tblTempUsageDetail_20' ) end [2025-02-11 04:46:41] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:46:41] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:46:41] Production.INFO: ==4157== Releasing lock... [2025-02-11 04:46:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:46:41] Production.INFO: 28.75 MB #Memory Used# [2025-02-11 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:47:05 [end_date_ymd] => 2025-02-11 04:47:05 [RateCDR] => 1 ) [2025-02-11 04:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:47:05' and `end` < '2025-02-11 04:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:47:21] Production.INFO: count ==150 [2025-02-11 04:47:21] Production.ERROR: pbx CDR StartTime 2025-02-11 01:47:05 - End Time 2025-02-11 04:47:05 [2025-02-11 04:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449384', 'tblTempUsageDetail_20' ) start [2025-02-11 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449384', 'tblTempUsageDetail_20' ) end [2025-02-11 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449384', 'tblTempVendorCDR_20' ) start [2025-02-11 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449384', 'tblTempVendorCDR_20' ) end [2025-02-11 04:47:21] Production.INFO: ProcessCDR(1,14449384,1,1,2) [2025-02-11 04:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449384', 'tblTempUsageDetail_20' ) start [2025-02-11 04:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449384', 'tblTempUsageDetail_20' ) end [2025-02-11 04:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:47:24] Production.INFO: ==4234== Releasing lock... [2025-02-11 04:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:47:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-11 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:48:04 [end_date_ymd] => 2025-02-11 04:48:04 [RateCDR] => 1 ) [2025-02-11 04:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:48:04' and `end` < '2025-02-11 04:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:48:19] Production.INFO: count ==149 [2025-02-11 04:48:19] Production.ERROR: pbx CDR StartTime 2025-02-11 01:48:04 - End Time 2025-02-11 04:48:04 [2025-02-11 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449389', 'tblTempUsageDetail_20' ) start [2025-02-11 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449389', 'tblTempUsageDetail_20' ) end [2025-02-11 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449389', 'tblTempVendorCDR_20' ) start [2025-02-11 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449389', 'tblTempVendorCDR_20' ) end [2025-02-11 04:48:19] Production.INFO: ProcessCDR(1,14449389,1,1,2) [2025-02-11 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449389', 'tblTempUsageDetail_20' ) start [2025-02-11 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449389', 'tblTempUsageDetail_20' ) end [2025-02-11 04:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:48:23] Production.INFO: ==4310== Releasing lock... [2025-02-11 04:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:48:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-11 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:49:05 [end_date_ymd] => 2025-02-11 04:49:05 [RateCDR] => 1 ) [2025-02-11 04:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:49:05' and `end` < '2025-02-11 04:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:49:19] Production.INFO: count ==149 [2025-02-11 04:49:19] Production.ERROR: pbx CDR StartTime 2025-02-11 01:49:05 - End Time 2025-02-11 04:49:05 [2025-02-11 04:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449394', 'tblTempUsageDetail_20' ) start [2025-02-11 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449394', 'tblTempUsageDetail_20' ) end [2025-02-11 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449394', 'tblTempVendorCDR_20' ) start [2025-02-11 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449394', 'tblTempVendorCDR_20' ) end [2025-02-11 04:49:19] Production.INFO: ProcessCDR(1,14449394,1,1,2) [2025-02-11 04:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449394', 'tblTempUsageDetail_20' ) start [2025-02-11 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449394', 'tblTempUsageDetail_20' ) end [2025-02-11 04:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:49:22] Production.INFO: ==4386== Releasing lock... [2025-02-11 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:49:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-11 04:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:50:05 [end_date_ymd] => 2025-02-11 04:50:05 [RateCDR] => 1 ) [2025-02-11 04:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:50:05' and `end` < '2025-02-11 04:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:50:20] Production.INFO: count ==147 [2025-02-11 04:50:20] Production.ERROR: pbx CDR StartTime 2025-02-11 01:50:05 - End Time 2025-02-11 04:50:05 [2025-02-11 04:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449400', 'tblTempUsageDetail_20' ) start [2025-02-11 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449400', 'tblTempUsageDetail_20' ) end [2025-02-11 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449400', 'tblTempVendorCDR_20' ) start [2025-02-11 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449400', 'tblTempVendorCDR_20' ) end [2025-02-11 04:50:20] Production.INFO: ProcessCDR(1,14449400,1,1,2) [2025-02-11 04:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449400', 'tblTempUsageDetail_20' ) start [2025-02-11 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449400', 'tblTempUsageDetail_20' ) end [2025-02-11 04:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:50:23] Production.INFO: ==4466== Releasing lock... [2025-02-11 04:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:50:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-11 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:51:05 [end_date_ymd] => 2025-02-11 04:51:05 [RateCDR] => 1 ) [2025-02-11 04:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:51:05' and `end` < '2025-02-11 04:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:51:20] Production.INFO: count ==147 [2025-02-11 04:51:20] Production.ERROR: pbx CDR StartTime 2025-02-11 01:51:05 - End Time 2025-02-11 04:51:05 [2025-02-11 04:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449405', 'tblTempUsageDetail_20' ) start [2025-02-11 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449405', 'tblTempUsageDetail_20' ) end [2025-02-11 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449405', 'tblTempVendorCDR_20' ) start [2025-02-11 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449405', 'tblTempVendorCDR_20' ) end [2025-02-11 04:51:20] Production.INFO: ProcessCDR(1,14449405,1,1,2) [2025-02-11 04:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449405', 'tblTempUsageDetail_20' ) start [2025-02-11 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449405', 'tblTempUsageDetail_20' ) end [2025-02-11 04:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:51:23] Production.INFO: ==4544== Releasing lock... [2025-02-11 04:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:51:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-11 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:52:05 [end_date_ymd] => 2025-02-11 04:52:05 [RateCDR] => 1 ) [2025-02-11 04:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:52:05' and `end` < '2025-02-11 04:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:52:20] Production.INFO: count ==147 [2025-02-11 04:52:20] Production.ERROR: pbx CDR StartTime 2025-02-11 01:52:05 - End Time 2025-02-11 04:52:05 [2025-02-11 04:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449410', 'tblTempUsageDetail_20' ) start [2025-02-11 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449410', 'tblTempUsageDetail_20' ) end [2025-02-11 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449410', 'tblTempVendorCDR_20' ) start [2025-02-11 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449410', 'tblTempVendorCDR_20' ) end [2025-02-11 04:52:20] Production.INFO: ProcessCDR(1,14449410,1,1,2) [2025-02-11 04:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449410', 'tblTempUsageDetail_20' ) start [2025-02-11 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449410', 'tblTempUsageDetail_20' ) end [2025-02-11 04:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:52:23] Production.INFO: ==4625== Releasing lock... [2025-02-11 04:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:52:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-11 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:53:05 [end_date_ymd] => 2025-02-11 04:53:05 [RateCDR] => 1 ) [2025-02-11 04:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:53:05' and `end` < '2025-02-11 04:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:53:19] Production.INFO: count ==147 [2025-02-11 04:53:19] Production.ERROR: pbx CDR StartTime 2025-02-11 01:53:05 - End Time 2025-02-11 04:53:05 [2025-02-11 04:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449415', 'tblTempUsageDetail_20' ) start [2025-02-11 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449415', 'tblTempUsageDetail_20' ) end [2025-02-11 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449415', 'tblTempVendorCDR_20' ) start [2025-02-11 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449415', 'tblTempVendorCDR_20' ) end [2025-02-11 04:53:19] Production.INFO: ProcessCDR(1,14449415,1,1,2) [2025-02-11 04:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449415', 'tblTempUsageDetail_20' ) start [2025-02-11 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449415', 'tblTempUsageDetail_20' ) end [2025-02-11 04:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:53:22] Production.INFO: ==4707== Releasing lock... [2025-02-11 04:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:53:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-11 04:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:54:06 [end_date_ymd] => 2025-02-11 04:54:06 [RateCDR] => 1 ) [2025-02-11 04:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:54:06' and `end` < '2025-02-11 04:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:54:20] Production.INFO: count ==147 [2025-02-11 04:54:20] Production.ERROR: pbx CDR StartTime 2025-02-11 01:54:06 - End Time 2025-02-11 04:54:06 [2025-02-11 04:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449420', 'tblTempUsageDetail_20' ) start [2025-02-11 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449420', 'tblTempUsageDetail_20' ) end [2025-02-11 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449420', 'tblTempVendorCDR_20' ) start [2025-02-11 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449420', 'tblTempVendorCDR_20' ) end [2025-02-11 04:54:20] Production.INFO: ProcessCDR(1,14449420,1,1,2) [2025-02-11 04:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449420', 'tblTempUsageDetail_20' ) start [2025-02-11 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449420', 'tblTempUsageDetail_20' ) end [2025-02-11 04:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:54:23] Production.INFO: ==4788== Releasing lock... [2025-02-11 04:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:54:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-11 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:55:05 [end_date_ymd] => 2025-02-11 04:55:05 [RateCDR] => 1 ) [2025-02-11 04:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:55:05' and `end` < '2025-02-11 04:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:55:20] Production.INFO: count ==132 [2025-02-11 04:55:20] Production.ERROR: pbx CDR StartTime 2025-02-11 01:55:05 - End Time 2025-02-11 04:55:05 [2025-02-11 04:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449425', 'tblTempUsageDetail_20' ) start [2025-02-11 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449425', 'tblTempUsageDetail_20' ) end [2025-02-11 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449425', 'tblTempVendorCDR_20' ) start [2025-02-11 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449425', 'tblTempVendorCDR_20' ) end [2025-02-11 04:55:20] Production.INFO: ProcessCDR(1,14449425,1,1,2) [2025-02-11 04:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449425', 'tblTempUsageDetail_20' ) start [2025-02-11 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449425', 'tblTempUsageDetail_20' ) end [2025-02-11 04:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:55:23] Production.INFO: ==4863== Releasing lock... [2025-02-11 04:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:55:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-11 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:56:05 [end_date_ymd] => 2025-02-11 04:56:05 [RateCDR] => 1 ) [2025-02-11 04:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:56:05' and `end` < '2025-02-11 04:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:56:20] Production.INFO: count ==132 [2025-02-11 04:56:20] Production.ERROR: pbx CDR StartTime 2025-02-11 01:56:05 - End Time 2025-02-11 04:56:05 [2025-02-11 04:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449430', 'tblTempUsageDetail_20' ) start [2025-02-11 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449430', 'tblTempUsageDetail_20' ) end [2025-02-11 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449430', 'tblTempVendorCDR_20' ) start [2025-02-11 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449430', 'tblTempVendorCDR_20' ) end [2025-02-11 04:56:20] Production.INFO: ProcessCDR(1,14449430,1,1,2) [2025-02-11 04:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449430', 'tblTempUsageDetail_20' ) start [2025-02-11 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449430', 'tblTempUsageDetail_20' ) end [2025-02-11 04:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:56:23] Production.INFO: ==4981== Releasing lock... [2025-02-11 04:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:56:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-11 04:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:57:04 [end_date_ymd] => 2025-02-11 04:57:04 [RateCDR] => 1 ) [2025-02-11 04:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:57:04' and `end` < '2025-02-11 04:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:57:18] Production.INFO: count ==132 [2025-02-11 04:57:18] Production.ERROR: pbx CDR StartTime 2025-02-11 01:57:04 - End Time 2025-02-11 04:57:04 [2025-02-11 04:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449435', 'tblTempUsageDetail_20' ) start [2025-02-11 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449435', 'tblTempUsageDetail_20' ) end [2025-02-11 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449435', 'tblTempVendorCDR_20' ) start [2025-02-11 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449435', 'tblTempVendorCDR_20' ) end [2025-02-11 04:57:18] Production.INFO: ProcessCDR(1,14449435,1,1,2) [2025-02-11 04:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449435', 'tblTempUsageDetail_20' ) start [2025-02-11 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449435', 'tblTempUsageDetail_20' ) end [2025-02-11 04:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:57:21] Production.INFO: ==5063== Releasing lock... [2025-02-11 04:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:57:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-11 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:58:05 [end_date_ymd] => 2025-02-11 04:58:05 [RateCDR] => 1 ) [2025-02-11 04:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:58:05' and `end` < '2025-02-11 04:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:58:20] Production.INFO: count ==132 [2025-02-11 04:58:20] Production.ERROR: pbx CDR StartTime 2025-02-11 01:58:05 - End Time 2025-02-11 04:58:05 [2025-02-11 04:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449440', 'tblTempUsageDetail_20' ) start [2025-02-11 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449440', 'tblTempUsageDetail_20' ) end [2025-02-11 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449440', 'tblTempVendorCDR_20' ) start [2025-02-11 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449440', 'tblTempVendorCDR_20' ) end [2025-02-11 04:58:20] Production.INFO: ProcessCDR(1,14449440,1,1,2) [2025-02-11 04:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449440', 'tblTempUsageDetail_20' ) start [2025-02-11 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449440', 'tblTempUsageDetail_20' ) end [2025-02-11 04:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:58:23] Production.INFO: ==5149== Releasing lock... [2025-02-11 04:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:58:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-11 04:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 01:59:04 [end_date_ymd] => 2025-02-11 04:59:04 [RateCDR] => 1 ) [2025-02-11 04:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 01:59:04' and `end` < '2025-02-11 04:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 04:59:18] Production.INFO: count ==129 [2025-02-11 04:59:18] Production.ERROR: pbx CDR StartTime 2025-02-11 01:59:04 - End Time 2025-02-11 04:59:04 [2025-02-11 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449445', 'tblTempUsageDetail_20' ) start [2025-02-11 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449445', 'tblTempUsageDetail_20' ) end [2025-02-11 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449445', 'tblTempVendorCDR_20' ) start [2025-02-11 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449445', 'tblTempVendorCDR_20' ) end [2025-02-11 04:59:18] Production.INFO: ProcessCDR(1,14449445,1,1,2) [2025-02-11 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449445', 'tblTempUsageDetail_20' ) start [2025-02-11 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449445', 'tblTempUsageDetail_20' ) end [2025-02-11 04:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 04:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 04:59:21] Production.INFO: ==5233== Releasing lock... [2025-02-11 04:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 04:59:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:00:05 [end_date_ymd] => 2025-02-11 05:00:05 [RateCDR] => 1 ) [2025-02-11 05:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:00:05' and `end` < '2025-02-11 05:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:00:19] Production.INFO: count ==125 [2025-02-11 05:00:19] Production.ERROR: pbx CDR StartTime 2025-02-11 02:00:05 - End Time 2025-02-11 05:00:05 [2025-02-11 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449450', 'tblTempUsageDetail_20' ) start [2025-02-11 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449450', 'tblTempUsageDetail_20' ) end [2025-02-11 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449450', 'tblTempVendorCDR_20' ) start [2025-02-11 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449450', 'tblTempVendorCDR_20' ) end [2025-02-11 05:00:19] Production.INFO: ProcessCDR(1,14449450,1,1,2) [2025-02-11 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449450', 'tblTempUsageDetail_20' ) start [2025-02-11 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449450', 'tblTempUsageDetail_20' ) end [2025-02-11 05:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:00:22] Production.INFO: ==5315== Releasing lock... [2025-02-11 05:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:00:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:01:06 [end_date_ymd] => 2025-02-11 05:01:06 [RateCDR] => 1 ) [2025-02-11 05:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:01:06' and `end` < '2025-02-11 05:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:01:21] Production.INFO: count ==117 [2025-02-11 05:01:21] Production.ERROR: pbx CDR StartTime 2025-02-11 02:01:06 - End Time 2025-02-11 05:01:06 [2025-02-11 05:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449456', 'tblTempUsageDetail_20' ) start [2025-02-11 05:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449456', 'tblTempUsageDetail_20' ) end [2025-02-11 05:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449456', 'tblTempVendorCDR_20' ) start [2025-02-11 05:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449456', 'tblTempVendorCDR_20' ) end [2025-02-11 05:01:21] Production.INFO: ProcessCDR(1,14449456,1,1,2) [2025-02-11 05:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449456', 'tblTempUsageDetail_20' ) start [2025-02-11 05:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449456', 'tblTempUsageDetail_20' ) end [2025-02-11 05:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:01:24] Production.INFO: ==5405== Releasing lock... [2025-02-11 05:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:01:24] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:02:05 [end_date_ymd] => 2025-02-11 05:02:05 [RateCDR] => 1 ) [2025-02-11 05:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:02:05' and `end` < '2025-02-11 05:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:02:19] Production.INFO: count ==117 [2025-02-11 05:02:19] Production.ERROR: pbx CDR StartTime 2025-02-11 02:02:05 - End Time 2025-02-11 05:02:05 [2025-02-11 05:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449461', 'tblTempUsageDetail_20' ) start [2025-02-11 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449461', 'tblTempUsageDetail_20' ) end [2025-02-11 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449461', 'tblTempVendorCDR_20' ) start [2025-02-11 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449461', 'tblTempVendorCDR_20' ) end [2025-02-11 05:02:19] Production.INFO: ProcessCDR(1,14449461,1,1,2) [2025-02-11 05:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449461', 'tblTempUsageDetail_20' ) start [2025-02-11 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449461', 'tblTempUsageDetail_20' ) end [2025-02-11 05:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:02:22] Production.INFO: ==5487== Releasing lock... [2025-02-11 05:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:02:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:03:05 [end_date_ymd] => 2025-02-11 05:03:05 [RateCDR] => 1 ) [2025-02-11 05:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:03:05' and `end` < '2025-02-11 05:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:03:19] Production.INFO: count ==117 [2025-02-11 05:03:20] Production.ERROR: pbx CDR StartTime 2025-02-11 02:03:05 - End Time 2025-02-11 05:03:05 [2025-02-11 05:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449466', 'tblTempUsageDetail_20' ) start [2025-02-11 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449466', 'tblTempUsageDetail_20' ) end [2025-02-11 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449466', 'tblTempVendorCDR_20' ) start [2025-02-11 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449466', 'tblTempVendorCDR_20' ) end [2025-02-11 05:03:20] Production.INFO: ProcessCDR(1,14449466,1,1,2) [2025-02-11 05:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449466', 'tblTempUsageDetail_20' ) start [2025-02-11 05:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449466', 'tblTempUsageDetail_20' ) end [2025-02-11 05:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:03:23] Production.INFO: ==5574== Releasing lock... [2025-02-11 05:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:03:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:04:05 [end_date_ymd] => 2025-02-11 05:04:05 [RateCDR] => 1 ) [2025-02-11 05:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:04:05' and `end` < '2025-02-11 05:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:04:18] Production.INFO: count ==116 [2025-02-11 05:04:18] Production.ERROR: pbx CDR StartTime 2025-02-11 02:04:05 - End Time 2025-02-11 05:04:05 [2025-02-11 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449471', 'tblTempUsageDetail_20' ) start [2025-02-11 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449471', 'tblTempUsageDetail_20' ) end [2025-02-11 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449471', 'tblTempVendorCDR_20' ) start [2025-02-11 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449471', 'tblTempVendorCDR_20' ) end [2025-02-11 05:04:18] Production.INFO: ProcessCDR(1,14449471,1,1,2) [2025-02-11 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449471', 'tblTempUsageDetail_20' ) start [2025-02-11 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449471', 'tblTempUsageDetail_20' ) end [2025-02-11 05:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:04:21] Production.INFO: ==5653== Releasing lock... [2025-02-11 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:04:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:05:05 [end_date_ymd] => 2025-02-11 05:05:05 [RateCDR] => 1 ) [2025-02-11 05:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:05:05' and `end` < '2025-02-11 05:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:05:18] Production.INFO: count ==116 [2025-02-11 05:05:18] Production.ERROR: pbx CDR StartTime 2025-02-11 02:05:05 - End Time 2025-02-11 05:05:05 [2025-02-11 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449476', 'tblTempUsageDetail_20' ) start [2025-02-11 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449476', 'tblTempUsageDetail_20' ) end [2025-02-11 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449476', 'tblTempVendorCDR_20' ) start [2025-02-11 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449476', 'tblTempVendorCDR_20' ) end [2025-02-11 05:05:18] Production.INFO: ProcessCDR(1,14449476,1,1,2) [2025-02-11 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449476', 'tblTempUsageDetail_20' ) start [2025-02-11 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449476', 'tblTempUsageDetail_20' ) end [2025-02-11 05:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:05:22] Production.INFO: ==5736== Releasing lock... [2025-02-11 05:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:05:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:06:05 [end_date_ymd] => 2025-02-11 05:06:05 [RateCDR] => 1 ) [2025-02-11 05:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:06:05' and `end` < '2025-02-11 05:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:06:18] Production.INFO: count ==116 [2025-02-11 05:06:18] Production.ERROR: pbx CDR StartTime 2025-02-11 02:06:05 - End Time 2025-02-11 05:06:05 [2025-02-11 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449481', 'tblTempUsageDetail_20' ) start [2025-02-11 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449481', 'tblTempUsageDetail_20' ) end [2025-02-11 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449481', 'tblTempVendorCDR_20' ) start [2025-02-11 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449481', 'tblTempVendorCDR_20' ) end [2025-02-11 05:06:18] Production.INFO: ProcessCDR(1,14449481,1,1,2) [2025-02-11 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449481', 'tblTempUsageDetail_20' ) start [2025-02-11 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449481', 'tblTempUsageDetail_20' ) end [2025-02-11 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:06:21] Production.INFO: ==5822== Releasing lock... [2025-02-11 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:06:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:07:05 [end_date_ymd] => 2025-02-11 05:07:05 [RateCDR] => 1 ) [2025-02-11 05:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:07:05' and `end` < '2025-02-11 05:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:07:19] Production.INFO: count ==116 [2025-02-11 05:07:19] Production.ERROR: pbx CDR StartTime 2025-02-11 02:07:05 - End Time 2025-02-11 05:07:05 [2025-02-11 05:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449486', 'tblTempUsageDetail_20' ) start [2025-02-11 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449486', 'tblTempUsageDetail_20' ) end [2025-02-11 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449486', 'tblTempVendorCDR_20' ) start [2025-02-11 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449486', 'tblTempVendorCDR_20' ) end [2025-02-11 05:07:19] Production.INFO: ProcessCDR(1,14449486,1,1,2) [2025-02-11 05:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449486', 'tblTempUsageDetail_20' ) start [2025-02-11 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449486', 'tblTempUsageDetail_20' ) end [2025-02-11 05:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:07:22] Production.INFO: ==5903== Releasing lock... [2025-02-11 05:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:07:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:08:05 [end_date_ymd] => 2025-02-11 05:08:05 [RateCDR] => 1 ) [2025-02-11 05:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:08:05' and `end` < '2025-02-11 05:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:08:17] Production.INFO: count ==116 [2025-02-11 05:08:17] Production.ERROR: pbx CDR StartTime 2025-02-11 02:08:05 - End Time 2025-02-11 05:08:05 [2025-02-11 05:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449491', 'tblTempUsageDetail_20' ) start [2025-02-11 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449491', 'tblTempUsageDetail_20' ) end [2025-02-11 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449491', 'tblTempVendorCDR_20' ) start [2025-02-11 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449491', 'tblTempVendorCDR_20' ) end [2025-02-11 05:08:17] Production.INFO: ProcessCDR(1,14449491,1,1,2) [2025-02-11 05:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449491', 'tblTempUsageDetail_20' ) start [2025-02-11 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449491', 'tblTempUsageDetail_20' ) end [2025-02-11 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:08:21] Production.INFO: ==5981== Releasing lock... [2025-02-11 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:08:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:09:05 [end_date_ymd] => 2025-02-11 05:09:05 [RateCDR] => 1 ) [2025-02-11 05:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:09:05' and `end` < '2025-02-11 05:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:09:18] Production.INFO: count ==116 [2025-02-11 05:09:18] Production.ERROR: pbx CDR StartTime 2025-02-11 02:09:05 - End Time 2025-02-11 05:09:05 [2025-02-11 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449496', 'tblTempUsageDetail_20' ) start [2025-02-11 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449496', 'tblTempUsageDetail_20' ) end [2025-02-11 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449496', 'tblTempVendorCDR_20' ) start [2025-02-11 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449496', 'tblTempVendorCDR_20' ) end [2025-02-11 05:09:18] Production.INFO: ProcessCDR(1,14449496,1,1,2) [2025-02-11 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449496', 'tblTempUsageDetail_20' ) start [2025-02-11 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449496', 'tblTempUsageDetail_20' ) end [2025-02-11 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:09:21] Production.INFO: ==6061== Releasing lock... [2025-02-11 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:09:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:10:05 [end_date_ymd] => 2025-02-11 05:10:05 [RateCDR] => 1 ) [2025-02-11 05:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:10:05' and `end` < '2025-02-11 05:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:10:18] Production.INFO: count ==114 [2025-02-11 05:10:18] Production.ERROR: pbx CDR StartTime 2025-02-11 02:10:05 - End Time 2025-02-11 05:10:05 [2025-02-11 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449501', 'tblTempUsageDetail_20' ) start [2025-02-11 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449501', 'tblTempUsageDetail_20' ) end [2025-02-11 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449501', 'tblTempVendorCDR_20' ) start [2025-02-11 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449501', 'tblTempVendorCDR_20' ) end [2025-02-11 05:10:18] Production.INFO: ProcessCDR(1,14449501,1,1,2) [2025-02-11 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449501', 'tblTempUsageDetail_20' ) start [2025-02-11 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449501', 'tblTempUsageDetail_20' ) end [2025-02-11 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:10:22] Production.INFO: ==6147== Releasing lock... [2025-02-11 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:10:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:11:05 [end_date_ymd] => 2025-02-11 05:11:05 [RateCDR] => 1 ) [2025-02-11 05:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:11:05' and `end` < '2025-02-11 05:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:11:19] Production.INFO: count ==114 [2025-02-11 05:11:19] Production.ERROR: pbx CDR StartTime 2025-02-11 02:11:05 - End Time 2025-02-11 05:11:05 [2025-02-11 05:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449507', 'tblTempUsageDetail_20' ) start [2025-02-11 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449507', 'tblTempUsageDetail_20' ) end [2025-02-11 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449507', 'tblTempVendorCDR_20' ) start [2025-02-11 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449507', 'tblTempVendorCDR_20' ) end [2025-02-11 05:11:19] Production.INFO: ProcessCDR(1,14449507,1,1,2) [2025-02-11 05:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449507', 'tblTempUsageDetail_20' ) start [2025-02-11 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449507', 'tblTempUsageDetail_20' ) end [2025-02-11 05:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:11:22] Production.INFO: ==6228== Releasing lock... [2025-02-11 05:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:11:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:12:06 [end_date_ymd] => 2025-02-11 05:12:06 [RateCDR] => 1 ) [2025-02-11 05:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:12:06' and `end` < '2025-02-11 05:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:12:19] Production.INFO: count ==114 [2025-02-11 05:12:19] Production.ERROR: pbx CDR StartTime 2025-02-11 02:12:06 - End Time 2025-02-11 05:12:06 [2025-02-11 05:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449512', 'tblTempUsageDetail_20' ) start [2025-02-11 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449512', 'tblTempUsageDetail_20' ) end [2025-02-11 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449512', 'tblTempVendorCDR_20' ) start [2025-02-11 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449512', 'tblTempVendorCDR_20' ) end [2025-02-11 05:12:19] Production.INFO: ProcessCDR(1,14449512,1,1,2) [2025-02-11 05:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449512', 'tblTempUsageDetail_20' ) start [2025-02-11 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449512', 'tblTempUsageDetail_20' ) end [2025-02-11 05:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:12:22] Production.INFO: ==6352== Releasing lock... [2025-02-11 05:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:12:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:13:05 [end_date_ymd] => 2025-02-11 05:13:05 [RateCDR] => 1 ) [2025-02-11 05:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:13:05' and `end` < '2025-02-11 05:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:13:18] Production.INFO: count ==114 [2025-02-11 05:13:18] Production.ERROR: pbx CDR StartTime 2025-02-11 02:13:05 - End Time 2025-02-11 05:13:05 [2025-02-11 05:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449517', 'tblTempUsageDetail_20' ) start [2025-02-11 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449517', 'tblTempUsageDetail_20' ) end [2025-02-11 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449517', 'tblTempVendorCDR_20' ) start [2025-02-11 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449517', 'tblTempVendorCDR_20' ) end [2025-02-11 05:13:18] Production.INFO: ProcessCDR(1,14449517,1,1,2) [2025-02-11 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449517', 'tblTempUsageDetail_20' ) start [2025-02-11 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449517', 'tblTempUsageDetail_20' ) end [2025-02-11 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:13:21] Production.INFO: ==6448== Releasing lock... [2025-02-11 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:13:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:14:05 [end_date_ymd] => 2025-02-11 05:14:05 [RateCDR] => 1 ) [2025-02-11 05:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:14:05' and `end` < '2025-02-11 05:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:14:18] Production.INFO: count ==114 [2025-02-11 05:14:18] Production.ERROR: pbx CDR StartTime 2025-02-11 02:14:05 - End Time 2025-02-11 05:14:05 [2025-02-11 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449522', 'tblTempUsageDetail_20' ) start [2025-02-11 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449522', 'tblTempUsageDetail_20' ) end [2025-02-11 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449522', 'tblTempVendorCDR_20' ) start [2025-02-11 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449522', 'tblTempVendorCDR_20' ) end [2025-02-11 05:14:18] Production.INFO: ProcessCDR(1,14449522,1,1,2) [2025-02-11 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449522', 'tblTempUsageDetail_20' ) start [2025-02-11 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449522', 'tblTempUsageDetail_20' ) end [2025-02-11 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:14:21] Production.INFO: ==6553== Releasing lock... [2025-02-11 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:14:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:15:05 [end_date_ymd] => 2025-02-11 05:15:05 [RateCDR] => 1 ) [2025-02-11 05:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:15:05' and `end` < '2025-02-11 05:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:15:18] Production.INFO: count ==114 [2025-02-11 05:15:18] Production.ERROR: pbx CDR StartTime 2025-02-11 02:15:05 - End Time 2025-02-11 05:15:05 [2025-02-11 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449527', 'tblTempUsageDetail_20' ) start [2025-02-11 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449527', 'tblTempUsageDetail_20' ) end [2025-02-11 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449527', 'tblTempVendorCDR_20' ) start [2025-02-11 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449527', 'tblTempVendorCDR_20' ) end [2025-02-11 05:15:18] Production.INFO: ProcessCDR(1,14449527,1,1,2) [2025-02-11 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449527', 'tblTempUsageDetail_20' ) start [2025-02-11 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449527', 'tblTempUsageDetail_20' ) end [2025-02-11 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:15:21] Production.INFO: ==6666== Releasing lock... [2025-02-11 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:15:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:16:05 [end_date_ymd] => 2025-02-11 05:16:05 [RateCDR] => 1 ) [2025-02-11 05:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:16:05' and `end` < '2025-02-11 05:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:16:18] Production.INFO: count ==114 [2025-02-11 05:16:18] Production.ERROR: pbx CDR StartTime 2025-02-11 02:16:05 - End Time 2025-02-11 05:16:05 [2025-02-11 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449532', 'tblTempUsageDetail_20' ) start [2025-02-11 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449532', 'tblTempUsageDetail_20' ) end [2025-02-11 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449532', 'tblTempVendorCDR_20' ) start [2025-02-11 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449532', 'tblTempVendorCDR_20' ) end [2025-02-11 05:16:18] Production.INFO: ProcessCDR(1,14449532,1,1,2) [2025-02-11 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449532', 'tblTempUsageDetail_20' ) start [2025-02-11 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449532', 'tblTempUsageDetail_20' ) end [2025-02-11 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:16:21] Production.INFO: ==6783== Releasing lock... [2025-02-11 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:16:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:17:05 [end_date_ymd] => 2025-02-11 05:17:05 [RateCDR] => 1 ) [2025-02-11 05:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:17:05' and `end` < '2025-02-11 05:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:17:18] Production.INFO: count ==114 [2025-02-11 05:17:18] Production.ERROR: pbx CDR StartTime 2025-02-11 02:17:05 - End Time 2025-02-11 05:17:05 [2025-02-11 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449537', 'tblTempUsageDetail_20' ) start [2025-02-11 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449537', 'tblTempUsageDetail_20' ) end [2025-02-11 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449537', 'tblTempVendorCDR_20' ) start [2025-02-11 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449537', 'tblTempVendorCDR_20' ) end [2025-02-11 05:17:18] Production.INFO: ProcessCDR(1,14449537,1,1,2) [2025-02-11 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449537', 'tblTempUsageDetail_20' ) start [2025-02-11 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449537', 'tblTempUsageDetail_20' ) end [2025-02-11 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:17:21] Production.INFO: ==6895== Releasing lock... [2025-02-11 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:17:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:18:05 [end_date_ymd] => 2025-02-11 05:18:05 [RateCDR] => 1 ) [2025-02-11 05:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:18:05' and `end` < '2025-02-11 05:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:18:18] Production.INFO: count ==114 [2025-02-11 05:18:18] Production.ERROR: pbx CDR StartTime 2025-02-11 02:18:05 - End Time 2025-02-11 05:18:05 [2025-02-11 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449542', 'tblTempUsageDetail_20' ) start [2025-02-11 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449542', 'tblTempUsageDetail_20' ) end [2025-02-11 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449542', 'tblTempVendorCDR_20' ) start [2025-02-11 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449542', 'tblTempVendorCDR_20' ) end [2025-02-11 05:18:18] Production.INFO: ProcessCDR(1,14449542,1,1,2) [2025-02-11 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449542', 'tblTempUsageDetail_20' ) start [2025-02-11 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449542', 'tblTempUsageDetail_20' ) end [2025-02-11 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:18:21] Production.INFO: ==7005== Releasing lock... [2025-02-11 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:18:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:19:04 [end_date_ymd] => 2025-02-11 05:19:04 [RateCDR] => 1 ) [2025-02-11 05:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:19:04' and `end` < '2025-02-11 05:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:19:17] Production.INFO: count ==114 [2025-02-11 05:19:17] Production.ERROR: pbx CDR StartTime 2025-02-11 02:19:04 - End Time 2025-02-11 05:19:04 [2025-02-11 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449547', 'tblTempUsageDetail_20' ) start [2025-02-11 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449547', 'tblTempUsageDetail_20' ) end [2025-02-11 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449547', 'tblTempVendorCDR_20' ) start [2025-02-11 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449547', 'tblTempVendorCDR_20' ) end [2025-02-11 05:19:17] Production.INFO: ProcessCDR(1,14449547,1,1,2) [2025-02-11 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449547', 'tblTempUsageDetail_20' ) start [2025-02-11 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449547', 'tblTempUsageDetail_20' ) end [2025-02-11 05:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:19:20] Production.INFO: ==7111== Releasing lock... [2025-02-11 05:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:19:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:20:06 [end_date_ymd] => 2025-02-11 05:20:06 [RateCDR] => 1 ) [2025-02-11 05:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:20:06' and `end` < '2025-02-11 05:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:20:20] Production.INFO: count ==114 [2025-02-11 05:20:20] Production.ERROR: pbx CDR StartTime 2025-02-11 02:20:06 - End Time 2025-02-11 05:20:06 [2025-02-11 05:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449553', 'tblTempUsageDetail_20' ) start [2025-02-11 05:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449553', 'tblTempUsageDetail_20' ) end [2025-02-11 05:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449553', 'tblTempVendorCDR_20' ) start [2025-02-11 05:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449553', 'tblTempVendorCDR_20' ) end [2025-02-11 05:20:20] Production.INFO: ProcessCDR(1,14449553,1,1,2) [2025-02-11 05:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449553', 'tblTempUsageDetail_20' ) start [2025-02-11 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449553', 'tblTempUsageDetail_20' ) end [2025-02-11 05:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:20:23] Production.INFO: ==7221== Releasing lock... [2025-02-11 05:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:20:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:21:06 [end_date_ymd] => 2025-02-11 05:21:06 [RateCDR] => 1 ) [2025-02-11 05:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:21:06' and `end` < '2025-02-11 05:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:21:18] Production.INFO: count ==114 [2025-02-11 05:21:18] Production.ERROR: pbx CDR StartTime 2025-02-11 02:21:06 - End Time 2025-02-11 05:21:06 [2025-02-11 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449558', 'tblTempUsageDetail_20' ) start [2025-02-11 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449558', 'tblTempUsageDetail_20' ) end [2025-02-11 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449558', 'tblTempVendorCDR_20' ) start [2025-02-11 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449558', 'tblTempVendorCDR_20' ) end [2025-02-11 05:21:18] Production.INFO: ProcessCDR(1,14449558,1,1,2) [2025-02-11 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449558', 'tblTempUsageDetail_20' ) start [2025-02-11 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449558', 'tblTempUsageDetail_20' ) end [2025-02-11 05:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:21:22] Production.INFO: ==7336== Releasing lock... [2025-02-11 05:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:21:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:22:06 [end_date_ymd] => 2025-02-11 05:22:06 [RateCDR] => 1 ) [2025-02-11 05:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:22:06' and `end` < '2025-02-11 05:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:22:19] Production.INFO: count ==114 [2025-02-11 05:22:19] Production.ERROR: pbx CDR StartTime 2025-02-11 02:22:06 - End Time 2025-02-11 05:22:06 [2025-02-11 05:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449563', 'tblTempUsageDetail_20' ) start [2025-02-11 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449563', 'tblTempUsageDetail_20' ) end [2025-02-11 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449563', 'tblTempVendorCDR_20' ) start [2025-02-11 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449563', 'tblTempVendorCDR_20' ) end [2025-02-11 05:22:19] Production.INFO: ProcessCDR(1,14449563,1,1,2) [2025-02-11 05:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449563', 'tblTempUsageDetail_20' ) start [2025-02-11 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449563', 'tblTempUsageDetail_20' ) end [2025-02-11 05:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:22:22] Production.INFO: ==7448== Releasing lock... [2025-02-11 05:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:22:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:23:05 [end_date_ymd] => 2025-02-11 05:23:05 [RateCDR] => 1 ) [2025-02-11 05:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:23:05' and `end` < '2025-02-11 05:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:23:19] Production.INFO: count ==114 [2025-02-11 05:23:19] Production.ERROR: pbx CDR StartTime 2025-02-11 02:23:05 - End Time 2025-02-11 05:23:05 [2025-02-11 05:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449568', 'tblTempUsageDetail_20' ) start [2025-02-11 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449568', 'tblTempUsageDetail_20' ) end [2025-02-11 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449568', 'tblTempVendorCDR_20' ) start [2025-02-11 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449568', 'tblTempVendorCDR_20' ) end [2025-02-11 05:23:19] Production.INFO: ProcessCDR(1,14449568,1,1,2) [2025-02-11 05:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449568', 'tblTempUsageDetail_20' ) start [2025-02-11 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449568', 'tblTempUsageDetail_20' ) end [2025-02-11 05:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:23:22] Production.INFO: ==7553== Releasing lock... [2025-02-11 05:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:23:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:24:05 [end_date_ymd] => 2025-02-11 05:24:05 [RateCDR] => 1 ) [2025-02-11 05:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:24:05' and `end` < '2025-02-11 05:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:24:17] Production.INFO: count ==114 [2025-02-11 05:24:17] Production.ERROR: pbx CDR StartTime 2025-02-11 02:24:05 - End Time 2025-02-11 05:24:05 [2025-02-11 05:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449573', 'tblTempUsageDetail_20' ) start [2025-02-11 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449573', 'tblTempUsageDetail_20' ) end [2025-02-11 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449573', 'tblTempVendorCDR_20' ) start [2025-02-11 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449573', 'tblTempVendorCDR_20' ) end [2025-02-11 05:24:18] Production.INFO: ProcessCDR(1,14449573,1,1,2) [2025-02-11 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449573', 'tblTempUsageDetail_20' ) start [2025-02-11 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449573', 'tblTempUsageDetail_20' ) end [2025-02-11 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:24:21] Production.INFO: ==7657== Releasing lock... [2025-02-11 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:24:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:25:05 [end_date_ymd] => 2025-02-11 05:25:05 [RateCDR] => 1 ) [2025-02-11 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:25:05' and `end` < '2025-02-11 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:25:18] Production.INFO: count ==114 [2025-02-11 05:25:18] Production.ERROR: pbx CDR StartTime 2025-02-11 02:25:05 - End Time 2025-02-11 05:25:05 [2025-02-11 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449578', 'tblTempUsageDetail_20' ) start [2025-02-11 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449578', 'tblTempUsageDetail_20' ) end [2025-02-11 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449578', 'tblTempVendorCDR_20' ) start [2025-02-11 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449578', 'tblTempVendorCDR_20' ) end [2025-02-11 05:25:18] Production.INFO: ProcessCDR(1,14449578,1,1,2) [2025-02-11 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449578', 'tblTempUsageDetail_20' ) start [2025-02-11 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449578', 'tblTempUsageDetail_20' ) end [2025-02-11 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:25:21] Production.INFO: ==7783== Releasing lock... [2025-02-11 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:25:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:26:05 [end_date_ymd] => 2025-02-11 05:26:05 [RateCDR] => 1 ) [2025-02-11 05:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:26:05' and `end` < '2025-02-11 05:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:26:18] Production.INFO: count ==114 [2025-02-11 05:26:18] Production.ERROR: pbx CDR StartTime 2025-02-11 02:26:05 - End Time 2025-02-11 05:26:05 [2025-02-11 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449583', 'tblTempUsageDetail_20' ) start [2025-02-11 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449583', 'tblTempUsageDetail_20' ) end [2025-02-11 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449583', 'tblTempVendorCDR_20' ) start [2025-02-11 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449583', 'tblTempVendorCDR_20' ) end [2025-02-11 05:26:18] Production.INFO: ProcessCDR(1,14449583,1,1,2) [2025-02-11 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449583', 'tblTempUsageDetail_20' ) start [2025-02-11 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449583', 'tblTempUsageDetail_20' ) end [2025-02-11 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:26:21] Production.INFO: ==7897== Releasing lock... [2025-02-11 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:26:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:27:06 [end_date_ymd] => 2025-02-11 05:27:06 [RateCDR] => 1 ) [2025-02-11 05:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:27:06' and `end` < '2025-02-11 05:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:27:18] Production.INFO: count ==114 [2025-02-11 05:27:18] Production.ERROR: pbx CDR StartTime 2025-02-11 02:27:06 - End Time 2025-02-11 05:27:06 [2025-02-11 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449588', 'tblTempUsageDetail_20' ) start [2025-02-11 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449588', 'tblTempUsageDetail_20' ) end [2025-02-11 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449588', 'tblTempVendorCDR_20' ) start [2025-02-11 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449588', 'tblTempVendorCDR_20' ) end [2025-02-11 05:27:18] Production.INFO: ProcessCDR(1,14449588,1,1,2) [2025-02-11 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449588', 'tblTempUsageDetail_20' ) start [2025-02-11 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449588', 'tblTempUsageDetail_20' ) end [2025-02-11 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:27:21] Production.INFO: ==8047== Releasing lock... [2025-02-11 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:27:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:28:04 [end_date_ymd] => 2025-02-11 05:28:04 [RateCDR] => 1 ) [2025-02-11 05:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:28:04' and `end` < '2025-02-11 05:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:28:17] Production.INFO: count ==114 [2025-02-11 05:28:17] Production.ERROR: pbx CDR StartTime 2025-02-11 02:28:04 - End Time 2025-02-11 05:28:04 [2025-02-11 05:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449593', 'tblTempUsageDetail_20' ) start [2025-02-11 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449593', 'tblTempUsageDetail_20' ) end [2025-02-11 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449593', 'tblTempVendorCDR_20' ) start [2025-02-11 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449593', 'tblTempVendorCDR_20' ) end [2025-02-11 05:28:17] Production.INFO: ProcessCDR(1,14449593,1,1,2) [2025-02-11 05:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449593', 'tblTempUsageDetail_20' ) start [2025-02-11 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449593', 'tblTempUsageDetail_20' ) end [2025-02-11 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:28:21] Production.INFO: ==8165== Releasing lock... [2025-02-11 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:28:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:29:06 [end_date_ymd] => 2025-02-11 05:29:06 [RateCDR] => 1 ) [2025-02-11 05:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:29:06' and `end` < '2025-02-11 05:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:29:19] Production.INFO: count ==114 [2025-02-11 05:29:19] Production.ERROR: pbx CDR StartTime 2025-02-11 02:29:06 - End Time 2025-02-11 05:29:06 [2025-02-11 05:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449598', 'tblTempUsageDetail_20' ) start [2025-02-11 05:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449598', 'tblTempUsageDetail_20' ) end [2025-02-11 05:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449598', 'tblTempVendorCDR_20' ) start [2025-02-11 05:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449598', 'tblTempVendorCDR_20' ) end [2025-02-11 05:29:19] Production.INFO: ProcessCDR(1,14449598,1,1,2) [2025-02-11 05:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449598', 'tblTempUsageDetail_20' ) start [2025-02-11 05:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449598', 'tblTempUsageDetail_20' ) end [2025-02-11 05:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:29:22] Production.INFO: ==8281== Releasing lock... [2025-02-11 05:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:29:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:30:06 [end_date_ymd] => 2025-02-11 05:30:06 [RateCDR] => 1 ) [2025-02-11 05:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:30:06' and `end` < '2025-02-11 05:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:30:19] Production.INFO: count ==111 [2025-02-11 05:30:19] Production.ERROR: pbx CDR StartTime 2025-02-11 02:30:06 - End Time 2025-02-11 05:30:06 [2025-02-11 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449604', 'tblTempUsageDetail_20' ) start [2025-02-11 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449604', 'tblTempUsageDetail_20' ) end [2025-02-11 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449604', 'tblTempVendorCDR_20' ) start [2025-02-11 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449604', 'tblTempVendorCDR_20' ) end [2025-02-11 05:30:19] Production.INFO: ProcessCDR(1,14449604,1,1,2) [2025-02-11 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449604', 'tblTempUsageDetail_20' ) start [2025-02-11 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449604', 'tblTempUsageDetail_20' ) end [2025-02-11 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:30:22] Production.INFO: ==8374== Releasing lock... [2025-02-11 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:30:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:31:05 [end_date_ymd] => 2025-02-11 05:31:05 [RateCDR] => 1 ) [2025-02-11 05:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:31:05' and `end` < '2025-02-11 05:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:31:18] Production.INFO: count ==111 [2025-02-11 05:31:18] Production.ERROR: pbx CDR StartTime 2025-02-11 02:31:05 - End Time 2025-02-11 05:31:05 [2025-02-11 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449609', 'tblTempUsageDetail_20' ) start [2025-02-11 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449609', 'tblTempUsageDetail_20' ) end [2025-02-11 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449609', 'tblTempVendorCDR_20' ) start [2025-02-11 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449609', 'tblTempVendorCDR_20' ) end [2025-02-11 05:31:18] Production.INFO: ProcessCDR(1,14449609,1,1,2) [2025-02-11 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449609', 'tblTempUsageDetail_20' ) start [2025-02-11 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449609', 'tblTempUsageDetail_20' ) end [2025-02-11 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:31:21] Production.INFO: ==8457== Releasing lock... [2025-02-11 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:31:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:32:05 [end_date_ymd] => 2025-02-11 05:32:05 [RateCDR] => 1 ) [2025-02-11 05:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:32:05' and `end` < '2025-02-11 05:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:32:18] Production.INFO: count ==111 [2025-02-11 05:32:18] Production.ERROR: pbx CDR StartTime 2025-02-11 02:32:05 - End Time 2025-02-11 05:32:05 [2025-02-11 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449614', 'tblTempUsageDetail_20' ) start [2025-02-11 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449614', 'tblTempUsageDetail_20' ) end [2025-02-11 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449614', 'tblTempVendorCDR_20' ) start [2025-02-11 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449614', 'tblTempVendorCDR_20' ) end [2025-02-11 05:32:19] Production.INFO: ProcessCDR(1,14449614,1,1,2) [2025-02-11 05:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449614', 'tblTempUsageDetail_20' ) start [2025-02-11 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449614', 'tblTempUsageDetail_20' ) end [2025-02-11 05:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:32:22] Production.INFO: ==8538== Releasing lock... [2025-02-11 05:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:32:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:33:05 [end_date_ymd] => 2025-02-11 05:33:05 [RateCDR] => 1 ) [2025-02-11 05:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:33:05' and `end` < '2025-02-11 05:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:33:18] Production.INFO: count ==111 [2025-02-11 05:33:18] Production.ERROR: pbx CDR StartTime 2025-02-11 02:33:05 - End Time 2025-02-11 05:33:05 [2025-02-11 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449619', 'tblTempUsageDetail_20' ) start [2025-02-11 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449619', 'tblTempUsageDetail_20' ) end [2025-02-11 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449619', 'tblTempVendorCDR_20' ) start [2025-02-11 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449619', 'tblTempVendorCDR_20' ) end [2025-02-11 05:33:18] Production.INFO: ProcessCDR(1,14449619,1,1,2) [2025-02-11 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449619', 'tblTempUsageDetail_20' ) start [2025-02-11 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449619', 'tblTempUsageDetail_20' ) end [2025-02-11 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:33:21] Production.INFO: ==8613== Releasing lock... [2025-02-11 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:33:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:34:04 [end_date_ymd] => 2025-02-11 05:34:04 [RateCDR] => 1 ) [2025-02-11 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-02-11 02:34:04' and `end` < '2025-02-11 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-02-11 05:34:18] Production.INFO: count ==111 [2025-02-11 05:34:18] Production.ERROR: pbx CDR StartTime 2025-02-11 02:34:04 - End Time 2025-02-11 05:34:04 [2025-02-11 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449624', 'tblTempUsageDetail_20' ) start [2025-02-11 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449624', 'tblTempUsageDetail_20' ) end [2025-02-11 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449624', 'tblTempVendorCDR_20' ) start [2025-02-11 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449624', 'tblTempVendorCDR_20' ) end [2025-02-11 05:34:18] Production.INFO: ProcessCDR(1,14449624,1,1,2) [2025-02-11 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449624', 'tblTempUsageDetail_20' ) start [2025-02-11 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449624', 'tblTempUsageDetail_20' ) end [2025-02-11 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:34:21] Production.INFO: ==8694== Releasing lock... [2025-02-11 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:34:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:35:05 [end_date_ymd] => 2025-02-11 05:35:05 [RateCDR] => 1 ) [2025-02-11 05:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:35:05' and `end` < '2025-02-11 05:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:35:19] Production.INFO: count ==111 [2025-02-11 05:35:19] Production.ERROR: pbx CDR StartTime 2025-02-11 02:35:05 - End Time 2025-02-11 05:35:05 [2025-02-11 05:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449629', 'tblTempUsageDetail_20' ) start [2025-02-11 05:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449629', 'tblTempUsageDetail_20' ) end [2025-02-11 05:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449629', 'tblTempVendorCDR_20' ) start [2025-02-11 05:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449629', 'tblTempVendorCDR_20' ) end [2025-02-11 05:35:19] Production.INFO: ProcessCDR(1,14449629,1,1,2) [2025-02-11 05:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449629', 'tblTempUsageDetail_20' ) start [2025-02-11 05:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449629', 'tblTempUsageDetail_20' ) end [2025-02-11 05:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:35:22] Production.INFO: ==8771== Releasing lock... [2025-02-11 05:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:35:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:36:05 [end_date_ymd] => 2025-02-11 05:36:05 [RateCDR] => 1 ) [2025-02-11 05:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:36:05' and `end` < '2025-02-11 05:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:36:18] Production.INFO: count ==111 [2025-02-11 05:36:18] Production.ERROR: pbx CDR StartTime 2025-02-11 02:36:05 - End Time 2025-02-11 05:36:05 [2025-02-11 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449634', 'tblTempUsageDetail_20' ) start [2025-02-11 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449634', 'tblTempUsageDetail_20' ) end [2025-02-11 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449634', 'tblTempVendorCDR_20' ) start [2025-02-11 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449634', 'tblTempVendorCDR_20' ) end [2025-02-11 05:36:18] Production.INFO: ProcessCDR(1,14449634,1,1,2) [2025-02-11 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449634', 'tblTempUsageDetail_20' ) start [2025-02-11 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449634', 'tblTempUsageDetail_20' ) end [2025-02-11 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:36:21] Production.INFO: ==8853== Releasing lock... [2025-02-11 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:36:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:37:05 [end_date_ymd] => 2025-02-11 05:37:05 [RateCDR] => 1 ) [2025-02-11 05:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:37:05' and `end` < '2025-02-11 05:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:37:18] Production.INFO: count ==111 [2025-02-11 05:37:18] Production.ERROR: pbx CDR StartTime 2025-02-11 02:37:05 - End Time 2025-02-11 05:37:05 [2025-02-11 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449639', 'tblTempUsageDetail_20' ) start [2025-02-11 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449639', 'tblTempUsageDetail_20' ) end [2025-02-11 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449639', 'tblTempVendorCDR_20' ) start [2025-02-11 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449639', 'tblTempVendorCDR_20' ) end [2025-02-11 05:37:18] Production.INFO: ProcessCDR(1,14449639,1,1,2) [2025-02-11 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449639', 'tblTempUsageDetail_20' ) start [2025-02-11 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449639', 'tblTempUsageDetail_20' ) end [2025-02-11 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:37:21] Production.INFO: ==8934== Releasing lock... [2025-02-11 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:37:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:38:05 [end_date_ymd] => 2025-02-11 05:38:05 [RateCDR] => 1 ) [2025-02-11 05:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:38:05' and `end` < '2025-02-11 05:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:38:18] Production.INFO: count ==111 [2025-02-11 05:38:18] Production.ERROR: pbx CDR StartTime 2025-02-11 02:38:05 - End Time 2025-02-11 05:38:05 [2025-02-11 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449644', 'tblTempUsageDetail_20' ) start [2025-02-11 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449644', 'tblTempUsageDetail_20' ) end [2025-02-11 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449644', 'tblTempVendorCDR_20' ) start [2025-02-11 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449644', 'tblTempVendorCDR_20' ) end [2025-02-11 05:38:18] Production.INFO: ProcessCDR(1,14449644,1,1,2) [2025-02-11 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449644', 'tblTempUsageDetail_20' ) start [2025-02-11 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449644', 'tblTempUsageDetail_20' ) end [2025-02-11 05:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:38:21] Production.INFO: ==9016== Releasing lock... [2025-02-11 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:38:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:39:05 [end_date_ymd] => 2025-02-11 05:39:05 [RateCDR] => 1 ) [2025-02-11 05:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:39:05' and `end` < '2025-02-11 05:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:39:19] Production.INFO: count ==111 [2025-02-11 05:39:19] Production.ERROR: pbx CDR StartTime 2025-02-11 02:39:05 - End Time 2025-02-11 05:39:05 [2025-02-11 05:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449649', 'tblTempUsageDetail_20' ) start [2025-02-11 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449649', 'tblTempUsageDetail_20' ) end [2025-02-11 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449649', 'tblTempVendorCDR_20' ) start [2025-02-11 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449649', 'tblTempVendorCDR_20' ) end [2025-02-11 05:39:19] Production.INFO: ProcessCDR(1,14449649,1,1,2) [2025-02-11 05:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449649', 'tblTempUsageDetail_20' ) start [2025-02-11 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449649', 'tblTempUsageDetail_20' ) end [2025-02-11 05:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:39:22] Production.INFO: ==9109== Releasing lock... [2025-02-11 05:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:39:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:40:05 [end_date_ymd] => 2025-02-11 05:40:05 [RateCDR] => 1 ) [2025-02-11 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-02-11 02:40:05' and `end` < '2025-02-11 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-02-11 05:40:18] Production.INFO: count ==108 [2025-02-11 05:40:18] Production.ERROR: pbx CDR StartTime 2025-02-11 02:40:05 - End Time 2025-02-11 05:40:05 [2025-02-11 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449655', 'tblTempUsageDetail_20' ) start [2025-02-11 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449655', 'tblTempUsageDetail_20' ) end [2025-02-11 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449655', 'tblTempVendorCDR_20' ) start [2025-02-11 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449655', 'tblTempVendorCDR_20' ) end [2025-02-11 05:40:18] Production.INFO: ProcessCDR(1,14449655,1,1,2) [2025-02-11 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449655', 'tblTempUsageDetail_20' ) start [2025-02-11 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449655', 'tblTempUsageDetail_20' ) end [2025-02-11 05:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:40:22] Production.INFO: ==9182== Releasing lock... [2025-02-11 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:40:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:41:05 [end_date_ymd] => 2025-02-11 05:41:05 [RateCDR] => 1 ) [2025-02-11 05:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:41:05' and `end` < '2025-02-11 05:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:41:18] Production.INFO: count ==91 [2025-02-11 05:41:18] Production.ERROR: pbx CDR StartTime 2025-02-11 02:41:05 - End Time 2025-02-11 05:41:05 [2025-02-11 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449660', 'tblTempUsageDetail_20' ) start [2025-02-11 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449660', 'tblTempUsageDetail_20' ) end [2025-02-11 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449660', 'tblTempVendorCDR_20' ) start [2025-02-11 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449660', 'tblTempVendorCDR_20' ) end [2025-02-11 05:41:18] Production.INFO: ProcessCDR(1,14449660,1,1,2) [2025-02-11 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449660', 'tblTempUsageDetail_20' ) start [2025-02-11 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449660', 'tblTempUsageDetail_20' ) end [2025-02-11 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:41:21] Production.INFO: ==9269== Releasing lock... [2025-02-11 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:41:21] Production.INFO: 28 MB #Memory Used# [2025-02-11 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:42:05 [end_date_ymd] => 2025-02-11 05:42:05 [RateCDR] => 1 ) [2025-02-11 05:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:42:05' and `end` < '2025-02-11 05:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:42:19] Production.INFO: count ==88 [2025-02-11 05:42:19] Production.ERROR: pbx CDR StartTime 2025-02-11 02:42:05 - End Time 2025-02-11 05:42:05 [2025-02-11 05:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449665', 'tblTempUsageDetail_20' ) start [2025-02-11 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449665', 'tblTempUsageDetail_20' ) end [2025-02-11 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449665', 'tblTempVendorCDR_20' ) start [2025-02-11 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449665', 'tblTempVendorCDR_20' ) end [2025-02-11 05:42:19] Production.INFO: ProcessCDR(1,14449665,1,1,2) [2025-02-11 05:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449665', 'tblTempUsageDetail_20' ) start [2025-02-11 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449665', 'tblTempUsageDetail_20' ) end [2025-02-11 05:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:42:22] Production.INFO: ==9351== Releasing lock... [2025-02-11 05:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:42:22] Production.INFO: 28 MB #Memory Used# [2025-02-11 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:43:05 [end_date_ymd] => 2025-02-11 05:43:05 [RateCDR] => 1 ) [2025-02-11 05:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:43:05' and `end` < '2025-02-11 05:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:43:18] Production.INFO: count ==88 [2025-02-11 05:43:18] Production.ERROR: pbx CDR StartTime 2025-02-11 02:43:05 - End Time 2025-02-11 05:43:05 [2025-02-11 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449670', 'tblTempUsageDetail_20' ) start [2025-02-11 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449670', 'tblTempUsageDetail_20' ) end [2025-02-11 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449670', 'tblTempVendorCDR_20' ) start [2025-02-11 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449670', 'tblTempVendorCDR_20' ) end [2025-02-11 05:43:18] Production.INFO: ProcessCDR(1,14449670,1,1,2) [2025-02-11 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449670', 'tblTempUsageDetail_20' ) start [2025-02-11 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449670', 'tblTempUsageDetail_20' ) end [2025-02-11 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:43:21] Production.INFO: ==9460== Releasing lock... [2025-02-11 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:43:21] Production.INFO: 28 MB #Memory Used# [2025-02-11 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:44:05 [end_date_ymd] => 2025-02-11 05:44:05 [RateCDR] => 1 ) [2025-02-11 05:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:44:05' and `end` < '2025-02-11 05:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:44:19] Production.INFO: count ==88 [2025-02-11 05:44:19] Production.ERROR: pbx CDR StartTime 2025-02-11 02:44:05 - End Time 2025-02-11 05:44:05 [2025-02-11 05:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449675', 'tblTempUsageDetail_20' ) start [2025-02-11 05:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449675', 'tblTempUsageDetail_20' ) end [2025-02-11 05:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449675', 'tblTempVendorCDR_20' ) start [2025-02-11 05:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449675', 'tblTempVendorCDR_20' ) end [2025-02-11 05:44:19] Production.INFO: ProcessCDR(1,14449675,1,1,2) [2025-02-11 05:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449675', 'tblTempUsageDetail_20' ) start [2025-02-11 05:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449675', 'tblTempUsageDetail_20' ) end [2025-02-11 05:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:44:22] Production.INFO: ==9532== Releasing lock... [2025-02-11 05:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:44:22] Production.INFO: 28 MB #Memory Used# [2025-02-11 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:45:05 [end_date_ymd] => 2025-02-11 05:45:05 [RateCDR] => 1 ) [2025-02-11 05:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:45:05' and `end` < '2025-02-11 05:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:45:18] Production.INFO: count ==87 [2025-02-11 05:45:18] Production.ERROR: pbx CDR StartTime 2025-02-11 02:45:05 - End Time 2025-02-11 05:45:05 [2025-02-11 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449680', 'tblTempUsageDetail_20' ) start [2025-02-11 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449680', 'tblTempUsageDetail_20' ) end [2025-02-11 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449680', 'tblTempVendorCDR_20' ) start [2025-02-11 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449680', 'tblTempVendorCDR_20' ) end [2025-02-11 05:45:18] Production.INFO: ProcessCDR(1,14449680,1,1,2) [2025-02-11 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449680', 'tblTempUsageDetail_20' ) start [2025-02-11 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449680', 'tblTempUsageDetail_20' ) end [2025-02-11 05:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:45:20] Production.INFO: ==9604== Releasing lock... [2025-02-11 05:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:45:20] Production.INFO: 28 MB #Memory Used# [2025-02-11 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:46:05 [end_date_ymd] => 2025-02-11 05:46:05 [RateCDR] => 1 ) [2025-02-11 05:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:46:05' and `end` < '2025-02-11 05:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:46:18] Production.INFO: count ==87 [2025-02-11 05:46:18] Production.ERROR: pbx CDR StartTime 2025-02-11 02:46:05 - End Time 2025-02-11 05:46:05 [2025-02-11 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449685', 'tblTempUsageDetail_20' ) start [2025-02-11 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449685', 'tblTempUsageDetail_20' ) end [2025-02-11 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449685', 'tblTempVendorCDR_20' ) start [2025-02-11 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449685', 'tblTempVendorCDR_20' ) end [2025-02-11 05:46:18] Production.INFO: ProcessCDR(1,14449685,1,1,2) [2025-02-11 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449685', 'tblTempUsageDetail_20' ) start [2025-02-11 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449685', 'tblTempUsageDetail_20' ) end [2025-02-11 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:46:21] Production.INFO: ==9675== Releasing lock... [2025-02-11 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:46:21] Production.INFO: 28 MB #Memory Used# [2025-02-11 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:47:05 [end_date_ymd] => 2025-02-11 05:47:05 [RateCDR] => 1 ) [2025-02-11 05:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:47:05' and `end` < '2025-02-11 05:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:47:18] Production.INFO: count ==87 [2025-02-11 05:47:18] Production.ERROR: pbx CDR StartTime 2025-02-11 02:47:05 - End Time 2025-02-11 05:47:05 [2025-02-11 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449690', 'tblTempUsageDetail_20' ) start [2025-02-11 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449690', 'tblTempUsageDetail_20' ) end [2025-02-11 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449690', 'tblTempVendorCDR_20' ) start [2025-02-11 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449690', 'tblTempVendorCDR_20' ) end [2025-02-11 05:47:18] Production.INFO: ProcessCDR(1,14449690,1,1,2) [2025-02-11 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449690', 'tblTempUsageDetail_20' ) start [2025-02-11 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449690', 'tblTempUsageDetail_20' ) end [2025-02-11 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:47:21] Production.INFO: ==9753== Releasing lock... [2025-02-11 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:47:21] Production.INFO: 28 MB #Memory Used# [2025-02-11 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:48:05 [end_date_ymd] => 2025-02-11 05:48:05 [RateCDR] => 1 ) [2025-02-11 05:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:48:05' and `end` < '2025-02-11 05:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:48:18] Production.INFO: count ==87 [2025-02-11 05:48:18] Production.ERROR: pbx CDR StartTime 2025-02-11 02:48:05 - End Time 2025-02-11 05:48:05 [2025-02-11 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449695', 'tblTempUsageDetail_20' ) start [2025-02-11 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449695', 'tblTempUsageDetail_20' ) end [2025-02-11 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449695', 'tblTempVendorCDR_20' ) start [2025-02-11 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449695', 'tblTempVendorCDR_20' ) end [2025-02-11 05:48:18] Production.INFO: ProcessCDR(1,14449695,1,1,2) [2025-02-11 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449695', 'tblTempUsageDetail_20' ) start [2025-02-11 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449695', 'tblTempUsageDetail_20' ) end [2025-02-11 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:48:21] Production.INFO: ==9826== Releasing lock... [2025-02-11 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:48:21] Production.INFO: 28 MB #Memory Used# [2025-02-11 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:49:05 [end_date_ymd] => 2025-02-11 05:49:05 [RateCDR] => 1 ) [2025-02-11 05:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:49:05' and `end` < '2025-02-11 05:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:49:18] Production.INFO: count ==87 [2025-02-11 05:49:18] Production.ERROR: pbx CDR StartTime 2025-02-11 02:49:05 - End Time 2025-02-11 05:49:05 [2025-02-11 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449700', 'tblTempUsageDetail_20' ) start [2025-02-11 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449700', 'tblTempUsageDetail_20' ) end [2025-02-11 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449700', 'tblTempVendorCDR_20' ) start [2025-02-11 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449700', 'tblTempVendorCDR_20' ) end [2025-02-11 05:49:18] Production.INFO: ProcessCDR(1,14449700,1,1,2) [2025-02-11 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449700', 'tblTempUsageDetail_20' ) start [2025-02-11 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449700', 'tblTempUsageDetail_20' ) end [2025-02-11 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:49:21] Production.INFO: ==9899== Releasing lock... [2025-02-11 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:49:21] Production.INFO: 28 MB #Memory Used# [2025-02-11 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:50:06 [end_date_ymd] => 2025-02-11 05:50:06 [RateCDR] => 1 ) [2025-02-11 05:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:50:06' and `end` < '2025-02-11 05:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:50:20] Production.INFO: count ==85 [2025-02-11 05:50:20] Production.ERROR: pbx CDR StartTime 2025-02-11 02:50:06 - End Time 2025-02-11 05:50:06 [2025-02-11 05:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449706', 'tblTempUsageDetail_20' ) start [2025-02-11 05:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449706', 'tblTempUsageDetail_20' ) end [2025-02-11 05:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449706', 'tblTempVendorCDR_20' ) start [2025-02-11 05:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449706', 'tblTempVendorCDR_20' ) end [2025-02-11 05:50:20] Production.INFO: ProcessCDR(1,14449706,1,1,2) [2025-02-11 05:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449706', 'tblTempUsageDetail_20' ) start [2025-02-11 05:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449706', 'tblTempUsageDetail_20' ) end [2025-02-11 05:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:50:23] Production.INFO: ==9975== Releasing lock... [2025-02-11 05:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:50:23] Production.INFO: 28 MB #Memory Used# [2025-02-11 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:51:05 [end_date_ymd] => 2025-02-11 05:51:05 [RateCDR] => 1 ) [2025-02-11 05:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:51:05' and `end` < '2025-02-11 05:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:51:19] Production.INFO: count ==85 [2025-02-11 05:51:19] Production.ERROR: pbx CDR StartTime 2025-02-11 02:51:05 - End Time 2025-02-11 05:51:05 [2025-02-11 05:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449711', 'tblTempUsageDetail_20' ) start [2025-02-11 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449711', 'tblTempUsageDetail_20' ) end [2025-02-11 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449711', 'tblTempVendorCDR_20' ) start [2025-02-11 05:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449711', 'tblTempVendorCDR_20' ) end [2025-02-11 05:51:19] Production.INFO: ProcessCDR(1,14449711,1,1,2) [2025-02-11 05:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449711', 'tblTempUsageDetail_20' ) start [2025-02-11 05:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449711', 'tblTempUsageDetail_20' ) end [2025-02-11 05:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:51:22] Production.INFO: ==10049== Releasing lock... [2025-02-11 05:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:51:22] Production.INFO: 28 MB #Memory Used# [2025-02-11 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:52:05 [end_date_ymd] => 2025-02-11 05:52:05 [RateCDR] => 1 ) [2025-02-11 05:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:52:05' and `end` < '2025-02-11 05:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:52:18] Production.INFO: count ==85 [2025-02-11 05:52:18] Production.ERROR: pbx CDR StartTime 2025-02-11 02:52:05 - End Time 2025-02-11 05:52:05 [2025-02-11 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449716', 'tblTempUsageDetail_20' ) start [2025-02-11 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449716', 'tblTempUsageDetail_20' ) end [2025-02-11 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449716', 'tblTempVendorCDR_20' ) start [2025-02-11 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449716', 'tblTempVendorCDR_20' ) end [2025-02-11 05:52:18] Production.INFO: ProcessCDR(1,14449716,1,1,2) [2025-02-11 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449716', 'tblTempUsageDetail_20' ) start [2025-02-11 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449716', 'tblTempUsageDetail_20' ) end [2025-02-11 05:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:52:22] Production.INFO: ==10130== Releasing lock... [2025-02-11 05:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:52:22] Production.INFO: 28 MB #Memory Used# [2025-02-11 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:53:05 [end_date_ymd] => 2025-02-11 05:53:05 [RateCDR] => 1 ) [2025-02-11 05:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:53:05' and `end` < '2025-02-11 05:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:53:18] Production.INFO: count ==85 [2025-02-11 05:53:18] Production.ERROR: pbx CDR StartTime 2025-02-11 02:53:05 - End Time 2025-02-11 05:53:05 [2025-02-11 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449721', 'tblTempUsageDetail_20' ) start [2025-02-11 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449721', 'tblTempUsageDetail_20' ) end [2025-02-11 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449721', 'tblTempVendorCDR_20' ) start [2025-02-11 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449721', 'tblTempVendorCDR_20' ) end [2025-02-11 05:53:18] Production.INFO: ProcessCDR(1,14449721,1,1,2) [2025-02-11 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449721', 'tblTempUsageDetail_20' ) start [2025-02-11 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449721', 'tblTempUsageDetail_20' ) end [2025-02-11 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:53:22] Production.INFO: ==10221== Releasing lock... [2025-02-11 05:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:53:22] Production.INFO: 28 MB #Memory Used# [2025-02-11 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:54:05 [end_date_ymd] => 2025-02-11 05:54:05 [RateCDR] => 1 ) [2025-02-11 05:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:54:05' and `end` < '2025-02-11 05:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:54:17] Production.INFO: count ==85 [2025-02-11 05:54:17] Production.ERROR: pbx CDR StartTime 2025-02-11 02:54:05 - End Time 2025-02-11 05:54:05 [2025-02-11 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449726', 'tblTempUsageDetail_20' ) start [2025-02-11 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449726', 'tblTempUsageDetail_20' ) end [2025-02-11 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449726', 'tblTempVendorCDR_20' ) start [2025-02-11 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449726', 'tblTempVendorCDR_20' ) end [2025-02-11 05:54:18] Production.INFO: ProcessCDR(1,14449726,1,1,2) [2025-02-11 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449726', 'tblTempUsageDetail_20' ) start [2025-02-11 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449726', 'tblTempUsageDetail_20' ) end [2025-02-11 05:54:20] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:54:20] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:54:20] Production.INFO: ==10296== Releasing lock... [2025-02-11 05:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:54:21] Production.INFO: 28 MB #Memory Used# [2025-02-11 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:55:05 [end_date_ymd] => 2025-02-11 05:55:05 [RateCDR] => 1 ) [2025-02-11 05:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:55:05' and `end` < '2025-02-11 05:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:55:18] Production.INFO: count ==85 [2025-02-11 05:55:18] Production.ERROR: pbx CDR StartTime 2025-02-11 02:55:05 - End Time 2025-02-11 05:55:05 [2025-02-11 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449731', 'tblTempUsageDetail_20' ) start [2025-02-11 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449731', 'tblTempUsageDetail_20' ) end [2025-02-11 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449731', 'tblTempVendorCDR_20' ) start [2025-02-11 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449731', 'tblTempVendorCDR_20' ) end [2025-02-11 05:55:18] Production.INFO: ProcessCDR(1,14449731,1,1,2) [2025-02-11 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449731', 'tblTempUsageDetail_20' ) start [2025-02-11 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449731', 'tblTempUsageDetail_20' ) end [2025-02-11 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:55:21] Production.INFO: ==10376== Releasing lock... [2025-02-11 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:55:21] Production.INFO: 28 MB #Memory Used# [2025-02-11 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:56:05 [end_date_ymd] => 2025-02-11 05:56:05 [RateCDR] => 1 ) [2025-02-11 05:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:56:05' and `end` < '2025-02-11 05:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:56:19] Production.INFO: count ==85 [2025-02-11 05:56:19] Production.ERROR: pbx CDR StartTime 2025-02-11 02:56:05 - End Time 2025-02-11 05:56:05 [2025-02-11 05:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449736', 'tblTempUsageDetail_20' ) start [2025-02-11 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449736', 'tblTempUsageDetail_20' ) end [2025-02-11 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449736', 'tblTempVendorCDR_20' ) start [2025-02-11 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449736', 'tblTempVendorCDR_20' ) end [2025-02-11 05:56:19] Production.INFO: ProcessCDR(1,14449736,1,1,2) [2025-02-11 05:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449736', 'tblTempUsageDetail_20' ) start [2025-02-11 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449736', 'tblTempUsageDetail_20' ) end [2025-02-11 05:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:56:22] Production.INFO: ==10452== Releasing lock... [2025-02-11 05:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:56:22] Production.INFO: 28 MB #Memory Used# [2025-02-11 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:57:05 [end_date_ymd] => 2025-02-11 05:57:05 [RateCDR] => 1 ) [2025-02-11 05:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:57:05' and `end` < '2025-02-11 05:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:57:18] Production.INFO: count ==85 [2025-02-11 05:57:18] Production.ERROR: pbx CDR StartTime 2025-02-11 02:57:05 - End Time 2025-02-11 05:57:05 [2025-02-11 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449741', 'tblTempUsageDetail_20' ) start [2025-02-11 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449741', 'tblTempUsageDetail_20' ) end [2025-02-11 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449741', 'tblTempVendorCDR_20' ) start [2025-02-11 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449741', 'tblTempVendorCDR_20' ) end [2025-02-11 05:57:19] Production.INFO: ProcessCDR(1,14449741,1,1,2) [2025-02-11 05:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449741', 'tblTempUsageDetail_20' ) start [2025-02-11 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449741', 'tblTempUsageDetail_20' ) end [2025-02-11 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:57:21] Production.INFO: ==10528== Releasing lock... [2025-02-11 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:57:21] Production.INFO: 28 MB #Memory Used# [2025-02-11 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:58:05 [end_date_ymd] => 2025-02-11 05:58:05 [RateCDR] => 1 ) [2025-02-11 05:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:58:05' and `end` < '2025-02-11 05:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:58:17] Production.INFO: count ==85 [2025-02-11 05:58:17] Production.ERROR: pbx CDR StartTime 2025-02-11 02:58:05 - End Time 2025-02-11 05:58:05 [2025-02-11 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449746', 'tblTempUsageDetail_20' ) start [2025-02-11 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449746', 'tblTempUsageDetail_20' ) end [2025-02-11 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449746', 'tblTempVendorCDR_20' ) start [2025-02-11 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449746', 'tblTempVendorCDR_20' ) end [2025-02-11 05:58:17] Production.INFO: ProcessCDR(1,14449746,1,1,2) [2025-02-11 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449746', 'tblTempUsageDetail_20' ) start [2025-02-11 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449746', 'tblTempUsageDetail_20' ) end [2025-02-11 05:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:58:20] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:58:21] Production.INFO: ==10640== Releasing lock... [2025-02-11 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:58:21] Production.INFO: 28 MB #Memory Used# [2025-02-11 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 02:59:05 [end_date_ymd] => 2025-02-11 05:59:05 [RateCDR] => 1 ) [2025-02-11 05:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 02:59:05' and `end` < '2025-02-11 05:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 05:59:18] Production.INFO: count ==85 [2025-02-11 05:59:18] Production.ERROR: pbx CDR StartTime 2025-02-11 02:59:05 - End Time 2025-02-11 05:59:05 [2025-02-11 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449751', 'tblTempUsageDetail_20' ) start [2025-02-11 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449751', 'tblTempUsageDetail_20' ) end [2025-02-11 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449751', 'tblTempVendorCDR_20' ) start [2025-02-11 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449751', 'tblTempVendorCDR_20' ) end [2025-02-11 05:59:18] Production.INFO: ProcessCDR(1,14449751,1,1,2) [2025-02-11 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 05:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449751', 'tblTempUsageDetail_20' ) start [2025-02-11 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449751', 'tblTempUsageDetail_20' ) end [2025-02-11 05:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 05:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 05:59:21] Production.INFO: ==10714== Releasing lock... [2025-02-11 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 05:59:21] Production.INFO: 28 MB #Memory Used# [2025-02-11 06:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:00:05 [end_date_ymd] => 2025-02-11 06:00:05 [RateCDR] => 1 ) [2025-02-11 06:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:00:05' and `end` < '2025-02-11 06:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:00:18] Production.INFO: count ==85 [2025-02-11 06:00:18] Production.ERROR: pbx CDR StartTime 2025-02-11 03:00:05 - End Time 2025-02-11 06:00:05 [2025-02-11 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449757', 'tblTempUsageDetail_20' ) start [2025-02-11 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449757', 'tblTempUsageDetail_20' ) end [2025-02-11 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449757', 'tblTempVendorCDR_20' ) start [2025-02-11 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449757', 'tblTempVendorCDR_20' ) end [2025-02-11 06:00:18] Production.INFO: ProcessCDR(1,14449757,1,1,2) [2025-02-11 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449757', 'tblTempUsageDetail_20' ) start [2025-02-11 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449757', 'tblTempUsageDetail_20' ) end [2025-02-11 06:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:00:22] Production.INFO: ==10792== Releasing lock... [2025-02-11 06:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:00:22] Production.INFO: 28 MB #Memory Used# [2025-02-11 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:01:05 [end_date_ymd] => 2025-02-11 06:01:05 [RateCDR] => 1 ) [2025-02-11 06:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:01:05' and `end` < '2025-02-11 06:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:01:18] Production.INFO: count ==85 [2025-02-11 06:01:18] Production.ERROR: pbx CDR StartTime 2025-02-11 03:01:05 - End Time 2025-02-11 06:01:05 [2025-02-11 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449762', 'tblTempUsageDetail_20' ) start [2025-02-11 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449762', 'tblTempUsageDetail_20' ) end [2025-02-11 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449762', 'tblTempVendorCDR_20' ) start [2025-02-11 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449762', 'tblTempVendorCDR_20' ) end [2025-02-11 06:01:18] Production.INFO: ProcessCDR(1,14449762,1,1,2) [2025-02-11 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449762', 'tblTempUsageDetail_20' ) start [2025-02-11 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449762', 'tblTempUsageDetail_20' ) end [2025-02-11 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:01:21] Production.INFO: ==10880== Releasing lock... [2025-02-11 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:01:21] Production.INFO: 28 MB #Memory Used# [2025-02-11 06:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:02:06 [end_date_ymd] => 2025-02-11 06:02:06 [RateCDR] => 1 ) [2025-02-11 06:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:02:06' and `end` < '2025-02-11 06:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:02:19] Production.INFO: count ==86 [2025-02-11 06:02:19] Production.ERROR: pbx CDR StartTime 2025-02-11 03:02:06 - End Time 2025-02-11 06:02:06 [2025-02-11 06:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449767', 'tblTempUsageDetail_20' ) start [2025-02-11 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449767', 'tblTempUsageDetail_20' ) end [2025-02-11 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449767', 'tblTempVendorCDR_20' ) start [2025-02-11 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449767', 'tblTempVendorCDR_20' ) end [2025-02-11 06:02:19] Production.INFO: ProcessCDR(1,14449767,1,1,2) [2025-02-11 06:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449767', 'tblTempUsageDetail_20' ) start [2025-02-11 06:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449767', 'tblTempUsageDetail_20' ) end [2025-02-11 06:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:02:24] Production.INFO: ==10951== Releasing lock... [2025-02-11 06:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:02:24] Production.INFO: 28 MB #Memory Used# [2025-02-11 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:03:05 [end_date_ymd] => 2025-02-11 06:03:05 [RateCDR] => 1 ) [2025-02-11 06:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:03:05' and `end` < '2025-02-11 06:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:03:19] Production.INFO: count ==86 [2025-02-11 06:03:19] Production.ERROR: pbx CDR StartTime 2025-02-11 03:03:05 - End Time 2025-02-11 06:03:05 [2025-02-11 06:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449772', 'tblTempUsageDetail_20' ) start [2025-02-11 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449772', 'tblTempUsageDetail_20' ) end [2025-02-11 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449772', 'tblTempVendorCDR_20' ) start [2025-02-11 06:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449772', 'tblTempVendorCDR_20' ) end [2025-02-11 06:03:19] Production.INFO: ProcessCDR(1,14449772,1,1,2) [2025-02-11 06:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449772', 'tblTempUsageDetail_20' ) start [2025-02-11 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449772', 'tblTempUsageDetail_20' ) end [2025-02-11 06:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:03:22] Production.INFO: ==11027== Releasing lock... [2025-02-11 06:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:03:22] Production.INFO: 28 MB #Memory Used# [2025-02-11 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:04:05 [end_date_ymd] => 2025-02-11 06:04:05 [RateCDR] => 1 ) [2025-02-11 06:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:04:05' and `end` < '2025-02-11 06:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:04:18] Production.INFO: count ==86 [2025-02-11 06:04:18] Production.ERROR: pbx CDR StartTime 2025-02-11 03:04:05 - End Time 2025-02-11 06:04:05 [2025-02-11 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449777', 'tblTempUsageDetail_20' ) start [2025-02-11 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449777', 'tblTempUsageDetail_20' ) end [2025-02-11 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449777', 'tblTempVendorCDR_20' ) start [2025-02-11 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449777', 'tblTempVendorCDR_20' ) end [2025-02-11 06:04:18] Production.INFO: ProcessCDR(1,14449777,1,1,2) [2025-02-11 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449777', 'tblTempUsageDetail_20' ) start [2025-02-11 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449777', 'tblTempUsageDetail_20' ) end [2025-02-11 06:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:04:22] Production.INFO: ==11097== Releasing lock... [2025-02-11 06:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:04:22] Production.INFO: 28 MB #Memory Used# [2025-02-11 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:05:05 [end_date_ymd] => 2025-02-11 06:05:05 [RateCDR] => 1 ) [2025-02-11 06:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:05:05' and `end` < '2025-02-11 06:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:05:19] Production.INFO: count ==87 [2025-02-11 06:05:19] Production.ERROR: pbx CDR StartTime 2025-02-11 03:05:05 - End Time 2025-02-11 06:05:05 [2025-02-11 06:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449782', 'tblTempUsageDetail_20' ) start [2025-02-11 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449782', 'tblTempUsageDetail_20' ) end [2025-02-11 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449782', 'tblTempVendorCDR_20' ) start [2025-02-11 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449782', 'tblTempVendorCDR_20' ) end [2025-02-11 06:05:19] Production.INFO: ProcessCDR(1,14449782,1,1,2) [2025-02-11 06:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449782', 'tblTempUsageDetail_20' ) start [2025-02-11 06:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449782', 'tblTempUsageDetail_20' ) end [2025-02-11 06:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:05:23] Production.INFO: ==11183== Releasing lock... [2025-02-11 06:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:05:23] Production.INFO: 28 MB #Memory Used# [2025-02-11 06:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:06:06 [end_date_ymd] => 2025-02-11 06:06:06 [RateCDR] => 1 ) [2025-02-11 06:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:06:06' and `end` < '2025-02-11 06:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:06:19] Production.INFO: count ==87 [2025-02-11 06:06:19] Production.ERROR: pbx CDR StartTime 2025-02-11 03:06:06 - End Time 2025-02-11 06:06:06 [2025-02-11 06:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449787', 'tblTempUsageDetail_20' ) start [2025-02-11 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449787', 'tblTempUsageDetail_20' ) end [2025-02-11 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449787', 'tblTempVendorCDR_20' ) start [2025-02-11 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449787', 'tblTempVendorCDR_20' ) end [2025-02-11 06:06:19] Production.INFO: ProcessCDR(1,14449787,1,1,2) [2025-02-11 06:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449787', 'tblTempUsageDetail_20' ) start [2025-02-11 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449787', 'tblTempUsageDetail_20' ) end [2025-02-11 06:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:06:22] Production.INFO: ==11265== Releasing lock... [2025-02-11 06:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:06:22] Production.INFO: 28 MB #Memory Used# [2025-02-11 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:07:05 [end_date_ymd] => 2025-02-11 06:07:05 [RateCDR] => 1 ) [2025-02-11 06:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:07:05' and `end` < '2025-02-11 06:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:07:18] Production.INFO: count ==89 [2025-02-11 06:07:18] Production.ERROR: pbx CDR StartTime 2025-02-11 03:07:05 - End Time 2025-02-11 06:07:05 [2025-02-11 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449792', 'tblTempUsageDetail_20' ) start [2025-02-11 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449792', 'tblTempUsageDetail_20' ) end [2025-02-11 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449792', 'tblTempVendorCDR_20' ) start [2025-02-11 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449792', 'tblTempVendorCDR_20' ) end [2025-02-11 06:07:18] Production.INFO: ProcessCDR(1,14449792,1,1,2) [2025-02-11 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449792', 'tblTempUsageDetail_20' ) start [2025-02-11 06:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449792', 'tblTempUsageDetail_20' ) end [2025-02-11 06:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:07:23] Production.INFO: ==11343== Releasing lock... [2025-02-11 06:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:07:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:08:05 [end_date_ymd] => 2025-02-11 06:08:05 [RateCDR] => 1 ) [2025-02-11 06:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:08:05' and `end` < '2025-02-11 06:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:08:18] Production.INFO: count ==89 [2025-02-11 06:08:18] Production.ERROR: pbx CDR StartTime 2025-02-11 03:08:05 - End Time 2025-02-11 06:08:05 [2025-02-11 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449796', 'tblTempUsageDetail_20' ) start [2025-02-11 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449796', 'tblTempUsageDetail_20' ) end [2025-02-11 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449796', 'tblTempVendorCDR_20' ) start [2025-02-11 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449796', 'tblTempVendorCDR_20' ) end [2025-02-11 06:08:18] Production.INFO: ProcessCDR(1,14449796,1,1,2) [2025-02-11 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449796', 'tblTempUsageDetail_20' ) start [2025-02-11 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449796', 'tblTempUsageDetail_20' ) end [2025-02-11 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:08:21] Production.INFO: ==11454== Releasing lock... [2025-02-11 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:08:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:09:05 [end_date_ymd] => 2025-02-11 06:09:05 [RateCDR] => 1 ) [2025-02-11 06:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:09:05' and `end` < '2025-02-11 06:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:09:18] Production.INFO: count ==89 [2025-02-11 06:09:18] Production.ERROR: pbx CDR StartTime 2025-02-11 03:09:05 - End Time 2025-02-11 06:09:05 [2025-02-11 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449802', 'tblTempUsageDetail_20' ) start [2025-02-11 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449802', 'tblTempUsageDetail_20' ) end [2025-02-11 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449802', 'tblTempVendorCDR_20' ) start [2025-02-11 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449802', 'tblTempVendorCDR_20' ) end [2025-02-11 06:09:18] Production.INFO: ProcessCDR(1,14449802,1,1,2) [2025-02-11 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449802', 'tblTempUsageDetail_20' ) start [2025-02-11 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449802', 'tblTempUsageDetail_20' ) end [2025-02-11 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:09:21] Production.INFO: ==11558== Releasing lock... [2025-02-11 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:09:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:10:06 [end_date_ymd] => 2025-02-11 06:10:06 [RateCDR] => 1 ) [2025-02-11 06:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:10:06' and `end` < '2025-02-11 06:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:10:19] Production.INFO: count ==91 [2025-02-11 06:10:19] Production.ERROR: pbx CDR StartTime 2025-02-11 03:10:06 - End Time 2025-02-11 06:10:06 [2025-02-11 06:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449808', 'tblTempUsageDetail_20' ) start [2025-02-11 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449808', 'tblTempUsageDetail_20' ) end [2025-02-11 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449808', 'tblTempVendorCDR_20' ) start [2025-02-11 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449808', 'tblTempVendorCDR_20' ) end [2025-02-11 06:10:19] Production.INFO: ProcessCDR(1,14449808,1,1,2) [2025-02-11 06:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449808', 'tblTempUsageDetail_20' ) start [2025-02-11 06:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449808', 'tblTempUsageDetail_20' ) end [2025-02-11 06:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:10:23] Production.INFO: ==11669== Releasing lock... [2025-02-11 06:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:10:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:11:05 [end_date_ymd] => 2025-02-11 06:11:05 [RateCDR] => 1 ) [2025-02-11 06:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:11:05' and `end` < '2025-02-11 06:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:11:18] Production.INFO: count ==91 [2025-02-11 06:11:18] Production.ERROR: pbx CDR StartTime 2025-02-11 03:11:05 - End Time 2025-02-11 06:11:05 [2025-02-11 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449813', 'tblTempUsageDetail_20' ) start [2025-02-11 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449813', 'tblTempUsageDetail_20' ) end [2025-02-11 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449813', 'tblTempVendorCDR_20' ) start [2025-02-11 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449813', 'tblTempVendorCDR_20' ) end [2025-02-11 06:11:18] Production.INFO: ProcessCDR(1,14449813,1,1,2) [2025-02-11 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449813', 'tblTempUsageDetail_20' ) start [2025-02-11 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449813', 'tblTempUsageDetail_20' ) end [2025-02-11 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:11:21] Production.INFO: ==11778== Releasing lock... [2025-02-11 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:11:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:12:05 [end_date_ymd] => 2025-02-11 06:12:05 [RateCDR] => 1 ) [2025-02-11 06:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:12:05' and `end` < '2025-02-11 06:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:12:19] Production.INFO: count ==91 [2025-02-11 06:12:19] Production.ERROR: pbx CDR StartTime 2025-02-11 03:12:05 - End Time 2025-02-11 06:12:05 [2025-02-11 06:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449818', 'tblTempUsageDetail_20' ) start [2025-02-11 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449818', 'tblTempUsageDetail_20' ) end [2025-02-11 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449818', 'tblTempVendorCDR_20' ) start [2025-02-11 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449818', 'tblTempVendorCDR_20' ) end [2025-02-11 06:12:19] Production.INFO: ProcessCDR(1,14449818,1,1,2) [2025-02-11 06:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449818', 'tblTempUsageDetail_20' ) start [2025-02-11 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449818', 'tblTempUsageDetail_20' ) end [2025-02-11 06:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:12:22] Production.INFO: ==11879== Releasing lock... [2025-02-11 06:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:12:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:13:04 [end_date_ymd] => 2025-02-11 06:13:04 [RateCDR] => 1 ) [2025-02-11 06:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:13:04' and `end` < '2025-02-11 06:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:13:17] Production.INFO: count ==91 [2025-02-11 06:13:17] Production.ERROR: pbx CDR StartTime 2025-02-11 03:13:04 - End Time 2025-02-11 06:13:04 [2025-02-11 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449823', 'tblTempUsageDetail_20' ) start [2025-02-11 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449823', 'tblTempUsageDetail_20' ) end [2025-02-11 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449823', 'tblTempVendorCDR_20' ) start [2025-02-11 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449823', 'tblTempVendorCDR_20' ) end [2025-02-11 06:13:17] Production.INFO: ProcessCDR(1,14449823,1,1,2) [2025-02-11 06:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449823', 'tblTempUsageDetail_20' ) start [2025-02-11 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449823', 'tblTempUsageDetail_20' ) end [2025-02-11 06:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:13:20] Production.INFO: ==11984== Releasing lock... [2025-02-11 06:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:13:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:14:05 [end_date_ymd] => 2025-02-11 06:14:05 [RateCDR] => 1 ) [2025-02-11 06:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:14:05' and `end` < '2025-02-11 06:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:14:19] Production.INFO: count ==92 [2025-02-11 06:14:19] Production.ERROR: pbx CDR StartTime 2025-02-11 03:14:05 - End Time 2025-02-11 06:14:05 [2025-02-11 06:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449828', 'tblTempUsageDetail_20' ) start [2025-02-11 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449828', 'tblTempUsageDetail_20' ) end [2025-02-11 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449828', 'tblTempVendorCDR_20' ) start [2025-02-11 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449828', 'tblTempVendorCDR_20' ) end [2025-02-11 06:14:19] Production.INFO: ProcessCDR(1,14449828,1,1,2) [2025-02-11 06:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449828', 'tblTempUsageDetail_20' ) start [2025-02-11 06:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449828', 'tblTempUsageDetail_20' ) end [2025-02-11 06:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:14:24] Production.INFO: ==12133== Releasing lock... [2025-02-11 06:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:14:24] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:15:05 [end_date_ymd] => 2025-02-11 06:15:05 [RateCDR] => 1 ) [2025-02-11 06:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:15:05' and `end` < '2025-02-11 06:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:15:18] Production.INFO: count ==96 [2025-02-11 06:15:18] Production.ERROR: pbx CDR StartTime 2025-02-11 03:15:05 - End Time 2025-02-11 06:15:05 [2025-02-11 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449833', 'tblTempUsageDetail_20' ) start [2025-02-11 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449833', 'tblTempUsageDetail_20' ) end [2025-02-11 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449833', 'tblTempVendorCDR_20' ) start [2025-02-11 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449833', 'tblTempVendorCDR_20' ) end [2025-02-11 06:15:18] Production.INFO: ProcessCDR(1,14449833,1,1,2) [2025-02-11 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449833', 'tblTempUsageDetail_20' ) start [2025-02-11 06:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449833', 'tblTempUsageDetail_20' ) end [2025-02-11 06:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:15:22] Production.INFO: ==12237== Releasing lock... [2025-02-11 06:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:15:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:16:05 [end_date_ymd] => 2025-02-11 06:16:05 [RateCDR] => 1 ) [2025-02-11 06:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:16:05' and `end` < '2025-02-11 06:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:16:19] Production.INFO: count ==96 [2025-02-11 06:16:19] Production.ERROR: pbx CDR StartTime 2025-02-11 03:16:05 - End Time 2025-02-11 06:16:05 [2025-02-11 06:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449838', 'tblTempUsageDetail_20' ) start [2025-02-11 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449838', 'tblTempUsageDetail_20' ) end [2025-02-11 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449838', 'tblTempVendorCDR_20' ) start [2025-02-11 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449838', 'tblTempVendorCDR_20' ) end [2025-02-11 06:16:19] Production.INFO: ProcessCDR(1,14449838,1,1,2) [2025-02-11 06:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449838', 'tblTempUsageDetail_20' ) start [2025-02-11 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449838', 'tblTempUsageDetail_20' ) end [2025-02-11 06:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:16:22] Production.INFO: ==12313== Releasing lock... [2025-02-11 06:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:16:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:17:06 [end_date_ymd] => 2025-02-11 06:17:06 [RateCDR] => 1 ) [2025-02-11 06:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:17:06' and `end` < '2025-02-11 06:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:17:19] Production.INFO: count ==100 [2025-02-11 06:17:19] Production.ERROR: pbx CDR StartTime 2025-02-11 03:17:06 - End Time 2025-02-11 06:17:06 [2025-02-11 06:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449843', 'tblTempUsageDetail_20' ) start [2025-02-11 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449843', 'tblTempUsageDetail_20' ) end [2025-02-11 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449843', 'tblTempVendorCDR_20' ) start [2025-02-11 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449843', 'tblTempVendorCDR_20' ) end [2025-02-11 06:17:19] Production.INFO: ProcessCDR(1,14449843,1,1,2) [2025-02-11 06:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449843', 'tblTempUsageDetail_20' ) start [2025-02-11 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449843', 'tblTempUsageDetail_20' ) end [2025-02-11 06:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:17:22] Production.INFO: ==12389== Releasing lock... [2025-02-11 06:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:17:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:18:05 [end_date_ymd] => 2025-02-11 06:18:05 [RateCDR] => 1 ) [2025-02-11 06:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:18:05' and `end` < '2025-02-11 06:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:18:18] Production.INFO: count ==100 [2025-02-11 06:18:18] Production.ERROR: pbx CDR StartTime 2025-02-11 03:18:05 - End Time 2025-02-11 06:18:05 [2025-02-11 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449848', 'tblTempUsageDetail_20' ) start [2025-02-11 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449848', 'tblTempUsageDetail_20' ) end [2025-02-11 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449848', 'tblTempVendorCDR_20' ) start [2025-02-11 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449848', 'tblTempVendorCDR_20' ) end [2025-02-11 06:18:18] Production.INFO: ProcessCDR(1,14449848,1,1,2) [2025-02-11 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449848', 'tblTempUsageDetail_20' ) start [2025-02-11 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449848', 'tblTempUsageDetail_20' ) end [2025-02-11 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:18:21] Production.INFO: ==12471== Releasing lock... [2025-02-11 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:18:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:19:05 [end_date_ymd] => 2025-02-11 06:19:05 [RateCDR] => 1 ) [2025-02-11 06:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:19:05' and `end` < '2025-02-11 06:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:19:18] Production.INFO: count ==100 [2025-02-11 06:19:18] Production.ERROR: pbx CDR StartTime 2025-02-11 03:19:05 - End Time 2025-02-11 06:19:05 [2025-02-11 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449853', 'tblTempUsageDetail_20' ) start [2025-02-11 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449853', 'tblTempUsageDetail_20' ) end [2025-02-11 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449853', 'tblTempVendorCDR_20' ) start [2025-02-11 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449853', 'tblTempVendorCDR_20' ) end [2025-02-11 06:19:18] Production.INFO: ProcessCDR(1,14449853,1,1,2) [2025-02-11 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449853', 'tblTempUsageDetail_20' ) start [2025-02-11 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449853', 'tblTempUsageDetail_20' ) end [2025-02-11 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:19:21] Production.INFO: ==12550== Releasing lock... [2025-02-11 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:19:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:20:06 [end_date_ymd] => 2025-02-11 06:20:06 [RateCDR] => 1 ) [2025-02-11 06:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:20:06' and `end` < '2025-02-11 06:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:20:20] Production.INFO: count ==100 [2025-02-11 06:20:20] Production.ERROR: pbx CDR StartTime 2025-02-11 03:20:06 - End Time 2025-02-11 06:20:06 [2025-02-11 06:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449858', 'tblTempUsageDetail_20' ) start [2025-02-11 06:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449858', 'tblTempUsageDetail_20' ) end [2025-02-11 06:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449858', 'tblTempVendorCDR_20' ) start [2025-02-11 06:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449858', 'tblTempVendorCDR_20' ) end [2025-02-11 06:20:20] Production.INFO: ProcessCDR(1,14449858,1,1,2) [2025-02-11 06:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449858', 'tblTempUsageDetail_20' ) start [2025-02-11 06:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449858', 'tblTempUsageDetail_20' ) end [2025-02-11 06:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:20:23] Production.INFO: ==12625== Releasing lock... [2025-02-11 06:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:20:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:21:05 [end_date_ymd] => 2025-02-11 06:21:05 [RateCDR] => 1 ) [2025-02-11 06:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:21:05' and `end` < '2025-02-11 06:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:21:18] Production.INFO: count ==104 [2025-02-11 06:21:18] Production.ERROR: pbx CDR StartTime 2025-02-11 03:21:05 - End Time 2025-02-11 06:21:05 [2025-02-11 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449864', 'tblTempUsageDetail_20' ) start [2025-02-11 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449864', 'tblTempUsageDetail_20' ) end [2025-02-11 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449864', 'tblTempVendorCDR_20' ) start [2025-02-11 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449864', 'tblTempVendorCDR_20' ) end [2025-02-11 06:21:18] Production.INFO: ProcessCDR(1,14449864,1,1,2) [2025-02-11 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449864', 'tblTempUsageDetail_20' ) start [2025-02-11 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449864', 'tblTempUsageDetail_20' ) end [2025-02-11 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:21:21] Production.INFO: ==12699== Releasing lock... [2025-02-11 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:21:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:22:05 [end_date_ymd] => 2025-02-11 06:22:05 [RateCDR] => 1 ) [2025-02-11 06:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:22:05' and `end` < '2025-02-11 06:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:22:18] Production.INFO: count ==104 [2025-02-11 06:22:18] Production.ERROR: pbx CDR StartTime 2025-02-11 03:22:05 - End Time 2025-02-11 06:22:05 [2025-02-11 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449869', 'tblTempUsageDetail_20' ) start [2025-02-11 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449869', 'tblTempUsageDetail_20' ) end [2025-02-11 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449869', 'tblTempVendorCDR_20' ) start [2025-02-11 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449869', 'tblTempVendorCDR_20' ) end [2025-02-11 06:22:18] Production.INFO: ProcessCDR(1,14449869,1,1,2) [2025-02-11 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449869', 'tblTempUsageDetail_20' ) start [2025-02-11 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449869', 'tblTempUsageDetail_20' ) end [2025-02-11 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:22:21] Production.INFO: ==12770== Releasing lock... [2025-02-11 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:22:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:23:05 [end_date_ymd] => 2025-02-11 06:23:05 [RateCDR] => 1 ) [2025-02-11 06:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:23:05' and `end` < '2025-02-11 06:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:23:19] Production.INFO: count ==104 [2025-02-11 06:23:19] Production.ERROR: pbx CDR StartTime 2025-02-11 03:23:05 - End Time 2025-02-11 06:23:05 [2025-02-11 06:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449874', 'tblTempUsageDetail_20' ) start [2025-02-11 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449874', 'tblTempUsageDetail_20' ) end [2025-02-11 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449874', 'tblTempVendorCDR_20' ) start [2025-02-11 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449874', 'tblTempVendorCDR_20' ) end [2025-02-11 06:23:19] Production.INFO: ProcessCDR(1,14449874,1,1,2) [2025-02-11 06:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449874', 'tblTempUsageDetail_20' ) start [2025-02-11 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449874', 'tblTempUsageDetail_20' ) end [2025-02-11 06:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:23:22] Production.INFO: ==12842== Releasing lock... [2025-02-11 06:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:23:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:24:05 [end_date_ymd] => 2025-02-11 06:24:05 [RateCDR] => 1 ) [2025-02-11 06:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:24:05' and `end` < '2025-02-11 06:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:24:18] Production.INFO: count ==104 [2025-02-11 06:24:18] Production.ERROR: pbx CDR StartTime 2025-02-11 03:24:05 - End Time 2025-02-11 06:24:05 [2025-02-11 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449879', 'tblTempUsageDetail_20' ) start [2025-02-11 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449879', 'tblTempUsageDetail_20' ) end [2025-02-11 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449879', 'tblTempVendorCDR_20' ) start [2025-02-11 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449879', 'tblTempVendorCDR_20' ) end [2025-02-11 06:24:18] Production.INFO: ProcessCDR(1,14449879,1,1,2) [2025-02-11 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449879', 'tblTempUsageDetail_20' ) start [2025-02-11 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449879', 'tblTempUsageDetail_20' ) end [2025-02-11 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:24:21] Production.INFO: ==12913== Releasing lock... [2025-02-11 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:24:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:25:05 [end_date_ymd] => 2025-02-11 06:25:05 [RateCDR] => 1 ) [2025-02-11 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:25:05' and `end` < '2025-02-11 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:25:18] Production.INFO: count ==104 [2025-02-11 06:25:18] Production.ERROR: pbx CDR StartTime 2025-02-11 03:25:05 - End Time 2025-02-11 06:25:05 [2025-02-11 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449884', 'tblTempUsageDetail_20' ) start [2025-02-11 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449884', 'tblTempUsageDetail_20' ) end [2025-02-11 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449884', 'tblTempVendorCDR_20' ) start [2025-02-11 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449884', 'tblTempVendorCDR_20' ) end [2025-02-11 06:25:18] Production.INFO: ProcessCDR(1,14449884,1,1,2) [2025-02-11 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449884', 'tblTempUsageDetail_20' ) start [2025-02-11 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449884', 'tblTempUsageDetail_20' ) end [2025-02-11 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:25:21] Production.INFO: ==12992== Releasing lock... [2025-02-11 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:25:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:26:04 [end_date_ymd] => 2025-02-11 06:26:04 [RateCDR] => 1 ) [2025-02-11 06:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:26:04' and `end` < '2025-02-11 06:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:26:17] Production.INFO: count ==104 [2025-02-11 06:26:17] Production.ERROR: pbx CDR StartTime 2025-02-11 03:26:04 - End Time 2025-02-11 06:26:04 [2025-02-11 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449889', 'tblTempUsageDetail_20' ) start [2025-02-11 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449889', 'tblTempUsageDetail_20' ) end [2025-02-11 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449889', 'tblTempVendorCDR_20' ) start [2025-02-11 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449889', 'tblTempVendorCDR_20' ) end [2025-02-11 06:26:17] Production.INFO: ProcessCDR(1,14449889,1,1,2) [2025-02-11 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449889', 'tblTempUsageDetail_20' ) start [2025-02-11 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449889', 'tblTempUsageDetail_20' ) end [2025-02-11 06:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:26:20] Production.INFO: ==13065== Releasing lock... [2025-02-11 06:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:26:20] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:27:05 [end_date_ymd] => 2025-02-11 06:27:05 [RateCDR] => 1 ) [2025-02-11 06:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:27:05' and `end` < '2025-02-11 06:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:27:18] Production.INFO: count ==104 [2025-02-11 06:27:18] Production.ERROR: pbx CDR StartTime 2025-02-11 03:27:05 - End Time 2025-02-11 06:27:05 [2025-02-11 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449894', 'tblTempUsageDetail_20' ) start [2025-02-11 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449894', 'tblTempUsageDetail_20' ) end [2025-02-11 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449894', 'tblTempVendorCDR_20' ) start [2025-02-11 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449894', 'tblTempVendorCDR_20' ) end [2025-02-11 06:27:18] Production.INFO: ProcessCDR(1,14449894,1,1,2) [2025-02-11 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449894', 'tblTempUsageDetail_20' ) start [2025-02-11 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449894', 'tblTempUsageDetail_20' ) end [2025-02-11 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:27:21] Production.INFO: ==13141== Releasing lock... [2025-02-11 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:27:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:28:06 [end_date_ymd] => 2025-02-11 06:28:06 [RateCDR] => 1 ) [2025-02-11 06:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:28:06' and `end` < '2025-02-11 06:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:28:20] Production.INFO: count ==108 [2025-02-11 06:28:20] Production.ERROR: pbx CDR StartTime 2025-02-11 03:28:06 - End Time 2025-02-11 06:28:06 [2025-02-11 06:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449899', 'tblTempUsageDetail_20' ) start [2025-02-11 06:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449899', 'tblTempUsageDetail_20' ) end [2025-02-11 06:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449899', 'tblTempVendorCDR_20' ) start [2025-02-11 06:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449899', 'tblTempVendorCDR_20' ) end [2025-02-11 06:28:20] Production.INFO: ProcessCDR(1,14449899,1,1,2) [2025-02-11 06:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449899', 'tblTempUsageDetail_20' ) start [2025-02-11 06:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449899', 'tblTempUsageDetail_20' ) end [2025-02-11 06:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:28:23] Production.INFO: ==13215== Releasing lock... [2025-02-11 06:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:28:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:29:05 [end_date_ymd] => 2025-02-11 06:29:05 [RateCDR] => 1 ) [2025-02-11 06:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:29:05' and `end` < '2025-02-11 06:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:29:18] Production.INFO: count ==108 [2025-02-11 06:29:18] Production.ERROR: pbx CDR StartTime 2025-02-11 03:29:05 - End Time 2025-02-11 06:29:05 [2025-02-11 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449904', 'tblTempUsageDetail_20' ) start [2025-02-11 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449904', 'tblTempUsageDetail_20' ) end [2025-02-11 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449904', 'tblTempVendorCDR_20' ) start [2025-02-11 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449904', 'tblTempVendorCDR_20' ) end [2025-02-11 06:29:18] Production.INFO: ProcessCDR(1,14449904,1,1,2) [2025-02-11 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449904', 'tblTempUsageDetail_20' ) start [2025-02-11 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449904', 'tblTempUsageDetail_20' ) end [2025-02-11 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:29:21] Production.INFO: ==13330== Releasing lock... [2025-02-11 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:29:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:30:05 [end_date_ymd] => 2025-02-11 06:30:05 [RateCDR] => 1 ) [2025-02-11 06:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:30:05' and `end` < '2025-02-11 06:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:30:18] Production.INFO: count ==110 [2025-02-11 06:30:18] Production.ERROR: pbx CDR StartTime 2025-02-11 03:30:05 - End Time 2025-02-11 06:30:05 [2025-02-11 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449910', 'tblTempUsageDetail_20' ) start [2025-02-11 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449910', 'tblTempUsageDetail_20' ) end [2025-02-11 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449910', 'tblTempVendorCDR_20' ) start [2025-02-11 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449910', 'tblTempVendorCDR_20' ) end [2025-02-11 06:30:18] Production.INFO: ProcessCDR(1,14449910,1,1,2) [2025-02-11 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449910', 'tblTempUsageDetail_20' ) start [2025-02-11 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449910', 'tblTempUsageDetail_20' ) end [2025-02-11 06:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:30:21] Production.INFO: ==13407== Releasing lock... [2025-02-11 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:30:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:31:05 [end_date_ymd] => 2025-02-11 06:31:05 [RateCDR] => 1 ) [2025-02-11 06:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:31:05' and `end` < '2025-02-11 06:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:31:18] Production.INFO: count ==113 [2025-02-11 06:31:18] Production.ERROR: pbx CDR StartTime 2025-02-11 03:31:05 - End Time 2025-02-11 06:31:05 [2025-02-11 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449915', 'tblTempUsageDetail_20' ) start [2025-02-11 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449915', 'tblTempUsageDetail_20' ) end [2025-02-11 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449915', 'tblTempVendorCDR_20' ) start [2025-02-11 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449915', 'tblTempVendorCDR_20' ) end [2025-02-11 06:31:18] Production.INFO: ProcessCDR(1,14449915,1,1,2) [2025-02-11 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449915', 'tblTempUsageDetail_20' ) start [2025-02-11 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449915', 'tblTempUsageDetail_20' ) end [2025-02-11 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:31:21] Production.INFO: ==13490== Releasing lock... [2025-02-11 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:31:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:32:05 [end_date_ymd] => 2025-02-11 06:32:05 [RateCDR] => 1 ) [2025-02-11 06:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:32:05' and `end` < '2025-02-11 06:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:32:19] Production.INFO: count ==113 [2025-02-11 06:32:19] Production.ERROR: pbx CDR StartTime 2025-02-11 03:32:05 - End Time 2025-02-11 06:32:05 [2025-02-11 06:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449920', 'tblTempUsageDetail_20' ) start [2025-02-11 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449920', 'tblTempUsageDetail_20' ) end [2025-02-11 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449920', 'tblTempVendorCDR_20' ) start [2025-02-11 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449920', 'tblTempVendorCDR_20' ) end [2025-02-11 06:32:19] Production.INFO: ProcessCDR(1,14449920,1,1,2) [2025-02-11 06:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449920', 'tblTempUsageDetail_20' ) start [2025-02-11 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449920', 'tblTempUsageDetail_20' ) end [2025-02-11 06:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:32:22] Production.INFO: ==13563== Releasing lock... [2025-02-11 06:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:32:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:33:05 [end_date_ymd] => 2025-02-11 06:33:05 [RateCDR] => 1 ) [2025-02-11 06:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:33:05' and `end` < '2025-02-11 06:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:33:19] Production.INFO: count ==117 [2025-02-11 06:33:19] Production.ERROR: pbx CDR StartTime 2025-02-11 03:33:05 - End Time 2025-02-11 06:33:05 [2025-02-11 06:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449925', 'tblTempUsageDetail_20' ) start [2025-02-11 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449925', 'tblTempUsageDetail_20' ) end [2025-02-11 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449925', 'tblTempVendorCDR_20' ) start [2025-02-11 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449925', 'tblTempVendorCDR_20' ) end [2025-02-11 06:33:19] Production.INFO: ProcessCDR(1,14449925,1,1,2) [2025-02-11 06:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449925', 'tblTempUsageDetail_20' ) start [2025-02-11 06:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449925', 'tblTempUsageDetail_20' ) end [2025-02-11 06:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:33:23] Production.INFO: ==13634== Releasing lock... [2025-02-11 06:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:33:23] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:34:05 [end_date_ymd] => 2025-02-11 06:34:05 [RateCDR] => 1 ) [2025-02-11 06:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:34:05' and `end` < '2025-02-11 06:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:34:18] Production.INFO: count ==117 [2025-02-11 06:34:18] Production.ERROR: pbx CDR StartTime 2025-02-11 03:34:05 - End Time 2025-02-11 06:34:05 [2025-02-11 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449930', 'tblTempUsageDetail_20' ) start [2025-02-11 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449930', 'tblTempUsageDetail_20' ) end [2025-02-11 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449930', 'tblTempVendorCDR_20' ) start [2025-02-11 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449930', 'tblTempVendorCDR_20' ) end [2025-02-11 06:34:18] Production.INFO: ProcessCDR(1,14449930,1,1,2) [2025-02-11 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449930', 'tblTempUsageDetail_20' ) start [2025-02-11 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449930', 'tblTempUsageDetail_20' ) end [2025-02-11 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:34:21] Production.INFO: ==13715== Releasing lock... [2025-02-11 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:34:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:35:05 [end_date_ymd] => 2025-02-11 06:35:05 [RateCDR] => 1 ) [2025-02-11 06:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:35:05' and `end` < '2025-02-11 06:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:35:18] Production.INFO: count ==117 [2025-02-11 06:35:18] Production.ERROR: pbx CDR StartTime 2025-02-11 03:35:05 - End Time 2025-02-11 06:35:05 [2025-02-11 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449935', 'tblTempUsageDetail_20' ) start [2025-02-11 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449935', 'tblTempUsageDetail_20' ) end [2025-02-11 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449935', 'tblTempVendorCDR_20' ) start [2025-02-11 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449935', 'tblTempVendorCDR_20' ) end [2025-02-11 06:35:18] Production.INFO: ProcessCDR(1,14449935,1,1,2) [2025-02-11 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449935', 'tblTempUsageDetail_20' ) start [2025-02-11 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449935', 'tblTempUsageDetail_20' ) end [2025-02-11 06:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:35:22] Production.INFO: ==13790== Releasing lock... [2025-02-11 06:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:35:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:36:05 [end_date_ymd] => 2025-02-11 06:36:05 [RateCDR] => 1 ) [2025-02-11 06:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:36:05' and `end` < '2025-02-11 06:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:36:19] Production.INFO: count ==117 [2025-02-11 06:36:19] Production.ERROR: pbx CDR StartTime 2025-02-11 03:36:05 - End Time 2025-02-11 06:36:05 [2025-02-11 06:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449940', 'tblTempUsageDetail_20' ) start [2025-02-11 06:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449940', 'tblTempUsageDetail_20' ) end [2025-02-11 06:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449940', 'tblTempVendorCDR_20' ) start [2025-02-11 06:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449940', 'tblTempVendorCDR_20' ) end [2025-02-11 06:36:19] Production.INFO: ProcessCDR(1,14449940,1,1,2) [2025-02-11 06:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449940', 'tblTempUsageDetail_20' ) start [2025-02-11 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449940', 'tblTempUsageDetail_20' ) end [2025-02-11 06:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:36:22] Production.INFO: ==13865== Releasing lock... [2025-02-11 06:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:36:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:37:05 [end_date_ymd] => 2025-02-11 06:37:05 [RateCDR] => 1 ) [2025-02-11 06:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:37:05' and `end` < '2025-02-11 06:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:37:18] Production.INFO: count ==117 [2025-02-11 06:37:18] Production.ERROR: pbx CDR StartTime 2025-02-11 03:37:05 - End Time 2025-02-11 06:37:05 [2025-02-11 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449945', 'tblTempUsageDetail_20' ) start [2025-02-11 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449945', 'tblTempUsageDetail_20' ) end [2025-02-11 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449945', 'tblTempVendorCDR_20' ) start [2025-02-11 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449945', 'tblTempVendorCDR_20' ) end [2025-02-11 06:37:18] Production.INFO: ProcessCDR(1,14449945,1,1,2) [2025-02-11 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449945', 'tblTempUsageDetail_20' ) start [2025-02-11 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449945', 'tblTempUsageDetail_20' ) end [2025-02-11 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:37:21] Production.INFO: ==13939== Releasing lock... [2025-02-11 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:37:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:38:05 [end_date_ymd] => 2025-02-11 06:38:05 [RateCDR] => 1 ) [2025-02-11 06:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:38:05' and `end` < '2025-02-11 06:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:38:19] Production.INFO: count ==117 [2025-02-11 06:38:19] Production.ERROR: pbx CDR StartTime 2025-02-11 03:38:05 - End Time 2025-02-11 06:38:05 [2025-02-11 06:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449950', 'tblTempUsageDetail_20' ) start [2025-02-11 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449950', 'tblTempUsageDetail_20' ) end [2025-02-11 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449950', 'tblTempVendorCDR_20' ) start [2025-02-11 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449950', 'tblTempVendorCDR_20' ) end [2025-02-11 06:38:19] Production.INFO: ProcessCDR(1,14449950,1,1,2) [2025-02-11 06:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449950', 'tblTempUsageDetail_20' ) start [2025-02-11 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449950', 'tblTempUsageDetail_20' ) end [2025-02-11 06:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:38:22] Production.INFO: ==14010== Releasing lock... [2025-02-11 06:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:38:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:39:05 [end_date_ymd] => 2025-02-11 06:39:05 [RateCDR] => 1 ) [2025-02-11 06:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:39:05' and `end` < '2025-02-11 06:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:39:18] Production.INFO: count ==117 [2025-02-11 06:39:18] Production.ERROR: pbx CDR StartTime 2025-02-11 03:39:05 - End Time 2025-02-11 06:39:05 [2025-02-11 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449955', 'tblTempUsageDetail_20' ) start [2025-02-11 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449955', 'tblTempUsageDetail_20' ) end [2025-02-11 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449955', 'tblTempVendorCDR_20' ) start [2025-02-11 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449955', 'tblTempVendorCDR_20' ) end [2025-02-11 06:39:18] Production.INFO: ProcessCDR(1,14449955,1,1,2) [2025-02-11 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449955', 'tblTempUsageDetail_20' ) start [2025-02-11 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449955', 'tblTempUsageDetail_20' ) end [2025-02-11 06:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:39:22] Production.INFO: ==14086== Releasing lock... [2025-02-11 06:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:39:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:40:07 [end_date_ymd] => 2025-02-11 06:40:07 [RateCDR] => 1 ) [2025-02-11 06:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:40:07' and `end` < '2025-02-11 06:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:40:19] Production.INFO: count ==123 [2025-02-11 06:40:19] Production.ERROR: pbx CDR StartTime 2025-02-11 03:40:07 - End Time 2025-02-11 06:40:07 [2025-02-11 06:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449961', 'tblTempUsageDetail_20' ) start [2025-02-11 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449961', 'tblTempUsageDetail_20' ) end [2025-02-11 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449961', 'tblTempVendorCDR_20' ) start [2025-02-11 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449961', 'tblTempVendorCDR_20' ) end [2025-02-11 06:40:19] Production.INFO: ProcessCDR(1,14449961,1,1,2) [2025-02-11 06:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449961', 'tblTempUsageDetail_20' ) start [2025-02-11 06:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449961', 'tblTempUsageDetail_20' ) end [2025-02-11 06:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:40:23] Production.INFO: ==14160== Releasing lock... [2025-02-11 06:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:40:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-11 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:41:05 [end_date_ymd] => 2025-02-11 06:41:05 [RateCDR] => 1 ) [2025-02-11 06:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:41:05' and `end` < '2025-02-11 06:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:41:17] Production.INFO: count ==123 [2025-02-11 06:41:17] Production.ERROR: pbx CDR StartTime 2025-02-11 03:41:05 - End Time 2025-02-11 06:41:05 [2025-02-11 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449966', 'tblTempUsageDetail_20' ) start [2025-02-11 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449966', 'tblTempUsageDetail_20' ) end [2025-02-11 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449966', 'tblTempVendorCDR_20' ) start [2025-02-11 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449966', 'tblTempVendorCDR_20' ) end [2025-02-11 06:41:17] Production.INFO: ProcessCDR(1,14449966,1,1,2) [2025-02-11 06:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449966', 'tblTempUsageDetail_20' ) start [2025-02-11 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449966', 'tblTempUsageDetail_20' ) end [2025-02-11 06:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:41:20] Production.INFO: ==14235== Releasing lock... [2025-02-11 06:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:41:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-11 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:42:05 [end_date_ymd] => 2025-02-11 06:42:05 [RateCDR] => 1 ) [2025-02-11 06:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:42:05' and `end` < '2025-02-11 06:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:42:18] Production.INFO: count ==123 [2025-02-11 06:42:18] Production.ERROR: pbx CDR StartTime 2025-02-11 03:42:05 - End Time 2025-02-11 06:42:05 [2025-02-11 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449971', 'tblTempUsageDetail_20' ) start [2025-02-11 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449971', 'tblTempUsageDetail_20' ) end [2025-02-11 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449971', 'tblTempVendorCDR_20' ) start [2025-02-11 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449971', 'tblTempVendorCDR_20' ) end [2025-02-11 06:42:18] Production.INFO: ProcessCDR(1,14449971,1,1,2) [2025-02-11 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449971', 'tblTempUsageDetail_20' ) start [2025-02-11 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449971', 'tblTempUsageDetail_20' ) end [2025-02-11 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:42:21] Production.INFO: ==14308== Releasing lock... [2025-02-11 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:42:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-11 06:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:43:04 [end_date_ymd] => 2025-02-11 06:43:04 [RateCDR] => 1 ) [2025-02-11 06:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:43:04' and `end` < '2025-02-11 06:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:43:17] Production.INFO: count ==123 [2025-02-11 06:43:17] Production.ERROR: pbx CDR StartTime 2025-02-11 03:43:04 - End Time 2025-02-11 06:43:04 [2025-02-11 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449976', 'tblTempUsageDetail_20' ) start [2025-02-11 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449976', 'tblTempUsageDetail_20' ) end [2025-02-11 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449976', 'tblTempVendorCDR_20' ) start [2025-02-11 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449976', 'tblTempVendorCDR_20' ) end [2025-02-11 06:43:17] Production.INFO: ProcessCDR(1,14449976,1,1,2) [2025-02-11 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449976', 'tblTempUsageDetail_20' ) start [2025-02-11 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449976', 'tblTempUsageDetail_20' ) end [2025-02-11 06:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:43:20] Production.INFO: ==14382== Releasing lock... [2025-02-11 06:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:43:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-11 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:44:05 [end_date_ymd] => 2025-02-11 06:44:05 [RateCDR] => 1 ) [2025-02-11 06:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:44:05' and `end` < '2025-02-11 06:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:44:18] Production.INFO: count ==123 [2025-02-11 06:44:18] Production.ERROR: pbx CDR StartTime 2025-02-11 03:44:05 - End Time 2025-02-11 06:44:05 [2025-02-11 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449981', 'tblTempUsageDetail_20' ) start [2025-02-11 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449981', 'tblTempUsageDetail_20' ) end [2025-02-11 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449981', 'tblTempVendorCDR_20' ) start [2025-02-11 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449981', 'tblTempVendorCDR_20' ) end [2025-02-11 06:44:18] Production.INFO: ProcessCDR(1,14449981,1,1,2) [2025-02-11 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449981', 'tblTempUsageDetail_20' ) start [2025-02-11 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449981', 'tblTempUsageDetail_20' ) end [2025-02-11 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:44:21] Production.INFO: ==14500== Releasing lock... [2025-02-11 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:44:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-11 06:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:45:04 [end_date_ymd] => 2025-02-11 06:45:04 [RateCDR] => 1 ) [2025-02-11 06:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:45:04' and `end` < '2025-02-11 06:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:45:17] Production.INFO: count ==123 [2025-02-11 06:45:17] Production.ERROR: pbx CDR StartTime 2025-02-11 03:45:04 - End Time 2025-02-11 06:45:04 [2025-02-11 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449986', 'tblTempUsageDetail_20' ) start [2025-02-11 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449986', 'tblTempUsageDetail_20' ) end [2025-02-11 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449986', 'tblTempVendorCDR_20' ) start [2025-02-11 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449986', 'tblTempVendorCDR_20' ) end [2025-02-11 06:45:17] Production.INFO: ProcessCDR(1,14449986,1,1,2) [2025-02-11 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449986', 'tblTempUsageDetail_20' ) start [2025-02-11 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449986', 'tblTempUsageDetail_20' ) end [2025-02-11 06:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:45:20] Production.INFO: ==14586== Releasing lock... [2025-02-11 06:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:45:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-11 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:46:05 [end_date_ymd] => 2025-02-11 06:46:05 [RateCDR] => 1 ) [2025-02-11 06:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:46:05' and `end` < '2025-02-11 06:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:46:18] Production.INFO: count ==123 [2025-02-11 06:46:18] Production.ERROR: pbx CDR StartTime 2025-02-11 03:46:05 - End Time 2025-02-11 06:46:05 [2025-02-11 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449991', 'tblTempUsageDetail_20' ) start [2025-02-11 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449991', 'tblTempUsageDetail_20' ) end [2025-02-11 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449991', 'tblTempVendorCDR_20' ) start [2025-02-11 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449991', 'tblTempVendorCDR_20' ) end [2025-02-11 06:46:18] Production.INFO: ProcessCDR(1,14449991,1,1,2) [2025-02-11 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449991', 'tblTempUsageDetail_20' ) start [2025-02-11 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449991', 'tblTempUsageDetail_20' ) end [2025-02-11 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:46:21] Production.INFO: ==14663== Releasing lock... [2025-02-11 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:46:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-11 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:47:05 [end_date_ymd] => 2025-02-11 06:47:05 [RateCDR] => 1 ) [2025-02-11 06:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:47:05' and `end` < '2025-02-11 06:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:47:19] Production.INFO: count ==123 [2025-02-11 06:47:19] Production.ERROR: pbx CDR StartTime 2025-02-11 03:47:05 - End Time 2025-02-11 06:47:05 [2025-02-11 06:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449996', 'tblTempUsageDetail_20' ) start [2025-02-11 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14449996', 'tblTempUsageDetail_20' ) end [2025-02-11 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449996', 'tblTempVendorCDR_20' ) start [2025-02-11 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14449996', 'tblTempVendorCDR_20' ) end [2025-02-11 06:47:19] Production.INFO: ProcessCDR(1,14449996,1,1,2) [2025-02-11 06:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14449996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14449996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14449996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14449996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449996', 'tblTempUsageDetail_20' ) start [2025-02-11 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14449996', 'tblTempUsageDetail_20' ) end [2025-02-11 06:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:47:22] Production.INFO: ==14735== Releasing lock... [2025-02-11 06:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:47:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-11 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:48:05 [end_date_ymd] => 2025-02-11 06:48:05 [RateCDR] => 1 ) [2025-02-11 06:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:48:05' and `end` < '2025-02-11 06:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:48:18] Production.INFO: count ==123 [2025-02-11 06:48:18] Production.ERROR: pbx CDR StartTime 2025-02-11 03:48:05 - End Time 2025-02-11 06:48:05 [2025-02-11 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450001', 'tblTempUsageDetail_20' ) start [2025-02-11 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450001', 'tblTempUsageDetail_20' ) end [2025-02-11 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450001', 'tblTempVendorCDR_20' ) start [2025-02-11 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450001', 'tblTempVendorCDR_20' ) end [2025-02-11 06:48:18] Production.INFO: ProcessCDR(1,14450001,1,1,2) [2025-02-11 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450001', 'tblTempUsageDetail_20' ) start [2025-02-11 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450001', 'tblTempUsageDetail_20' ) end [2025-02-11 06:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:48:22] Production.INFO: ==14815== Releasing lock... [2025-02-11 06:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:48:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-11 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:49:05 [end_date_ymd] => 2025-02-11 06:49:05 [RateCDR] => 1 ) [2025-02-11 06:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:49:05' and `end` < '2025-02-11 06:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:49:18] Production.INFO: count ==119 [2025-02-11 06:49:18] Production.ERROR: pbx CDR StartTime 2025-02-11 03:49:05 - End Time 2025-02-11 06:49:05 [2025-02-11 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450006', 'tblTempUsageDetail_20' ) start [2025-02-11 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450006', 'tblTempUsageDetail_20' ) end [2025-02-11 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450006', 'tblTempVendorCDR_20' ) start [2025-02-11 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450006', 'tblTempVendorCDR_20' ) end [2025-02-11 06:49:18] Production.INFO: ProcessCDR(1,14450006,1,1,2) [2025-02-11 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450006', 'tblTempUsageDetail_20' ) start [2025-02-11 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450006', 'tblTempUsageDetail_20' ) end [2025-02-11 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:49:21] Production.INFO: ==14888== Releasing lock... [2025-02-11 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:49:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:50:05 [end_date_ymd] => 2025-02-11 06:50:05 [RateCDR] => 1 ) [2025-02-11 06:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:50:05' and `end` < '2025-02-11 06:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:50:19] Production.INFO: count ==117 [2025-02-11 06:50:19] Production.ERROR: pbx CDR StartTime 2025-02-11 03:50:05 - End Time 2025-02-11 06:50:05 [2025-02-11 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450012', 'tblTempUsageDetail_20' ) start [2025-02-11 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450012', 'tblTempUsageDetail_20' ) end [2025-02-11 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450012', 'tblTempVendorCDR_20' ) start [2025-02-11 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450012', 'tblTempVendorCDR_20' ) end [2025-02-11 06:50:19] Production.INFO: ProcessCDR(1,14450012,1,1,2) [2025-02-11 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450012', 'tblTempUsageDetail_20' ) start [2025-02-11 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450012', 'tblTempUsageDetail_20' ) end [2025-02-11 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:50:22] Production.INFO: ==14960== Releasing lock... [2025-02-11 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:50:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:51:05 [end_date_ymd] => 2025-02-11 06:51:05 [RateCDR] => 1 ) [2025-02-11 06:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:51:05' and `end` < '2025-02-11 06:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:51:18] Production.INFO: count ==117 [2025-02-11 06:51:18] Production.ERROR: pbx CDR StartTime 2025-02-11 03:51:05 - End Time 2025-02-11 06:51:05 [2025-02-11 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450017', 'tblTempUsageDetail_20' ) start [2025-02-11 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450017', 'tblTempUsageDetail_20' ) end [2025-02-11 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450017', 'tblTempVendorCDR_20' ) start [2025-02-11 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450017', 'tblTempVendorCDR_20' ) end [2025-02-11 06:51:18] Production.INFO: ProcessCDR(1,14450017,1,1,2) [2025-02-11 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450017', 'tblTempUsageDetail_20' ) start [2025-02-11 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450017', 'tblTempUsageDetail_20' ) end [2025-02-11 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:51:21] Production.INFO: ==15039== Releasing lock... [2025-02-11 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:51:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:52:04 [end_date_ymd] => 2025-02-11 06:52:04 [RateCDR] => 1 ) [2025-02-11 06:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:52:04' and `end` < '2025-02-11 06:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:52:17] Production.INFO: count ==117 [2025-02-11 06:52:17] Production.ERROR: pbx CDR StartTime 2025-02-11 03:52:04 - End Time 2025-02-11 06:52:04 [2025-02-11 06:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450022', 'tblTempUsageDetail_20' ) start [2025-02-11 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450022', 'tblTempUsageDetail_20' ) end [2025-02-11 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450022', 'tblTempVendorCDR_20' ) start [2025-02-11 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450022', 'tblTempVendorCDR_20' ) end [2025-02-11 06:52:17] Production.INFO: ProcessCDR(1,14450022,1,1,2) [2025-02-11 06:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450022', 'tblTempUsageDetail_20' ) start [2025-02-11 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450022', 'tblTempUsageDetail_20' ) end [2025-02-11 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:52:21] Production.INFO: ==15114== Releasing lock... [2025-02-11 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:52:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:53:05 [end_date_ymd] => 2025-02-11 06:53:05 [RateCDR] => 1 ) [2025-02-11 06:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:53:05' and `end` < '2025-02-11 06:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:53:19] Production.INFO: count ==117 [2025-02-11 06:53:19] Production.ERROR: pbx CDR StartTime 2025-02-11 03:53:05 - End Time 2025-02-11 06:53:05 [2025-02-11 06:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450027', 'tblTempUsageDetail_20' ) start [2025-02-11 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450027', 'tblTempUsageDetail_20' ) end [2025-02-11 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450027', 'tblTempVendorCDR_20' ) start [2025-02-11 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450027', 'tblTempVendorCDR_20' ) end [2025-02-11 06:53:19] Production.INFO: ProcessCDR(1,14450027,1,1,2) [2025-02-11 06:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450027', 'tblTempUsageDetail_20' ) start [2025-02-11 06:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450027', 'tblTempUsageDetail_20' ) end [2025-02-11 06:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:53:22] Production.INFO: ==15192== Releasing lock... [2025-02-11 06:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:53:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:54:04 [end_date_ymd] => 2025-02-11 06:54:04 [RateCDR] => 1 ) [2025-02-11 06:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:54:04' and `end` < '2025-02-11 06:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:54:18] Production.INFO: count ==121 [2025-02-11 06:54:18] Production.ERROR: pbx CDR StartTime 2025-02-11 03:54:04 - End Time 2025-02-11 06:54:04 [2025-02-11 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450031', 'tblTempUsageDetail_20' ) start [2025-02-11 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450031', 'tblTempUsageDetail_20' ) end [2025-02-11 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450031', 'tblTempVendorCDR_20' ) start [2025-02-11 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450031', 'tblTempVendorCDR_20' ) end [2025-02-11 06:54:18] Production.INFO: ProcessCDR(1,14450031,1,1,2) [2025-02-11 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450031', 'tblTempUsageDetail_20' ) start [2025-02-11 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450031', 'tblTempUsageDetail_20' ) end [2025-02-11 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:54:21] Production.INFO: ==15272== Releasing lock... [2025-02-11 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:54:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:55:05 [end_date_ymd] => 2025-02-11 06:55:05 [RateCDR] => 1 ) [2025-02-11 06:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:55:05' and `end` < '2025-02-11 06:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:55:18] Production.INFO: count ==121 [2025-02-11 06:55:18] Production.ERROR: pbx CDR StartTime 2025-02-11 03:55:05 - End Time 2025-02-11 06:55:05 [2025-02-11 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450037', 'tblTempUsageDetail_20' ) start [2025-02-11 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450037', 'tblTempUsageDetail_20' ) end [2025-02-11 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450037', 'tblTempVendorCDR_20' ) start [2025-02-11 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450037', 'tblTempVendorCDR_20' ) end [2025-02-11 06:55:18] Production.INFO: ProcessCDR(1,14450037,1,1,2) [2025-02-11 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450037', 'tblTempUsageDetail_20' ) start [2025-02-11 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450037', 'tblTempUsageDetail_20' ) end [2025-02-11 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:55:21] Production.INFO: ==15342== Releasing lock... [2025-02-11 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:55:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:56:05 [end_date_ymd] => 2025-02-11 06:56:05 [RateCDR] => 1 ) [2025-02-11 06:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:56:05' and `end` < '2025-02-11 06:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:56:18] Production.INFO: count ==121 [2025-02-11 06:56:18] Production.ERROR: pbx CDR StartTime 2025-02-11 03:56:05 - End Time 2025-02-11 06:56:05 [2025-02-11 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450042', 'tblTempUsageDetail_20' ) start [2025-02-11 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450042', 'tblTempUsageDetail_20' ) end [2025-02-11 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450042', 'tblTempVendorCDR_20' ) start [2025-02-11 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450042', 'tblTempVendorCDR_20' ) end [2025-02-11 06:56:18] Production.INFO: ProcessCDR(1,14450042,1,1,2) [2025-02-11 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450042', 'tblTempUsageDetail_20' ) start [2025-02-11 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450042', 'tblTempUsageDetail_20' ) end [2025-02-11 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:56:21] Production.INFO: ==15422== Releasing lock... [2025-02-11 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:56:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:57:05 [end_date_ymd] => 2025-02-11 06:57:05 [RateCDR] => 1 ) [2025-02-11 06:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:57:05' and `end` < '2025-02-11 06:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:57:17] Production.INFO: count ==121 [2025-02-11 06:57:17] Production.ERROR: pbx CDR StartTime 2025-02-11 03:57:05 - End Time 2025-02-11 06:57:05 [2025-02-11 06:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450047', 'tblTempUsageDetail_20' ) start [2025-02-11 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450047', 'tblTempUsageDetail_20' ) end [2025-02-11 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450047', 'tblTempVendorCDR_20' ) start [2025-02-11 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450047', 'tblTempVendorCDR_20' ) end [2025-02-11 06:57:18] Production.INFO: ProcessCDR(1,14450047,1,1,2) [2025-02-11 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450047', 'tblTempUsageDetail_20' ) start [2025-02-11 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450047', 'tblTempUsageDetail_20' ) end [2025-02-11 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:57:21] Production.INFO: ==15499== Releasing lock... [2025-02-11 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:57:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:58:04 [end_date_ymd] => 2025-02-11 06:58:04 [RateCDR] => 1 ) [2025-02-11 06:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:58:04' and `end` < '2025-02-11 06:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:58:17] Production.INFO: count ==121 [2025-02-11 06:58:17] Production.ERROR: pbx CDR StartTime 2025-02-11 03:58:04 - End Time 2025-02-11 06:58:04 [2025-02-11 06:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450052', 'tblTempUsageDetail_20' ) start [2025-02-11 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450052', 'tblTempUsageDetail_20' ) end [2025-02-11 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450052', 'tblTempVendorCDR_20' ) start [2025-02-11 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450052', 'tblTempVendorCDR_20' ) end [2025-02-11 06:58:17] Production.INFO: ProcessCDR(1,14450052,1,1,2) [2025-02-11 06:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450052', 'tblTempUsageDetail_20' ) start [2025-02-11 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450052', 'tblTempUsageDetail_20' ) end [2025-02-11 06:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:58:21] Production.INFO: ==15582== Releasing lock... [2025-02-11 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:58:21] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 03:59:05 [end_date_ymd] => 2025-02-11 06:59:05 [RateCDR] => 1 ) [2025-02-11 06:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 03:59:05' and `end` < '2025-02-11 06:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 06:59:19] Production.INFO: count ==121 [2025-02-11 06:59:19] Production.ERROR: pbx CDR StartTime 2025-02-11 03:59:05 - End Time 2025-02-11 06:59:05 [2025-02-11 06:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450057', 'tblTempUsageDetail_20' ) start [2025-02-11 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450057', 'tblTempUsageDetail_20' ) end [2025-02-11 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450057', 'tblTempVendorCDR_20' ) start [2025-02-11 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450057', 'tblTempVendorCDR_20' ) end [2025-02-11 06:59:19] Production.INFO: ProcessCDR(1,14450057,1,1,2) [2025-02-11 06:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 06:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450057', 'tblTempUsageDetail_20' ) start [2025-02-11 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450057', 'tblTempUsageDetail_20' ) end [2025-02-11 06:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 06:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 06:59:22] Production.INFO: ==15665== Releasing lock... [2025-02-11 06:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 06:59:22] Production.INFO: 28.25 MB #Memory Used# [2025-02-11 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:00:06 [end_date_ymd] => 2025-02-11 07:00:06 [RateCDR] => 1 ) [2025-02-11 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:00:06' and `end` < '2025-02-11 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:00:19] Production.INFO: count ==125 [2025-02-11 07:00:19] Production.ERROR: pbx CDR StartTime 2025-02-11 04:00:06 - End Time 2025-02-11 07:00:06 [2025-02-11 07:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450063', 'tblTempUsageDetail_20' ) start [2025-02-11 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450063', 'tblTempUsageDetail_20' ) end [2025-02-11 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450063', 'tblTempVendorCDR_20' ) start [2025-02-11 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450063', 'tblTempVendorCDR_20' ) end [2025-02-11 07:00:19] Production.INFO: ProcessCDR(1,14450063,1,1,2) [2025-02-11 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450063', 'tblTempUsageDetail_20' ) start [2025-02-11 07:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450063', 'tblTempUsageDetail_20' ) end [2025-02-11 07:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:00:23] Production.INFO: ==15787== Releasing lock... [2025-02-11 07:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:00:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-11 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:01:05 [end_date_ymd] => 2025-02-11 07:01:05 [RateCDR] => 1 ) [2025-02-11 07:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:01:05' and `end` < '2025-02-11 07:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:01:27] Production.INFO: count ==131 [2025-02-11 07:01:27] Production.ERROR: pbx CDR StartTime 2025-02-11 04:01:05 - End Time 2025-02-11 07:01:05 [2025-02-11 07:01:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450068', 'tblTempUsageDetail_20' ) start [2025-02-11 07:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450068', 'tblTempUsageDetail_20' ) end [2025-02-11 07:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450068', 'tblTempVendorCDR_20' ) start [2025-02-11 07:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450068', 'tblTempVendorCDR_20' ) end [2025-02-11 07:01:27] Production.INFO: ProcessCDR(1,14450068,1,1,2) [2025-02-11 07:01:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:01:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:01:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450068', 'tblTempUsageDetail_20' ) start [2025-02-11 07:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450068', 'tblTempUsageDetail_20' ) end [2025-02-11 07:01:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:01:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:01:30] Production.INFO: ==15958== Releasing lock... [2025-02-11 07:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:01:30] Production.INFO: 28.5 MB #Memory Used# [2025-02-11 07:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:02:05 [end_date_ymd] => 2025-02-11 07:02:05 [RateCDR] => 1 ) [2025-02-11 07:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:02:05' and `end` < '2025-02-11 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-02-11 07:02:24] Production.INFO: count ==133 [2025-02-11 07:02:24] Production.ERROR: pbx CDR StartTime 2025-02-11 04:02:05 - End Time 2025-02-11 07:02:05 [2025-02-11 07:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450073', 'tblTempUsageDetail_20' ) start [2025-02-11 07:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450073', 'tblTempUsageDetail_20' ) end [2025-02-11 07:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450073', 'tblTempVendorCDR_20' ) start [2025-02-11 07:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450073', 'tblTempVendorCDR_20' ) end [2025-02-11 07:02:24] Production.INFO: ProcessCDR(1,14450073,1,1,2) [2025-02-11 07:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450073', 'tblTempUsageDetail_20' ) start [2025-02-11 07:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450073', 'tblTempUsageDetail_20' ) end [2025-02-11 07:02:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:02:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:02:28] Production.INFO: ==16040== Releasing lock... [2025-02-11 07:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:02:28] Production.INFO: 28.5 MB #Memory Used# [2025-02-11 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:03:05 [end_date_ymd] => 2025-02-11 07:03:05 [RateCDR] => 1 ) [2025-02-11 07:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:03:05' and `end` < '2025-02-11 07:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:03:19] Production.INFO: count ==133 [2025-02-11 07:03:19] Production.ERROR: pbx CDR StartTime 2025-02-11 04:03:05 - End Time 2025-02-11 07:03:05 [2025-02-11 07:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450078', 'tblTempUsageDetail_20' ) start [2025-02-11 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450078', 'tblTempUsageDetail_20' ) end [2025-02-11 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450078', 'tblTempVendorCDR_20' ) start [2025-02-11 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450078', 'tblTempVendorCDR_20' ) end [2025-02-11 07:03:19] Production.INFO: ProcessCDR(1,14450078,1,1,2) [2025-02-11 07:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450078', 'tblTempUsageDetail_20' ) start [2025-02-11 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450078', 'tblTempUsageDetail_20' ) end [2025-02-11 07:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:03:22] Production.INFO: ==16119== Releasing lock... [2025-02-11 07:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:03:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-11 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:04:05 [end_date_ymd] => 2025-02-11 07:04:05 [RateCDR] => 1 ) [2025-02-11 07:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:04:05' and `end` < '2025-02-11 07:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:04:19] Production.INFO: count ==133 [2025-02-11 07:04:19] Production.ERROR: pbx CDR StartTime 2025-02-11 04:04:05 - End Time 2025-02-11 07:04:05 [2025-02-11 07:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450083', 'tblTempUsageDetail_20' ) start [2025-02-11 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450083', 'tblTempUsageDetail_20' ) end [2025-02-11 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450083', 'tblTempVendorCDR_20' ) start [2025-02-11 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450083', 'tblTempVendorCDR_20' ) end [2025-02-11 07:04:19] Production.INFO: ProcessCDR(1,14450083,1,1,2) [2025-02-11 07:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450083', 'tblTempUsageDetail_20' ) start [2025-02-11 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450083', 'tblTempUsageDetail_20' ) end [2025-02-11 07:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:04:22] Production.INFO: ==16199== Releasing lock... [2025-02-11 07:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:04:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-11 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:05:05 [end_date_ymd] => 2025-02-11 07:05:05 [RateCDR] => 1 ) [2025-02-11 07:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:05:05' and `end` < '2025-02-11 07:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:05:19] Production.INFO: count ==133 [2025-02-11 07:05:19] Production.ERROR: pbx CDR StartTime 2025-02-11 04:05:05 - End Time 2025-02-11 07:05:05 [2025-02-11 07:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450088', 'tblTempUsageDetail_20' ) start [2025-02-11 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450088', 'tblTempUsageDetail_20' ) end [2025-02-11 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450088', 'tblTempVendorCDR_20' ) start [2025-02-11 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450088', 'tblTempVendorCDR_20' ) end [2025-02-11 07:05:19] Production.INFO: ProcessCDR(1,14450088,1,1,2) [2025-02-11 07:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450088', 'tblTempUsageDetail_20' ) start [2025-02-11 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450088', 'tblTempUsageDetail_20' ) end [2025-02-11 07:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:05:22] Production.INFO: ==16360== Releasing lock... [2025-02-11 07:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:05:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-11 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:06:05 [end_date_ymd] => 2025-02-11 07:06:05 [RateCDR] => 1 ) [2025-02-11 07:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:06:05' and `end` < '2025-02-11 07:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:06:19] Production.INFO: count ==133 [2025-02-11 07:06:19] Production.ERROR: pbx CDR StartTime 2025-02-11 04:06:05 - End Time 2025-02-11 07:06:05 [2025-02-11 07:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450093', 'tblTempUsageDetail_20' ) start [2025-02-11 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450093', 'tblTempUsageDetail_20' ) end [2025-02-11 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450093', 'tblTempVendorCDR_20' ) start [2025-02-11 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450093', 'tblTempVendorCDR_20' ) end [2025-02-11 07:06:19] Production.INFO: ProcessCDR(1,14450093,1,1,2) [2025-02-11 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450093', 'tblTempUsageDetail_20' ) start [2025-02-11 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450093', 'tblTempUsageDetail_20' ) end [2025-02-11 07:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:06:22] Production.INFO: ==16440== Releasing lock... [2025-02-11 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:06:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-11 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:07:05 [end_date_ymd] => 2025-02-11 07:07:05 [RateCDR] => 1 ) [2025-02-11 07:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:07:05' and `end` < '2025-02-11 07:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:07:19] Production.INFO: count ==133 [2025-02-11 07:07:19] Production.ERROR: pbx CDR StartTime 2025-02-11 04:07:05 - End Time 2025-02-11 07:07:05 [2025-02-11 07:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450098', 'tblTempUsageDetail_20' ) start [2025-02-11 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450098', 'tblTempUsageDetail_20' ) end [2025-02-11 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450098', 'tblTempVendorCDR_20' ) start [2025-02-11 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450098', 'tblTempVendorCDR_20' ) end [2025-02-11 07:07:19] Production.INFO: ProcessCDR(1,14450098,1,1,2) [2025-02-11 07:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450098', 'tblTempUsageDetail_20' ) start [2025-02-11 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450098', 'tblTempUsageDetail_20' ) end [2025-02-11 07:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:07:22] Production.INFO: ==16514== Releasing lock... [2025-02-11 07:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:07:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-11 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:08:05 [end_date_ymd] => 2025-02-11 07:08:05 [RateCDR] => 1 ) [2025-02-11 07:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:08:05' and `end` < '2025-02-11 07:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:08:19] Production.INFO: count ==133 [2025-02-11 07:08:19] Production.ERROR: pbx CDR StartTime 2025-02-11 04:08:05 - End Time 2025-02-11 07:08:05 [2025-02-11 07:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450103', 'tblTempUsageDetail_20' ) start [2025-02-11 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450103', 'tblTempUsageDetail_20' ) end [2025-02-11 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450103', 'tblTempVendorCDR_20' ) start [2025-02-11 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450103', 'tblTempVendorCDR_20' ) end [2025-02-11 07:08:19] Production.INFO: ProcessCDR(1,14450103,1,1,2) [2025-02-11 07:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450103', 'tblTempUsageDetail_20' ) start [2025-02-11 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450103', 'tblTempUsageDetail_20' ) end [2025-02-11 07:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:08:22] Production.INFO: ==16680== Releasing lock... [2025-02-11 07:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:08:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-11 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:09:05 [end_date_ymd] => 2025-02-11 07:09:05 [RateCDR] => 1 ) [2025-02-11 07:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:09:05' and `end` < '2025-02-11 07:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:09:19] Production.INFO: count ==133 [2025-02-11 07:09:19] Production.ERROR: pbx CDR StartTime 2025-02-11 04:09:05 - End Time 2025-02-11 07:09:05 [2025-02-11 07:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450108', 'tblTempUsageDetail_20' ) start [2025-02-11 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450108', 'tblTempUsageDetail_20' ) end [2025-02-11 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450108', 'tblTempVendorCDR_20' ) start [2025-02-11 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450108', 'tblTempVendorCDR_20' ) end [2025-02-11 07:09:19] Production.INFO: ProcessCDR(1,14450108,1,1,2) [2025-02-11 07:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450108', 'tblTempUsageDetail_20' ) start [2025-02-11 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450108', 'tblTempUsageDetail_20' ) end [2025-02-11 07:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:09:22] Production.INFO: ==16760== Releasing lock... [2025-02-11 07:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:09:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-11 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:10:06 [end_date_ymd] => 2025-02-11 07:10:06 [RateCDR] => 1 ) [2025-02-11 07:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:10:06' and `end` < '2025-02-11 07:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:10:19] Production.INFO: count ==135 [2025-02-11 07:10:19] Production.ERROR: pbx CDR StartTime 2025-02-11 04:10:06 - End Time 2025-02-11 07:10:06 [2025-02-11 07:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450113', 'tblTempUsageDetail_20' ) start [2025-02-11 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450113', 'tblTempUsageDetail_20' ) end [2025-02-11 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450113', 'tblTempVendorCDR_20' ) start [2025-02-11 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450113', 'tblTempVendorCDR_20' ) end [2025-02-11 07:10:19] Production.INFO: ProcessCDR(1,14450113,1,1,2) [2025-02-11 07:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450113', 'tblTempUsageDetail_20' ) start [2025-02-11 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450113', 'tblTempUsageDetail_20' ) end [2025-02-11 07:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:10:22] Production.INFO: ==16847== Releasing lock... [2025-02-11 07:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:10:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-11 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:11:05 [end_date_ymd] => 2025-02-11 07:11:05 [RateCDR] => 1 ) [2025-02-11 07:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:11:05' and `end` < '2025-02-11 07:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:11:19] Production.INFO: count ==135 [2025-02-11 07:11:19] Production.ERROR: pbx CDR StartTime 2025-02-11 04:11:05 - End Time 2025-02-11 07:11:05 [2025-02-11 07:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450119', 'tblTempUsageDetail_20' ) start [2025-02-11 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450119', 'tblTempUsageDetail_20' ) end [2025-02-11 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450119', 'tblTempVendorCDR_20' ) start [2025-02-11 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450119', 'tblTempVendorCDR_20' ) end [2025-02-11 07:11:19] Production.INFO: ProcessCDR(1,14450119,1,1,2) [2025-02-11 07:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450119', 'tblTempUsageDetail_20' ) start [2025-02-11 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450119', 'tblTempUsageDetail_20' ) end [2025-02-11 07:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:11:22] Production.INFO: ==16929== Releasing lock... [2025-02-11 07:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:11:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-11 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:12:05 [end_date_ymd] => 2025-02-11 07:12:05 [RateCDR] => 1 ) [2025-02-11 07:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:12:05' and `end` < '2025-02-11 07:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:12:20] Production.INFO: count ==135 [2025-02-11 07:12:20] Production.ERROR: pbx CDR StartTime 2025-02-11 04:12:05 - End Time 2025-02-11 07:12:05 [2025-02-11 07:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450124', 'tblTempUsageDetail_20' ) start [2025-02-11 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450124', 'tblTempUsageDetail_20' ) end [2025-02-11 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450124', 'tblTempVendorCDR_20' ) start [2025-02-11 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450124', 'tblTempVendorCDR_20' ) end [2025-02-11 07:12:20] Production.INFO: ProcessCDR(1,14450124,1,1,2) [2025-02-11 07:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450124', 'tblTempUsageDetail_20' ) start [2025-02-11 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450124', 'tblTempUsageDetail_20' ) end [2025-02-11 07:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:12:23] Production.INFO: ==17094== Releasing lock... [2025-02-11 07:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:12:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-11 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:13:05 [end_date_ymd] => 2025-02-11 07:13:05 [RateCDR] => 1 ) [2025-02-11 07:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:13:05' and `end` < '2025-02-11 07:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:13:20] Production.INFO: count ==135 [2025-02-11 07:13:20] Production.ERROR: pbx CDR StartTime 2025-02-11 04:13:05 - End Time 2025-02-11 07:13:05 [2025-02-11 07:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450129', 'tblTempUsageDetail_20' ) start [2025-02-11 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450129', 'tblTempUsageDetail_20' ) end [2025-02-11 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450129', 'tblTempVendorCDR_20' ) start [2025-02-11 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450129', 'tblTempVendorCDR_20' ) end [2025-02-11 07:13:20] Production.INFO: ProcessCDR(1,14450129,1,1,2) [2025-02-11 07:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450129', 'tblTempUsageDetail_20' ) start [2025-02-11 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450129', 'tblTempUsageDetail_20' ) end [2025-02-11 07:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:13:23] Production.INFO: ==17179== Releasing lock... [2025-02-11 07:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:13:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-11 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:14:05 [end_date_ymd] => 2025-02-11 07:14:05 [RateCDR] => 1 ) [2025-02-11 07:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:14:05' and `end` < '2025-02-11 07:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:14:19] Production.INFO: count ==135 [2025-02-11 07:14:19] Production.ERROR: pbx CDR StartTime 2025-02-11 04:14:05 - End Time 2025-02-11 07:14:05 [2025-02-11 07:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450134', 'tblTempUsageDetail_20' ) start [2025-02-11 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450134', 'tblTempUsageDetail_20' ) end [2025-02-11 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450134', 'tblTempVendorCDR_20' ) start [2025-02-11 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450134', 'tblTempVendorCDR_20' ) end [2025-02-11 07:14:19] Production.INFO: ProcessCDR(1,14450134,1,1,2) [2025-02-11 07:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450134', 'tblTempUsageDetail_20' ) start [2025-02-11 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450134', 'tblTempUsageDetail_20' ) end [2025-02-11 07:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:14:23] Production.INFO: ==17255== Releasing lock... [2025-02-11 07:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:14:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-11 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:15:05 [end_date_ymd] => 2025-02-11 07:15:05 [RateCDR] => 1 ) [2025-02-11 07:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:15:05' and `end` < '2025-02-11 07:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:15:21] Production.INFO: count ==139 [2025-02-11 07:15:21] Production.ERROR: pbx CDR StartTime 2025-02-11 04:15:05 - End Time 2025-02-11 07:15:05 [2025-02-11 07:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450139', 'tblTempUsageDetail_20' ) start [2025-02-11 07:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450139', 'tblTempUsageDetail_20' ) end [2025-02-11 07:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450139', 'tblTempVendorCDR_20' ) start [2025-02-11 07:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450139', 'tblTempVendorCDR_20' ) end [2025-02-11 07:15:21] Production.INFO: ProcessCDR(1,14450139,1,1,2) [2025-02-11 07:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450139', 'tblTempUsageDetail_20' ) start [2025-02-11 07:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450139', 'tblTempUsageDetail_20' ) end [2025-02-11 07:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:15:24] Production.INFO: ==17451== Releasing lock... [2025-02-11 07:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:15:24] Production.INFO: 28.5 MB #Memory Used# [2025-02-11 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:16:05 [end_date_ymd] => 2025-02-11 07:16:05 [RateCDR] => 1 ) [2025-02-11 07:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:16:05' and `end` < '2025-02-11 07:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:16:19] Production.INFO: count ==139 [2025-02-11 07:16:19] Production.ERROR: pbx CDR StartTime 2025-02-11 04:16:05 - End Time 2025-02-11 07:16:05 [2025-02-11 07:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450144', 'tblTempUsageDetail_20' ) start [2025-02-11 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450144', 'tblTempUsageDetail_20' ) end [2025-02-11 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450144', 'tblTempVendorCDR_20' ) start [2025-02-11 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450144', 'tblTempVendorCDR_20' ) end [2025-02-11 07:16:19] Production.INFO: ProcessCDR(1,14450144,1,1,2) [2025-02-11 07:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450144', 'tblTempUsageDetail_20' ) start [2025-02-11 07:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450144', 'tblTempUsageDetail_20' ) end [2025-02-11 07:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:16:22] Production.INFO: ==17530== Releasing lock... [2025-02-11 07:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:16:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-11 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:17:05 [end_date_ymd] => 2025-02-11 07:17:05 [RateCDR] => 1 ) [2025-02-11 07:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:17:05' and `end` < '2025-02-11 07:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:17:22] Production.INFO: count ==139 [2025-02-11 07:17:22] Production.ERROR: pbx CDR StartTime 2025-02-11 04:17:05 - End Time 2025-02-11 07:17:05 [2025-02-11 07:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450149', 'tblTempUsageDetail_20' ) start [2025-02-11 07:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450149', 'tblTempUsageDetail_20' ) end [2025-02-11 07:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450149', 'tblTempVendorCDR_20' ) start [2025-02-11 07:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450149', 'tblTempVendorCDR_20' ) end [2025-02-11 07:17:22] Production.INFO: ProcessCDR(1,14450149,1,1,2) [2025-02-11 07:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450149', 'tblTempUsageDetail_20' ) start [2025-02-11 07:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450149', 'tblTempUsageDetail_20' ) end [2025-02-11 07:17:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:17:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:17:25] Production.INFO: ==17610== Releasing lock... [2025-02-11 07:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:17:25] Production.INFO: 28.5 MB #Memory Used# [2025-02-11 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:18:05 [end_date_ymd] => 2025-02-11 07:18:05 [RateCDR] => 1 ) [2025-02-11 07:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:18:05' and `end` < '2025-02-11 07:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:18:19] Production.INFO: count ==139 [2025-02-11 07:18:19] Production.ERROR: pbx CDR StartTime 2025-02-11 04:18:05 - End Time 2025-02-11 07:18:05 [2025-02-11 07:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450154', 'tblTempUsageDetail_20' ) start [2025-02-11 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450154', 'tblTempUsageDetail_20' ) end [2025-02-11 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450154', 'tblTempVendorCDR_20' ) start [2025-02-11 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450154', 'tblTempVendorCDR_20' ) end [2025-02-11 07:18:19] Production.INFO: ProcessCDR(1,14450154,1,1,2) [2025-02-11 07:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450154', 'tblTempUsageDetail_20' ) start [2025-02-11 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450154', 'tblTempUsageDetail_20' ) end [2025-02-11 07:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:18:22] Production.INFO: ==17686== Releasing lock... [2025-02-11 07:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:18:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-11 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:19:05 [end_date_ymd] => 2025-02-11 07:19:05 [RateCDR] => 1 ) [2025-02-11 07:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:19:05' and `end` < '2025-02-11 07:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:19:19] Production.INFO: count ==139 [2025-02-11 07:19:19] Production.ERROR: pbx CDR StartTime 2025-02-11 04:19:05 - End Time 2025-02-11 07:19:05 [2025-02-11 07:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450159', 'tblTempUsageDetail_20' ) start [2025-02-11 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450159', 'tblTempUsageDetail_20' ) end [2025-02-11 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450159', 'tblTempVendorCDR_20' ) start [2025-02-11 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450159', 'tblTempVendorCDR_20' ) end [2025-02-11 07:19:19] Production.INFO: ProcessCDR(1,14450159,1,1,2) [2025-02-11 07:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450159', 'tblTempUsageDetail_20' ) start [2025-02-11 07:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450159', 'tblTempUsageDetail_20' ) end [2025-02-11 07:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:19:23] Production.INFO: ==17769== Releasing lock... [2025-02-11 07:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:19:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-11 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:20:06 [end_date_ymd] => 2025-02-11 07:20:06 [RateCDR] => 1 ) [2025-02-11 07:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:20:06' and `end` < '2025-02-11 07:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:20:19] Production.INFO: count ==146 [2025-02-11 07:20:19] Production.ERROR: pbx CDR StartTime 2025-02-11 04:20:06 - End Time 2025-02-11 07:20:06 [2025-02-11 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450164', 'tblTempUsageDetail_20' ) start [2025-02-11 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450164', 'tblTempUsageDetail_20' ) end [2025-02-11 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450164', 'tblTempVendorCDR_20' ) start [2025-02-11 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450164', 'tblTempVendorCDR_20' ) end [2025-02-11 07:20:19] Production.INFO: ProcessCDR(1,14450164,1,1,2) [2025-02-11 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450164', 'tblTempUsageDetail_20' ) start [2025-02-11 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450164', 'tblTempUsageDetail_20' ) end [2025-02-11 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:20:22] Production.INFO: ==17849== Releasing lock... [2025-02-11 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:20:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-11 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:21:05 [end_date_ymd] => 2025-02-11 07:21:05 [RateCDR] => 1 ) [2025-02-11 07:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:21:05' and `end` < '2025-02-11 07:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:21:18] Production.INFO: count ==150 [2025-02-11 07:21:18] Production.ERROR: pbx CDR StartTime 2025-02-11 04:21:05 - End Time 2025-02-11 07:21:05 [2025-02-11 07:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450170', 'tblTempUsageDetail_20' ) start [2025-02-11 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450170', 'tblTempUsageDetail_20' ) end [2025-02-11 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450170', 'tblTempVendorCDR_20' ) start [2025-02-11 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450170', 'tblTempVendorCDR_20' ) end [2025-02-11 07:21:18] Production.INFO: ProcessCDR(1,14450170,1,1,2) [2025-02-11 07:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450170', 'tblTempUsageDetail_20' ) start [2025-02-11 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450170', 'tblTempUsageDetail_20' ) end [2025-02-11 07:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:21:21] Production.INFO: ==17930== Releasing lock... [2025-02-11 07:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:21:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-11 07:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:22:06 [end_date_ymd] => 2025-02-11 07:22:06 [RateCDR] => 1 ) [2025-02-11 07:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:22:06' and `end` < '2025-02-11 07:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:22:19] Production.INFO: count ==156 [2025-02-11 07:22:19] Production.ERROR: pbx CDR StartTime 2025-02-11 04:22:06 - End Time 2025-02-11 07:22:06 [2025-02-11 07:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450175', 'tblTempUsageDetail_20' ) start [2025-02-11 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450175', 'tblTempUsageDetail_20' ) end [2025-02-11 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450175', 'tblTempVendorCDR_20' ) start [2025-02-11 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450175', 'tblTempVendorCDR_20' ) end [2025-02-11 07:22:19] Production.INFO: ProcessCDR(1,14450175,1,1,2) [2025-02-11 07:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450175', 'tblTempUsageDetail_20' ) start [2025-02-11 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450175', 'tblTempUsageDetail_20' ) end [2025-02-11 07:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:22:22] Production.INFO: ==18010== Releasing lock... [2025-02-11 07:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:22:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-11 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:23:05 [end_date_ymd] => 2025-02-11 07:23:05 [RateCDR] => 1 ) [2025-02-11 07:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:23:05' and `end` < '2025-02-11 07:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:23:18] Production.INFO: count ==157 [2025-02-11 07:23:18] Production.ERROR: pbx CDR StartTime 2025-02-11 04:23:05 - End Time 2025-02-11 07:23:05 [2025-02-11 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450180', 'tblTempUsageDetail_20' ) start [2025-02-11 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450180', 'tblTempUsageDetail_20' ) end [2025-02-11 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450180', 'tblTempVendorCDR_20' ) start [2025-02-11 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450180', 'tblTempVendorCDR_20' ) end [2025-02-11 07:23:18] Production.INFO: ProcessCDR(1,14450180,1,1,2) [2025-02-11 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450180', 'tblTempUsageDetail_20' ) start [2025-02-11 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450180', 'tblTempUsageDetail_20' ) end [2025-02-11 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:23:21] Production.INFO: ==18098== Releasing lock... [2025-02-11 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:23:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-11 07:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:24:06 [end_date_ymd] => 2025-02-11 07:24:06 [RateCDR] => 1 ) [2025-02-11 07:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:24:06' and `end` < '2025-02-11 07:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:24:19] Production.INFO: count ==163 [2025-02-11 07:24:19] Production.ERROR: pbx CDR StartTime 2025-02-11 04:24:06 - End Time 2025-02-11 07:24:06 [2025-02-11 07:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450185', 'tblTempUsageDetail_20' ) start [2025-02-11 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450185', 'tblTempUsageDetail_20' ) end [2025-02-11 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450185', 'tblTempVendorCDR_20' ) start [2025-02-11 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450185', 'tblTempVendorCDR_20' ) end [2025-02-11 07:24:19] Production.INFO: ProcessCDR(1,14450185,1,1,2) [2025-02-11 07:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450185', 'tblTempUsageDetail_20' ) start [2025-02-11 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450185', 'tblTempUsageDetail_20' ) end [2025-02-11 07:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:24:22] Production.INFO: ==18179== Releasing lock... [2025-02-11 07:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:24:22] Production.INFO: 29 MB #Memory Used# [2025-02-11 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:25:05 [end_date_ymd] => 2025-02-11 07:25:05 [RateCDR] => 1 ) [2025-02-11 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:25:05' and `end` < '2025-02-11 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:25:18] Production.INFO: count ==163 [2025-02-11 07:25:18] Production.ERROR: pbx CDR StartTime 2025-02-11 04:25:05 - End Time 2025-02-11 07:25:05 [2025-02-11 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450190', 'tblTempUsageDetail_20' ) start [2025-02-11 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450190', 'tblTempUsageDetail_20' ) end [2025-02-11 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450190', 'tblTempVendorCDR_20' ) start [2025-02-11 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450190', 'tblTempVendorCDR_20' ) end [2025-02-11 07:25:18] Production.INFO: ProcessCDR(1,14450190,1,1,2) [2025-02-11 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450190', 'tblTempUsageDetail_20' ) start [2025-02-11 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450190', 'tblTempUsageDetail_20' ) end [2025-02-11 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:25:21] Production.INFO: ==18261== Releasing lock... [2025-02-11 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:25:21] Production.INFO: 29 MB #Memory Used# [2025-02-11 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:26:05 [end_date_ymd] => 2025-02-11 07:26:05 [RateCDR] => 1 ) [2025-02-11 07:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:26:05' and `end` < '2025-02-11 07:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:26:19] Production.INFO: count ==163 [2025-02-11 07:26:19] Production.ERROR: pbx CDR StartTime 2025-02-11 04:26:05 - End Time 2025-02-11 07:26:05 [2025-02-11 07:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450195', 'tblTempUsageDetail_20' ) start [2025-02-11 07:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450195', 'tblTempUsageDetail_20' ) end [2025-02-11 07:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450195', 'tblTempVendorCDR_20' ) start [2025-02-11 07:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450195', 'tblTempVendorCDR_20' ) end [2025-02-11 07:26:19] Production.INFO: ProcessCDR(1,14450195,1,1,2) [2025-02-11 07:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450195', 'tblTempUsageDetail_20' ) start [2025-02-11 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450195', 'tblTempUsageDetail_20' ) end [2025-02-11 07:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:26:22] Production.INFO: ==18344== Releasing lock... [2025-02-11 07:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:26:22] Production.INFO: 29 MB #Memory Used# [2025-02-11 07:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:27:04 [end_date_ymd] => 2025-02-11 07:27:04 [RateCDR] => 1 ) [2025-02-11 07:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:27:04' and `end` < '2025-02-11 07:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:27:17] Production.INFO: count ==163 [2025-02-11 07:27:17] Production.ERROR: pbx CDR StartTime 2025-02-11 04:27:04 - End Time 2025-02-11 07:27:04 [2025-02-11 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450200', 'tblTempUsageDetail_20' ) start [2025-02-11 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450200', 'tblTempUsageDetail_20' ) end [2025-02-11 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450200', 'tblTempVendorCDR_20' ) start [2025-02-11 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450200', 'tblTempVendorCDR_20' ) end [2025-02-11 07:27:17] Production.INFO: ProcessCDR(1,14450200,1,1,2) [2025-02-11 07:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450200', 'tblTempUsageDetail_20' ) start [2025-02-11 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450200', 'tblTempUsageDetail_20' ) end [2025-02-11 07:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:27:20] Production.INFO: ==18427== Releasing lock... [2025-02-11 07:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:27:20] Production.INFO: 29 MB #Memory Used# [2025-02-11 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:28:05 [end_date_ymd] => 2025-02-11 07:28:05 [RateCDR] => 1 ) [2025-02-11 07:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:28:05' and `end` < '2025-02-11 07:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:28:18] Production.INFO: count ==167 [2025-02-11 07:28:18] Production.ERROR: pbx CDR StartTime 2025-02-11 04:28:05 - End Time 2025-02-11 07:28:05 [2025-02-11 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450205', 'tblTempUsageDetail_20' ) start [2025-02-11 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450205', 'tblTempUsageDetail_20' ) end [2025-02-11 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450205', 'tblTempVendorCDR_20' ) start [2025-02-11 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450205', 'tblTempVendorCDR_20' ) end [2025-02-11 07:28:18] Production.INFO: ProcessCDR(1,14450205,1,1,2) [2025-02-11 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450205', 'tblTempUsageDetail_20' ) start [2025-02-11 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450205', 'tblTempUsageDetail_20' ) end [2025-02-11 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:28:21] Production.INFO: ==18506== Releasing lock... [2025-02-11 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:28:21] Production.INFO: 29 MB #Memory Used# [2025-02-11 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:29:05 [end_date_ymd] => 2025-02-11 07:29:05 [RateCDR] => 1 ) [2025-02-11 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-02-11 04:29:05' and `end` < '2025-02-11 07:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:29:18] Production.INFO: count ==167 [2025-02-11 07:29:18] Production.ERROR: pbx CDR StartTime 2025-02-11 04:29:05 - End Time 2025-02-11 07:29:05 [2025-02-11 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450210', 'tblTempUsageDetail_20' ) start [2025-02-11 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450210', 'tblTempUsageDetail_20' ) end [2025-02-11 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450210', 'tblTempVendorCDR_20' ) start [2025-02-11 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450210', 'tblTempVendorCDR_20' ) end [2025-02-11 07:29:18] Production.INFO: ProcessCDR(1,14450210,1,1,2) [2025-02-11 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450210', 'tblTempUsageDetail_20' ) start [2025-02-11 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450210', 'tblTempUsageDetail_20' ) end [2025-02-11 07:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:29:21] Production.INFO: ==18583== Releasing lock... [2025-02-11 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:29:21] Production.INFO: 29 MB #Memory Used# [2025-02-11 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:30:06 [end_date_ymd] => 2025-02-11 07:30:06 [RateCDR] => 1 ) [2025-02-11 07:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:30:06' and `end` < '2025-02-11 07:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:30:19] Production.INFO: count ==168 [2025-02-11 07:30:19] Production.ERROR: pbx CDR StartTime 2025-02-11 04:30:06 - End Time 2025-02-11 07:30:06 [2025-02-11 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450216', 'tblTempUsageDetail_20' ) start [2025-02-11 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450216', 'tblTempUsageDetail_20' ) end [2025-02-11 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450216', 'tblTempVendorCDR_20' ) start [2025-02-11 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450216', 'tblTempVendorCDR_20' ) end [2025-02-11 07:30:19] Production.INFO: ProcessCDR(1,14450216,1,1,2) [2025-02-11 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450216', 'tblTempUsageDetail_20' ) start [2025-02-11 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450216', 'tblTempUsageDetail_20' ) end [2025-02-11 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:30:22] Production.INFO: ==18682== Releasing lock... [2025-02-11 07:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:30:22] Production.INFO: 29 MB #Memory Used# [2025-02-11 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:31:05 [end_date_ymd] => 2025-02-11 07:31:05 [RateCDR] => 1 ) [2025-02-11 07:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:31:05' and `end` < '2025-02-11 07:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:31:18] Production.INFO: count ==174 [2025-02-11 07:31:18] Production.ERROR: pbx CDR StartTime 2025-02-11 04:31:05 - End Time 2025-02-11 07:31:05 [2025-02-11 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450221', 'tblTempUsageDetail_20' ) start [2025-02-11 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450221', 'tblTempUsageDetail_20' ) end [2025-02-11 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450221', 'tblTempVendorCDR_20' ) start [2025-02-11 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450221', 'tblTempVendorCDR_20' ) end [2025-02-11 07:31:18] Production.INFO: ProcessCDR(1,14450221,1,1,2) [2025-02-11 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450221', 'tblTempUsageDetail_20' ) start [2025-02-11 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450221', 'tblTempUsageDetail_20' ) end [2025-02-11 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:31:21] Production.INFO: ==18803== Releasing lock... [2025-02-11 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:31:21] Production.INFO: 29 MB #Memory Used# [2025-02-11 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:32:05 [end_date_ymd] => 2025-02-11 07:32:05 [RateCDR] => 1 ) [2025-02-11 07:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:32:05' and `end` < '2025-02-11 07:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:32:18] Production.INFO: count ==174 [2025-02-11 07:32:18] Production.ERROR: pbx CDR StartTime 2025-02-11 04:32:05 - End Time 2025-02-11 07:32:05 [2025-02-11 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450226', 'tblTempUsageDetail_20' ) start [2025-02-11 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450226', 'tblTempUsageDetail_20' ) end [2025-02-11 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450226', 'tblTempVendorCDR_20' ) start [2025-02-11 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450226', 'tblTempVendorCDR_20' ) end [2025-02-11 07:32:18] Production.INFO: ProcessCDR(1,14450226,1,1,2) [2025-02-11 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450226', 'tblTempUsageDetail_20' ) start [2025-02-11 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450226', 'tblTempUsageDetail_20' ) end [2025-02-11 07:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:32:21] Production.INFO: ==18888== Releasing lock... [2025-02-11 07:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:32:21] Production.INFO: 29 MB #Memory Used# [2025-02-11 07:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:33:04 [end_date_ymd] => 2025-02-11 07:33:04 [RateCDR] => 1 ) [2025-02-11 07:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:33:04' and `end` < '2025-02-11 07:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:33:17] Production.INFO: count ==174 [2025-02-11 07:33:17] Production.ERROR: pbx CDR StartTime 2025-02-11 04:33:04 - End Time 2025-02-11 07:33:04 [2025-02-11 07:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450231', 'tblTempUsageDetail_20' ) start [2025-02-11 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450231', 'tblTempUsageDetail_20' ) end [2025-02-11 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450231', 'tblTempVendorCDR_20' ) start [2025-02-11 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450231', 'tblTempVendorCDR_20' ) end [2025-02-11 07:33:17] Production.INFO: ProcessCDR(1,14450231,1,1,2) [2025-02-11 07:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450231', 'tblTempUsageDetail_20' ) start [2025-02-11 07:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450231', 'tblTempUsageDetail_20' ) end [2025-02-11 07:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:33:20] Production.INFO: ==18963== Releasing lock... [2025-02-11 07:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:33:20] Production.INFO: 29 MB #Memory Used# [2025-02-11 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:34:05 [end_date_ymd] => 2025-02-11 07:34:05 [RateCDR] => 1 ) [2025-02-11 07:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:34:05' and `end` < '2025-02-11 07:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:34:18] Production.INFO: count ==174 [2025-02-11 07:34:18] Production.ERROR: pbx CDR StartTime 2025-02-11 04:34:05 - End Time 2025-02-11 07:34:05 [2025-02-11 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450236', 'tblTempUsageDetail_20' ) start [2025-02-11 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450236', 'tblTempUsageDetail_20' ) end [2025-02-11 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450236', 'tblTempVendorCDR_20' ) start [2025-02-11 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450236', 'tblTempVendorCDR_20' ) end [2025-02-11 07:34:18] Production.INFO: ProcessCDR(1,14450236,1,1,2) [2025-02-11 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450236', 'tblTempUsageDetail_20' ) start [2025-02-11 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450236', 'tblTempUsageDetail_20' ) end [2025-02-11 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:34:21] Production.INFO: ==19059== Releasing lock... [2025-02-11 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:34:21] Production.INFO: 29 MB #Memory Used# [2025-02-11 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:35:05 [end_date_ymd] => 2025-02-11 07:35:05 [RateCDR] => 1 ) [2025-02-11 07:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:35:05' and `end` < '2025-02-11 07:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:35:18] Production.INFO: count ==184 [2025-02-11 07:35:18] Production.ERROR: pbx CDR StartTime 2025-02-11 04:35:05 - End Time 2025-02-11 07:35:05 [2025-02-11 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450241', 'tblTempUsageDetail_20' ) start [2025-02-11 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450241', 'tblTempUsageDetail_20' ) end [2025-02-11 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450241', 'tblTempVendorCDR_20' ) start [2025-02-11 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450241', 'tblTempVendorCDR_20' ) end [2025-02-11 07:35:18] Production.INFO: ProcessCDR(1,14450241,1,1,2) [2025-02-11 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450241', 'tblTempUsageDetail_20' ) start [2025-02-11 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450241', 'tblTempUsageDetail_20' ) end [2025-02-11 07:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:35:22] Production.INFO: ==19135== Releasing lock... [2025-02-11 07:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:35:22] Production.INFO: 29 MB #Memory Used# [2025-02-11 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:36:05 [end_date_ymd] => 2025-02-11 07:36:05 [RateCDR] => 1 ) [2025-02-11 07:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:36:05' and `end` < '2025-02-11 07:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:36:18] Production.INFO: count ==188 [2025-02-11 07:36:18] Production.ERROR: pbx CDR StartTime 2025-02-11 04:36:05 - End Time 2025-02-11 07:36:05 [2025-02-11 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450246', 'tblTempUsageDetail_20' ) start [2025-02-11 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450246', 'tblTempUsageDetail_20' ) end [2025-02-11 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450246', 'tblTempVendorCDR_20' ) start [2025-02-11 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450246', 'tblTempVendorCDR_20' ) end [2025-02-11 07:36:18] Production.INFO: ProcessCDR(1,14450246,1,1,2) [2025-02-11 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450246', 'tblTempUsageDetail_20' ) start [2025-02-11 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450246', 'tblTempUsageDetail_20' ) end [2025-02-11 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:36:21] Production.INFO: ==19220== Releasing lock... [2025-02-11 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:36:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-11 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:37:05 [end_date_ymd] => 2025-02-11 07:37:05 [RateCDR] => 1 ) [2025-02-11 07:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:37:05' and `end` < '2025-02-11 07:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:37:18] Production.INFO: count ==193 [2025-02-11 07:37:18] Production.ERROR: pbx CDR StartTime 2025-02-11 04:37:05 - End Time 2025-02-11 07:37:05 [2025-02-11 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450251', 'tblTempUsageDetail_20' ) start [2025-02-11 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450251', 'tblTempUsageDetail_20' ) end [2025-02-11 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450251', 'tblTempVendorCDR_20' ) start [2025-02-11 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450251', 'tblTempVendorCDR_20' ) end [2025-02-11 07:37:18] Production.INFO: ProcessCDR(1,14450251,1,1,2) [2025-02-11 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450251', 'tblTempUsageDetail_20' ) start [2025-02-11 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450251', 'tblTempUsageDetail_20' ) end [2025-02-11 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:37:21] Production.INFO: ==19294== Releasing lock... [2025-02-11 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:37:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-11 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:38:05 [end_date_ymd] => 2025-02-11 07:38:05 [RateCDR] => 1 ) [2025-02-11 07:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:38:05' and `end` < '2025-02-11 07:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:38:18] Production.INFO: count ==193 [2025-02-11 07:38:18] Production.ERROR: pbx CDR StartTime 2025-02-11 04:38:05 - End Time 2025-02-11 07:38:05 [2025-02-11 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450256', 'tblTempUsageDetail_20' ) start [2025-02-11 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450256', 'tblTempUsageDetail_20' ) end [2025-02-11 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450256', 'tblTempVendorCDR_20' ) start [2025-02-11 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450256', 'tblTempVendorCDR_20' ) end [2025-02-11 07:38:18] Production.INFO: ProcessCDR(1,14450256,1,1,2) [2025-02-11 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450256', 'tblTempUsageDetail_20' ) start [2025-02-11 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450256', 'tblTempUsageDetail_20' ) end [2025-02-11 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:38:21] Production.INFO: ==19378== Releasing lock... [2025-02-11 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:38:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-11 07:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:39:04 [end_date_ymd] => 2025-02-11 07:39:04 [RateCDR] => 1 ) [2025-02-11 07:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:39:04' and `end` < '2025-02-11 07:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:39:17] Production.INFO: count ==193 [2025-02-11 07:39:17] Production.ERROR: pbx CDR StartTime 2025-02-11 04:39:04 - End Time 2025-02-11 07:39:04 [2025-02-11 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450261', 'tblTempUsageDetail_20' ) start [2025-02-11 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450261', 'tblTempUsageDetail_20' ) end [2025-02-11 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450261', 'tblTempVendorCDR_20' ) start [2025-02-11 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450261', 'tblTempVendorCDR_20' ) end [2025-02-11 07:39:17] Production.INFO: ProcessCDR(1,14450261,1,1,2) [2025-02-11 07:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450261', 'tblTempUsageDetail_20' ) start [2025-02-11 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450261', 'tblTempUsageDetail_20' ) end [2025-02-11 07:39:20] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:39:20] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:39:20] Production.INFO: ==19458== Releasing lock... [2025-02-11 07:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:39:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-11 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:40:06 [end_date_ymd] => 2025-02-11 07:40:06 [RateCDR] => 1 ) [2025-02-11 07:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:40:06' and `end` < '2025-02-11 07:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:40:19] Production.INFO: count ==195 [2025-02-11 07:40:19] Production.ERROR: pbx CDR StartTime 2025-02-11 04:40:06 - End Time 2025-02-11 07:40:06 [2025-02-11 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450267', 'tblTempUsageDetail_20' ) start [2025-02-11 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450267', 'tblTempUsageDetail_20' ) end [2025-02-11 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450267', 'tblTempVendorCDR_20' ) start [2025-02-11 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450267', 'tblTempVendorCDR_20' ) end [2025-02-11 07:40:19] Production.INFO: ProcessCDR(1,14450267,1,1,2) [2025-02-11 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450267', 'tblTempUsageDetail_20' ) start [2025-02-11 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450267', 'tblTempUsageDetail_20' ) end [2025-02-11 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:40:22] Production.INFO: ==19539== Releasing lock... [2025-02-11 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:40:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-11 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:41:05 [end_date_ymd] => 2025-02-11 07:41:05 [RateCDR] => 1 ) [2025-02-11 07:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:41:05' and `end` < '2025-02-11 07:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:41:19] Production.INFO: count ==195 [2025-02-11 07:41:19] Production.ERROR: pbx CDR StartTime 2025-02-11 04:41:05 - End Time 2025-02-11 07:41:05 [2025-02-11 07:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450272', 'tblTempUsageDetail_20' ) start [2025-02-11 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450272', 'tblTempUsageDetail_20' ) end [2025-02-11 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450272', 'tblTempVendorCDR_20' ) start [2025-02-11 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450272', 'tblTempVendorCDR_20' ) end [2025-02-11 07:41:19] Production.INFO: ProcessCDR(1,14450272,1,1,2) [2025-02-11 07:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450272', 'tblTempUsageDetail_20' ) start [2025-02-11 07:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450272', 'tblTempUsageDetail_20' ) end [2025-02-11 07:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:41:23] Production.INFO: ==19627== Releasing lock... [2025-02-11 07:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:41:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-11 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:42:05 [end_date_ymd] => 2025-02-11 07:42:05 [RateCDR] => 1 ) [2025-02-11 07:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:42:05' and `end` < '2025-02-11 07:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:42:18] Production.INFO: count ==195 [2025-02-11 07:42:18] Production.ERROR: pbx CDR StartTime 2025-02-11 04:42:05 - End Time 2025-02-11 07:42:05 [2025-02-11 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450277', 'tblTempUsageDetail_20' ) start [2025-02-11 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450277', 'tblTempUsageDetail_20' ) end [2025-02-11 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450277', 'tblTempVendorCDR_20' ) start [2025-02-11 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450277', 'tblTempVendorCDR_20' ) end [2025-02-11 07:42:18] Production.INFO: ProcessCDR(1,14450277,1,1,2) [2025-02-11 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450277', 'tblTempUsageDetail_20' ) start [2025-02-11 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450277', 'tblTempUsageDetail_20' ) end [2025-02-11 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:42:21] Production.INFO: ==19724== Releasing lock... [2025-02-11 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:42:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-11 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:43:05 [end_date_ymd] => 2025-02-11 07:43:05 [RateCDR] => 1 ) [2025-02-11 07:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:43:05' and `end` < '2025-02-11 07:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:43:19] Production.INFO: count ==198 [2025-02-11 07:43:19] Production.ERROR: pbx CDR StartTime 2025-02-11 04:43:05 - End Time 2025-02-11 07:43:05 [2025-02-11 07:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450282', 'tblTempUsageDetail_20' ) start [2025-02-11 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450282', 'tblTempUsageDetail_20' ) end [2025-02-11 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450282', 'tblTempVendorCDR_20' ) start [2025-02-11 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450282', 'tblTempVendorCDR_20' ) end [2025-02-11 07:43:19] Production.INFO: ProcessCDR(1,14450282,1,1,2) [2025-02-11 07:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450282', 'tblTempUsageDetail_20' ) start [2025-02-11 07:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450282', 'tblTempUsageDetail_20' ) end [2025-02-11 07:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:43:23] Production.INFO: ==19832== Releasing lock... [2025-02-11 07:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:43:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:44:05 [end_date_ymd] => 2025-02-11 07:44:05 [RateCDR] => 1 ) [2025-02-11 07:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:44:05' and `end` < '2025-02-11 07:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:44:17] Production.INFO: count ==198 [2025-02-11 07:44:17] Production.ERROR: pbx CDR StartTime 2025-02-11 04:44:05 - End Time 2025-02-11 07:44:05 [2025-02-11 07:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450287', 'tblTempUsageDetail_20' ) start [2025-02-11 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450287', 'tblTempUsageDetail_20' ) end [2025-02-11 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450287', 'tblTempVendorCDR_20' ) start [2025-02-11 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450287', 'tblTempVendorCDR_20' ) end [2025-02-11 07:44:17] Production.INFO: ProcessCDR(1,14450287,1,1,2) [2025-02-11 07:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450287', 'tblTempUsageDetail_20' ) start [2025-02-11 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450287', 'tblTempUsageDetail_20' ) end [2025-02-11 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:44:21] Production.INFO: ==19938== Releasing lock... [2025-02-11 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:44:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:45:05 [end_date_ymd] => 2025-02-11 07:45:05 [RateCDR] => 1 ) [2025-02-11 07:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:45:05' and `end` < '2025-02-11 07:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:45:18] Production.INFO: count ==198 [2025-02-11 07:45:18] Production.ERROR: pbx CDR StartTime 2025-02-11 04:45:05 - End Time 2025-02-11 07:45:05 [2025-02-11 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450292', 'tblTempUsageDetail_20' ) start [2025-02-11 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450292', 'tblTempUsageDetail_20' ) end [2025-02-11 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450292', 'tblTempVendorCDR_20' ) start [2025-02-11 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450292', 'tblTempVendorCDR_20' ) end [2025-02-11 07:45:18] Production.INFO: ProcessCDR(1,14450292,1,1,2) [2025-02-11 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450292', 'tblTempUsageDetail_20' ) start [2025-02-11 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450292', 'tblTempUsageDetail_20' ) end [2025-02-11 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:45:21] Production.INFO: ==20071== Releasing lock... [2025-02-11 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:45:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:46:05 [end_date_ymd] => 2025-02-11 07:46:05 [RateCDR] => 1 ) [2025-02-11 07:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:46:05' and `end` < '2025-02-11 07:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:46:18] Production.INFO: count ==204 [2025-02-11 07:46:18] Production.ERROR: pbx CDR StartTime 2025-02-11 04:46:05 - End Time 2025-02-11 07:46:05 [2025-02-11 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450297', 'tblTempUsageDetail_20' ) start [2025-02-11 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450297', 'tblTempUsageDetail_20' ) end [2025-02-11 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450297', 'tblTempVendorCDR_20' ) start [2025-02-11 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450297', 'tblTempVendorCDR_20' ) end [2025-02-11 07:46:18] Production.INFO: ProcessCDR(1,14450297,1,1,2) [2025-02-11 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450297', 'tblTempUsageDetail_20' ) start [2025-02-11 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450297', 'tblTempUsageDetail_20' ) end [2025-02-11 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:46:21] Production.INFO: ==20209== Releasing lock... [2025-02-11 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:46:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:47:05 [end_date_ymd] => 2025-02-11 07:47:05 [RateCDR] => 1 ) [2025-02-11 07:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:47:05' and `end` < '2025-02-11 07:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:47:18] Production.INFO: count ==204 [2025-02-11 07:47:18] Production.ERROR: pbx CDR StartTime 2025-02-11 04:47:05 - End Time 2025-02-11 07:47:05 [2025-02-11 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450302', 'tblTempUsageDetail_20' ) start [2025-02-11 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450302', 'tblTempUsageDetail_20' ) end [2025-02-11 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450302', 'tblTempVendorCDR_20' ) start [2025-02-11 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450302', 'tblTempVendorCDR_20' ) end [2025-02-11 07:47:18] Production.INFO: ProcessCDR(1,14450302,1,1,2) [2025-02-11 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450302', 'tblTempUsageDetail_20' ) start [2025-02-11 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450302', 'tblTempUsageDetail_20' ) end [2025-02-11 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:47:21] Production.INFO: ==20315== Releasing lock... [2025-02-11 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:47:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 07:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:48:06 [end_date_ymd] => 2025-02-11 07:48:06 [RateCDR] => 1 ) [2025-02-11 07:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:48:06' and `end` < '2025-02-11 07:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:48:19] Production.INFO: count ==204 [2025-02-11 07:48:19] Production.ERROR: pbx CDR StartTime 2025-02-11 04:48:06 - End Time 2025-02-11 07:48:06 [2025-02-11 07:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450307', 'tblTempUsageDetail_20' ) start [2025-02-11 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450307', 'tblTempUsageDetail_20' ) end [2025-02-11 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450307', 'tblTempVendorCDR_20' ) start [2025-02-11 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450307', 'tblTempVendorCDR_20' ) end [2025-02-11 07:48:19] Production.INFO: ProcessCDR(1,14450307,1,1,2) [2025-02-11 07:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450307', 'tblTempUsageDetail_20' ) start [2025-02-11 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450307', 'tblTempUsageDetail_20' ) end [2025-02-11 07:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:48:22] Production.INFO: ==20413== Releasing lock... [2025-02-11 07:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:48:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:49:05 [end_date_ymd] => 2025-02-11 07:49:05 [RateCDR] => 1 ) [2025-02-11 07:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:49:05' and `end` < '2025-02-11 07:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:49:20] Production.INFO: count ==204 [2025-02-11 07:49:20] Production.ERROR: pbx CDR StartTime 2025-02-11 04:49:05 - End Time 2025-02-11 07:49:05 [2025-02-11 07:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450312', 'tblTempUsageDetail_20' ) start [2025-02-11 07:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450312', 'tblTempUsageDetail_20' ) end [2025-02-11 07:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450312', 'tblTempVendorCDR_20' ) start [2025-02-11 07:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450312', 'tblTempVendorCDR_20' ) end [2025-02-11 07:49:20] Production.INFO: ProcessCDR(1,14450312,1,1,2) [2025-02-11 07:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450312', 'tblTempUsageDetail_20' ) start [2025-02-11 07:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450312', 'tblTempUsageDetail_20' ) end [2025-02-11 07:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:49:23] Production.INFO: ==20518== Releasing lock... [2025-02-11 07:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:49:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 07:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:50:07 [end_date_ymd] => 2025-02-11 07:50:07 [RateCDR] => 1 ) [2025-02-11 07:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:50:07' and `end` < '2025-02-11 07:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:50:20] Production.INFO: count ==204 [2025-02-11 07:50:21] Production.ERROR: pbx CDR StartTime 2025-02-11 04:50:07 - End Time 2025-02-11 07:50:07 [2025-02-11 07:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450318', 'tblTempUsageDetail_20' ) start [2025-02-11 07:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450318', 'tblTempUsageDetail_20' ) end [2025-02-11 07:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450318', 'tblTempVendorCDR_20' ) start [2025-02-11 07:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450318', 'tblTempVendorCDR_20' ) end [2025-02-11 07:50:21] Production.INFO: ProcessCDR(1,14450318,1,1,2) [2025-02-11 07:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450318', 'tblTempUsageDetail_20' ) start [2025-02-11 07:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450318', 'tblTempUsageDetail_20' ) end [2025-02-11 07:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:50:24] Production.INFO: ==20614== Releasing lock... [2025-02-11 07:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:50:24] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:51:05 [end_date_ymd] => 2025-02-11 07:51:05 [RateCDR] => 1 ) [2025-02-11 07:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:51:05' and `end` < '2025-02-11 07:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:51:18] Production.INFO: count ==204 [2025-02-11 07:51:18] Production.ERROR: pbx CDR StartTime 2025-02-11 04:51:05 - End Time 2025-02-11 07:51:05 [2025-02-11 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450323', 'tblTempUsageDetail_20' ) start [2025-02-11 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450323', 'tblTempUsageDetail_20' ) end [2025-02-11 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450323', 'tblTempVendorCDR_20' ) start [2025-02-11 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450323', 'tblTempVendorCDR_20' ) end [2025-02-11 07:51:18] Production.INFO: ProcessCDR(1,14450323,1,1,2) [2025-02-11 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450323', 'tblTempUsageDetail_20' ) start [2025-02-11 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450323', 'tblTempUsageDetail_20' ) end [2025-02-11 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:51:21] Production.INFO: ==20722== Releasing lock... [2025-02-11 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:51:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:52:05 [end_date_ymd] => 2025-02-11 07:52:05 [RateCDR] => 1 ) [2025-02-11 07:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:52:05' and `end` < '2025-02-11 07:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:52:19] Production.INFO: count ==204 [2025-02-11 07:52:19] Production.ERROR: pbx CDR StartTime 2025-02-11 04:52:05 - End Time 2025-02-11 07:52:05 [2025-02-11 07:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450328', 'tblTempUsageDetail_20' ) start [2025-02-11 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450328', 'tblTempUsageDetail_20' ) end [2025-02-11 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450328', 'tblTempVendorCDR_20' ) start [2025-02-11 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450328', 'tblTempVendorCDR_20' ) end [2025-02-11 07:52:19] Production.INFO: ProcessCDR(1,14450328,1,1,2) [2025-02-11 07:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450328', 'tblTempUsageDetail_20' ) start [2025-02-11 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450328', 'tblTempUsageDetail_20' ) end [2025-02-11 07:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:52:22] Production.INFO: ==20818== Releasing lock... [2025-02-11 07:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:52:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 07:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:53:04 [end_date_ymd] => 2025-02-11 07:53:04 [RateCDR] => 1 ) [2025-02-11 07:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:53:04' and `end` < '2025-02-11 07:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:53:17] Production.INFO: count ==204 [2025-02-11 07:53:17] Production.ERROR: pbx CDR StartTime 2025-02-11 04:53:04 - End Time 2025-02-11 07:53:04 [2025-02-11 07:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450333', 'tblTempUsageDetail_20' ) start [2025-02-11 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450333', 'tblTempUsageDetail_20' ) end [2025-02-11 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450333', 'tblTempVendorCDR_20' ) start [2025-02-11 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450333', 'tblTempVendorCDR_20' ) end [2025-02-11 07:53:17] Production.INFO: ProcessCDR(1,14450333,1,1,2) [2025-02-11 07:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450333', 'tblTempUsageDetail_20' ) start [2025-02-11 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450333', 'tblTempUsageDetail_20' ) end [2025-02-11 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:53:21] Production.INFO: ==20936== Releasing lock... [2025-02-11 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:53:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:54:05 [end_date_ymd] => 2025-02-11 07:54:05 [RateCDR] => 1 ) [2025-02-11 07:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:54:05' and `end` < '2025-02-11 07:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:54:18] Production.INFO: count ==204 [2025-02-11 07:54:18] Production.ERROR: pbx CDR StartTime 2025-02-11 04:54:05 - End Time 2025-02-11 07:54:05 [2025-02-11 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450338', 'tblTempUsageDetail_20' ) start [2025-02-11 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450338', 'tblTempUsageDetail_20' ) end [2025-02-11 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450338', 'tblTempVendorCDR_20' ) start [2025-02-11 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450338', 'tblTempVendorCDR_20' ) end [2025-02-11 07:54:18] Production.INFO: ProcessCDR(1,14450338,1,1,2) [2025-02-11 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450338', 'tblTempUsageDetail_20' ) start [2025-02-11 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450338', 'tblTempUsageDetail_20' ) end [2025-02-11 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:54:21] Production.INFO: ==21063== Releasing lock... [2025-02-11 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:54:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:55:05 [end_date_ymd] => 2025-02-11 07:55:05 [RateCDR] => 1 ) [2025-02-11 07:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:55:05' and `end` < '2025-02-11 07:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:55:18] Production.INFO: count ==204 [2025-02-11 07:55:18] Production.ERROR: pbx CDR StartTime 2025-02-11 04:55:05 - End Time 2025-02-11 07:55:05 [2025-02-11 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450343', 'tblTempUsageDetail_20' ) start [2025-02-11 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450343', 'tblTempUsageDetail_20' ) end [2025-02-11 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450343', 'tblTempVendorCDR_20' ) start [2025-02-11 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450343', 'tblTempVendorCDR_20' ) end [2025-02-11 07:55:18] Production.INFO: ProcessCDR(1,14450343,1,1,2) [2025-02-11 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450343', 'tblTempUsageDetail_20' ) start [2025-02-11 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450343', 'tblTempUsageDetail_20' ) end [2025-02-11 07:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:55:21] Production.INFO: ==21177== Releasing lock... [2025-02-11 07:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:55:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:56:05 [end_date_ymd] => 2025-02-11 07:56:05 [RateCDR] => 1 ) [2025-02-11 07:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:56:05' and `end` < '2025-02-11 07:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:56:18] Production.INFO: count ==204 [2025-02-11 07:56:18] Production.ERROR: pbx CDR StartTime 2025-02-11 04:56:05 - End Time 2025-02-11 07:56:05 [2025-02-11 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450348', 'tblTempUsageDetail_20' ) start [2025-02-11 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450348', 'tblTempUsageDetail_20' ) end [2025-02-11 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450348', 'tblTempVendorCDR_20' ) start [2025-02-11 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450348', 'tblTempVendorCDR_20' ) end [2025-02-11 07:56:18] Production.INFO: ProcessCDR(1,14450348,1,1,2) [2025-02-11 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450348', 'tblTempUsageDetail_20' ) start [2025-02-11 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450348', 'tblTempUsageDetail_20' ) end [2025-02-11 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:56:21] Production.INFO: ==21264== Releasing lock... [2025-02-11 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:56:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:57:05 [end_date_ymd] => 2025-02-11 07:57:05 [RateCDR] => 1 ) [2025-02-11 07:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:57:05' and `end` < '2025-02-11 07:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:57:18] Production.INFO: count ==205 [2025-02-11 07:57:18] Production.ERROR: pbx CDR StartTime 2025-02-11 04:57:05 - End Time 2025-02-11 07:57:05 [2025-02-11 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450353', 'tblTempUsageDetail_20' ) start [2025-02-11 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450353', 'tblTempUsageDetail_20' ) end [2025-02-11 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450353', 'tblTempVendorCDR_20' ) start [2025-02-11 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450353', 'tblTempVendorCDR_20' ) end [2025-02-11 07:57:18] Production.INFO: ProcessCDR(1,14450353,1,1,2) [2025-02-11 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450353', 'tblTempUsageDetail_20' ) start [2025-02-11 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450353', 'tblTempUsageDetail_20' ) end [2025-02-11 07:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:57:22] Production.INFO: ==21358== Releasing lock... [2025-02-11 07:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:57:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 07:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:58:06 [end_date_ymd] => 2025-02-11 07:58:06 [RateCDR] => 1 ) [2025-02-11 07:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:58:06' and `end` < '2025-02-11 07:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:58:20] Production.INFO: count ==210 [2025-02-11 07:58:20] Production.ERROR: pbx CDR StartTime 2025-02-11 04:58:06 - End Time 2025-02-11 07:58:06 [2025-02-11 07:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450358', 'tblTempUsageDetail_20' ) start [2025-02-11 07:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450358', 'tblTempUsageDetail_20' ) end [2025-02-11 07:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450358', 'tblTempVendorCDR_20' ) start [2025-02-11 07:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450358', 'tblTempVendorCDR_20' ) end [2025-02-11 07:58:20] Production.INFO: ProcessCDR(1,14450358,1,1,2) [2025-02-11 07:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450358', 'tblTempUsageDetail_20' ) start [2025-02-11 07:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450358', 'tblTempUsageDetail_20' ) end [2025-02-11 07:58:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:58:24] Production.INFO: ==21465== Releasing lock... [2025-02-11 07:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:58:24] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 04:59:05 [end_date_ymd] => 2025-02-11 07:59:05 [RateCDR] => 1 ) [2025-02-11 07:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 04:59:05' and `end` < '2025-02-11 07:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 07:59:17] Production.INFO: count ==215 [2025-02-11 07:59:17] Production.ERROR: pbx CDR StartTime 2025-02-11 04:59:05 - End Time 2025-02-11 07:59:05 [2025-02-11 07:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450363', 'tblTempUsageDetail_20' ) start [2025-02-11 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450363', 'tblTempUsageDetail_20' ) end [2025-02-11 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450363', 'tblTempVendorCDR_20' ) start [2025-02-11 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450363', 'tblTempVendorCDR_20' ) end [2025-02-11 07:59:17] Production.INFO: ProcessCDR(1,14450363,1,1,2) [2025-02-11 07:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 07:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450363', 'tblTempUsageDetail_20' ) start [2025-02-11 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450363', 'tblTempUsageDetail_20' ) end [2025-02-11 07:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 07:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 07:59:22] Production.INFO: ==21550== Releasing lock... [2025-02-11 07:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 07:59:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:00:06 [end_date_ymd] => 2025-02-11 08:00:06 [RateCDR] => 1 ) [2025-02-11 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:00:06' and `end` < '2025-02-11 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:00:18] Production.INFO: count ==219 [2025-02-11 08:00:19] Production.ERROR: pbx CDR StartTime 2025-02-11 05:00:06 - End Time 2025-02-11 08:00:06 [2025-02-11 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450369', 'tblTempUsageDetail_20' ) start [2025-02-11 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450369', 'tblTempUsageDetail_20' ) end [2025-02-11 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450369', 'tblTempVendorCDR_20' ) start [2025-02-11 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450369', 'tblTempVendorCDR_20' ) end [2025-02-11 08:00:19] Production.INFO: ProcessCDR(1,14450369,1,1,2) [2025-02-11 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450369', 'tblTempUsageDetail_20' ) start [2025-02-11 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450369', 'tblTempUsageDetail_20' ) end [2025-02-11 08:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:00:22] Production.INFO: ==21625== Releasing lock... [2025-02-11 08:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:00:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:01:05 [end_date_ymd] => 2025-02-11 08:01:05 [RateCDR] => 1 ) [2025-02-11 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-02-11 05:01:05' and `end` < '2025-02-11 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-02-11 08:01:17] Production.INFO: count ==244 [2025-02-11 08:01:17] Production.ERROR: pbx CDR StartTime 2025-02-11 05:01:05 - End Time 2025-02-11 08:01:05 [2025-02-11 08:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450374', 'tblTempUsageDetail_20' ) start [2025-02-11 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450374', 'tblTempUsageDetail_20' ) end [2025-02-11 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450374', 'tblTempVendorCDR_20' ) start [2025-02-11 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450374', 'tblTempVendorCDR_20' ) end [2025-02-11 08:01:17] Production.INFO: ProcessCDR(1,14450374,1,1,2) [2025-02-11 08:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450374', 'tblTempUsageDetail_20' ) start [2025-02-11 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450374', 'tblTempUsageDetail_20' ) end [2025-02-11 08:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:01:21] Production.INFO: ==21714== Releasing lock... [2025-02-11 08:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:01:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:02:05 [end_date_ymd] => 2025-02-11 08:02:05 [RateCDR] => 1 ) [2025-02-11 08:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:02:05' and `end` < '2025-02-11 08:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:02:18] Production.INFO: count ==244 [2025-02-11 08:02:18] Production.ERROR: pbx CDR StartTime 2025-02-11 05:02:05 - End Time 2025-02-11 08:02:05 [2025-02-11 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450379', 'tblTempUsageDetail_20' ) start [2025-02-11 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450379', 'tblTempUsageDetail_20' ) end [2025-02-11 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450379', 'tblTempVendorCDR_20' ) start [2025-02-11 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450379', 'tblTempVendorCDR_20' ) end [2025-02-11 08:02:18] Production.INFO: ProcessCDR(1,14450379,1,1,2) [2025-02-11 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450379', 'tblTempUsageDetail_20' ) start [2025-02-11 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450379', 'tblTempUsageDetail_20' ) end [2025-02-11 08:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:02:22] Production.INFO: ==21826== Releasing lock... [2025-02-11 08:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:02:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 08:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:03:04 [end_date_ymd] => 2025-02-11 08:03:04 [RateCDR] => 1 ) [2025-02-11 08:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:03:04' and `end` < '2025-02-11 08:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:03:17] Production.INFO: count ==245 [2025-02-11 08:03:17] Production.ERROR: pbx CDR StartTime 2025-02-11 05:03:04 - End Time 2025-02-11 08:03:04 [2025-02-11 08:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450384', 'tblTempUsageDetail_20' ) start [2025-02-11 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450384', 'tblTempUsageDetail_20' ) end [2025-02-11 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450384', 'tblTempVendorCDR_20' ) start [2025-02-11 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450384', 'tblTempVendorCDR_20' ) end [2025-02-11 08:03:17] Production.INFO: ProcessCDR(1,14450384,1,1,2) [2025-02-11 08:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450384', 'tblTempUsageDetail_20' ) start [2025-02-11 08:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450384', 'tblTempUsageDetail_20' ) end [2025-02-11 08:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:03:20] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:03:20] Production.INFO: ==21895== Releasing lock... [2025-02-11 08:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:03:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 08:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:04:06 [end_date_ymd] => 2025-02-11 08:04:06 [RateCDR] => 1 ) [2025-02-11 08:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:04:06' and `end` < '2025-02-11 08:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:04:19] Production.INFO: count ==245 [2025-02-11 08:04:19] Production.ERROR: pbx CDR StartTime 2025-02-11 05:04:06 - End Time 2025-02-11 08:04:06 [2025-02-11 08:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450389', 'tblTempUsageDetail_20' ) start [2025-02-11 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450389', 'tblTempUsageDetail_20' ) end [2025-02-11 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450389', 'tblTempVendorCDR_20' ) start [2025-02-11 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450389', 'tblTempVendorCDR_20' ) end [2025-02-11 08:04:19] Production.INFO: ProcessCDR(1,14450389,1,1,2) [2025-02-11 08:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450389', 'tblTempUsageDetail_20' ) start [2025-02-11 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450389', 'tblTempUsageDetail_20' ) end [2025-02-11 08:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:04:22] Production.INFO: ==21969== Releasing lock... [2025-02-11 08:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:04:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-11 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:05:05 [end_date_ymd] => 2025-02-11 08:05:05 [RateCDR] => 1 ) [2025-02-11 08:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:05:05' and `end` < '2025-02-11 08:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:05:18] Production.INFO: count ==252 [2025-02-11 08:05:18] Production.ERROR: pbx CDR StartTime 2025-02-11 05:05:05 - End Time 2025-02-11 08:05:05 [2025-02-11 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450394', 'tblTempUsageDetail_20' ) start [2025-02-11 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450394', 'tblTempUsageDetail_20' ) end [2025-02-11 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450394', 'tblTempVendorCDR_20' ) start [2025-02-11 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450394', 'tblTempVendorCDR_20' ) end [2025-02-11 08:05:18] Production.INFO: ProcessCDR(1,14450394,1,1,2) [2025-02-11 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450394', 'tblTempUsageDetail_20' ) start [2025-02-11 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450394', 'tblTempUsageDetail_20' ) end [2025-02-11 08:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:05:22] Production.INFO: ==22039== Releasing lock... [2025-02-11 08:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:05:22] Production.INFO: 30 MB #Memory Used# [2025-02-11 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:06:05 [end_date_ymd] => 2025-02-11 08:06:05 [RateCDR] => 1 ) [2025-02-11 08:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:06:05' and `end` < '2025-02-11 08:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:06:18] Production.INFO: count ==262 [2025-02-11 08:06:18] Production.ERROR: pbx CDR StartTime 2025-02-11 05:06:05 - End Time 2025-02-11 08:06:05 [2025-02-11 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450399', 'tblTempUsageDetail_20' ) start [2025-02-11 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450399', 'tblTempUsageDetail_20' ) end [2025-02-11 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450399', 'tblTempVendorCDR_20' ) start [2025-02-11 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450399', 'tblTempVendorCDR_20' ) end [2025-02-11 08:06:18] Production.INFO: ProcessCDR(1,14450399,1,1,2) [2025-02-11 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450399', 'tblTempUsageDetail_20' ) start [2025-02-11 08:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450399', 'tblTempUsageDetail_20' ) end [2025-02-11 08:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:06:23] Production.INFO: ==22110== Releasing lock... [2025-02-11 08:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:06:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-11 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:07:05 [end_date_ymd] => 2025-02-11 08:07:05 [RateCDR] => 1 ) [2025-02-11 08:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:07:05' and `end` < '2025-02-11 08:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:07:17] Production.INFO: count ==268 [2025-02-11 08:07:17] Production.ERROR: pbx CDR StartTime 2025-02-11 05:07:05 - End Time 2025-02-11 08:07:05 [2025-02-11 08:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450404', 'tblTempUsageDetail_20' ) start [2025-02-11 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450404', 'tblTempUsageDetail_20' ) end [2025-02-11 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450404', 'tblTempVendorCDR_20' ) start [2025-02-11 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450404', 'tblTempVendorCDR_20' ) end [2025-02-11 08:07:17] Production.INFO: ProcessCDR(1,14450404,1,1,2) [2025-02-11 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450404', 'tblTempUsageDetail_20' ) start [2025-02-11 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450404', 'tblTempUsageDetail_20' ) end [2025-02-11 08:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:07:21] Production.INFO: ==22180== Releasing lock... [2025-02-11 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:07:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-11 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:08:05 [end_date_ymd] => 2025-02-11 08:08:05 [RateCDR] => 1 ) [2025-02-11 08:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:08:05' and `end` < '2025-02-11 08:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:08:18] Production.INFO: count ==268 [2025-02-11 08:08:18] Production.ERROR: pbx CDR StartTime 2025-02-11 05:08:05 - End Time 2025-02-11 08:08:05 [2025-02-11 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450409', 'tblTempUsageDetail_20' ) start [2025-02-11 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450409', 'tblTempUsageDetail_20' ) end [2025-02-11 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450409', 'tblTempVendorCDR_20' ) start [2025-02-11 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450409', 'tblTempVendorCDR_20' ) end [2025-02-11 08:08:18] Production.INFO: ProcessCDR(1,14450409,1,1,2) [2025-02-11 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450409', 'tblTempUsageDetail_20' ) start [2025-02-11 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450409', 'tblTempUsageDetail_20' ) end [2025-02-11 08:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:08:21] Production.INFO: ==22253== Releasing lock... [2025-02-11 08:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:08:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-11 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:09:05 [end_date_ymd] => 2025-02-11 08:09:05 [RateCDR] => 1 ) [2025-02-11 08:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:09:05' and `end` < '2025-02-11 08:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:09:18] Production.INFO: count ==277 [2025-02-11 08:09:19] Production.ERROR: pbx CDR StartTime 2025-02-11 05:09:05 - End Time 2025-02-11 08:09:05 [2025-02-11 08:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450414', 'tblTempUsageDetail_20' ) start [2025-02-11 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450414', 'tblTempUsageDetail_20' ) end [2025-02-11 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450414', 'tblTempVendorCDR_20' ) start [2025-02-11 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450414', 'tblTempVendorCDR_20' ) end [2025-02-11 08:09:19] Production.INFO: ProcessCDR(1,14450414,1,1,2) [2025-02-11 08:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450414', 'tblTempUsageDetail_20' ) start [2025-02-11 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450414', 'tblTempUsageDetail_20' ) end [2025-02-11 08:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:09:22] Production.INFO: ==22331== Releasing lock... [2025-02-11 08:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:09:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-11 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:10:06 [end_date_ymd] => 2025-02-11 08:10:06 [RateCDR] => 1 ) [2025-02-11 08:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:10:06' and `end` < '2025-02-11 08:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:10:19] Production.INFO: count ==294 [2025-02-11 08:10:19] Production.ERROR: pbx CDR StartTime 2025-02-11 05:10:06 - End Time 2025-02-11 08:10:06 [2025-02-11 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450420', 'tblTempUsageDetail_20' ) start [2025-02-11 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450420', 'tblTempUsageDetail_20' ) end [2025-02-11 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450420', 'tblTempVendorCDR_20' ) start [2025-02-11 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450420', 'tblTempVendorCDR_20' ) end [2025-02-11 08:10:19] Production.INFO: ProcessCDR(1,14450420,1,1,2) [2025-02-11 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450420', 'tblTempUsageDetail_20' ) start [2025-02-11 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450420', 'tblTempUsageDetail_20' ) end [2025-02-11 08:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:10:23] Production.INFO: ==22407== Releasing lock... [2025-02-11 08:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:10:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-11 08:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:11:06 [end_date_ymd] => 2025-02-11 08:11:06 [RateCDR] => 1 ) [2025-02-11 08:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:11:06' and `end` < '2025-02-11 08:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:11:19] Production.INFO: count ==324 [2025-02-11 08:11:19] Production.ERROR: pbx CDR StartTime 2025-02-11 05:11:06 - End Time 2025-02-11 08:11:06 [2025-02-11 08:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450425', 'tblTempUsageDetail_20' ) start [2025-02-11 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450425', 'tblTempUsageDetail_20' ) end [2025-02-11 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450425', 'tblTempVendorCDR_20' ) start [2025-02-11 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450425', 'tblTempVendorCDR_20' ) end [2025-02-11 08:11:19] Production.INFO: ProcessCDR(1,14450425,1,1,2) [2025-02-11 08:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450425', 'tblTempUsageDetail_20' ) start [2025-02-11 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450425', 'tblTempUsageDetail_20' ) end [2025-02-11 08:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:11:22] Production.INFO: ==22485== Releasing lock... [2025-02-11 08:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:11:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-11 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:12:05 [end_date_ymd] => 2025-02-11 08:12:05 [RateCDR] => 1 ) [2025-02-11 08:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:12:05' and `end` < '2025-02-11 08:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:12:18] Production.INFO: count ==339 [2025-02-11 08:12:18] Production.ERROR: pbx CDR StartTime 2025-02-11 05:12:05 - End Time 2025-02-11 08:12:05 [2025-02-11 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450430', 'tblTempUsageDetail_20' ) start [2025-02-11 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450430', 'tblTempUsageDetail_20' ) end [2025-02-11 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450430', 'tblTempVendorCDR_20' ) start [2025-02-11 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450430', 'tblTempVendorCDR_20' ) end [2025-02-11 08:12:18] Production.INFO: ProcessCDR(1,14450430,1,1,2) [2025-02-11 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450430', 'tblTempUsageDetail_20' ) start [2025-02-11 08:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450430', 'tblTempUsageDetail_20' ) end [2025-02-11 08:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:12:23] Production.INFO: ==22560== Releasing lock... [2025-02-11 08:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:12:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-11 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:13:05 [end_date_ymd] => 2025-02-11 08:13:05 [RateCDR] => 1 ) [2025-02-11 08:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:13:05' and `end` < '2025-02-11 08:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:13:18] Production.INFO: count ==348 [2025-02-11 08:13:18] Production.ERROR: pbx CDR StartTime 2025-02-11 05:13:05 - End Time 2025-02-11 08:13:05 [2025-02-11 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450435', 'tblTempUsageDetail_20' ) start [2025-02-11 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450435', 'tblTempUsageDetail_20' ) end [2025-02-11 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450435', 'tblTempVendorCDR_20' ) start [2025-02-11 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450435', 'tblTempVendorCDR_20' ) end [2025-02-11 08:13:18] Production.INFO: ProcessCDR(1,14450435,1,1,2) [2025-02-11 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450435', 'tblTempUsageDetail_20' ) start [2025-02-11 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450435', 'tblTempUsageDetail_20' ) end [2025-02-11 08:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:13:21] Production.INFO: ==22633== Releasing lock... [2025-02-11 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:13:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-11 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:14:05 [end_date_ymd] => 2025-02-11 08:14:05 [RateCDR] => 1 ) [2025-02-11 08:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:14:05' and `end` < '2025-02-11 08:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:14:18] Production.INFO: count ==361 [2025-02-11 08:14:18] Production.ERROR: pbx CDR StartTime 2025-02-11 05:14:05 - End Time 2025-02-11 08:14:05 [2025-02-11 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450440', 'tblTempUsageDetail_20' ) start [2025-02-11 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450440', 'tblTempUsageDetail_20' ) end [2025-02-11 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450440', 'tblTempVendorCDR_20' ) start [2025-02-11 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450440', 'tblTempVendorCDR_20' ) end [2025-02-11 08:14:18] Production.INFO: ProcessCDR(1,14450440,1,1,2) [2025-02-11 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450440', 'tblTempUsageDetail_20' ) start [2025-02-11 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450440', 'tblTempUsageDetail_20' ) end [2025-02-11 08:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:14:22] Production.INFO: ==22702== Releasing lock... [2025-02-11 08:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:14:22] Production.INFO: 31 MB #Memory Used# [2025-02-11 08:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:15:06 [end_date_ymd] => 2025-02-11 08:15:06 [RateCDR] => 1 ) [2025-02-11 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-02-11 05:15:06' and `end` < '2025-02-11 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-02-11 08:15:18] Production.INFO: count ==375 [2025-02-11 08:15:18] Production.ERROR: pbx CDR StartTime 2025-02-11 05:15:06 - End Time 2025-02-11 08:15:06 [2025-02-11 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450445', 'tblTempUsageDetail_20' ) start [2025-02-11 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450445', 'tblTempUsageDetail_20' ) end [2025-02-11 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450445', 'tblTempVendorCDR_20' ) start [2025-02-11 08:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450445', 'tblTempVendorCDR_20' ) end [2025-02-11 08:15:19] Production.INFO: ProcessCDR(1,14450445,1,1,2) [2025-02-11 08:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450445', 'tblTempUsageDetail_20' ) start [2025-02-11 08:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450445', 'tblTempUsageDetail_20' ) end [2025-02-11 08:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:15:23] Production.INFO: ==22775== Releasing lock... [2025-02-11 08:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:15:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-11 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:16:05 [end_date_ymd] => 2025-02-11 08:16:05 [RateCDR] => 1 ) [2025-02-11 08:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:16:05' and `end` < '2025-02-11 08:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:16:18] Production.INFO: count ==394 [2025-02-11 08:16:18] Production.ERROR: pbx CDR StartTime 2025-02-11 05:16:05 - End Time 2025-02-11 08:16:05 [2025-02-11 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450450', 'tblTempUsageDetail_20' ) start [2025-02-11 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450450', 'tblTempUsageDetail_20' ) end [2025-02-11 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450450', 'tblTempVendorCDR_20' ) start [2025-02-11 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450450', 'tblTempVendorCDR_20' ) end [2025-02-11 08:16:18] Production.INFO: ProcessCDR(1,14450450,1,1,2) [2025-02-11 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450450', 'tblTempUsageDetail_20' ) start [2025-02-11 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450450', 'tblTempUsageDetail_20' ) end [2025-02-11 08:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:16:21] Production.INFO: ==22851== Releasing lock... [2025-02-11 08:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:16:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-11 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:17:05 [end_date_ymd] => 2025-02-11 08:17:05 [RateCDR] => 1 ) [2025-02-11 08:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:17:05' and `end` < '2025-02-11 08:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:17:18] Production.INFO: count ==395 [2025-02-11 08:17:18] Production.ERROR: pbx CDR StartTime 2025-02-11 05:17:05 - End Time 2025-02-11 08:17:05 [2025-02-11 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450455', 'tblTempUsageDetail_20' ) start [2025-02-11 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450455', 'tblTempUsageDetail_20' ) end [2025-02-11 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450455', 'tblTempVendorCDR_20' ) start [2025-02-11 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450455', 'tblTempVendorCDR_20' ) end [2025-02-11 08:17:18] Production.INFO: ProcessCDR(1,14450455,1,1,2) [2025-02-11 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450455', 'tblTempUsageDetail_20' ) start [2025-02-11 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450455', 'tblTempUsageDetail_20' ) end [2025-02-11 08:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:17:22] Production.INFO: ==22967== Releasing lock... [2025-02-11 08:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:17:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-11 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:18:05 [end_date_ymd] => 2025-02-11 08:18:05 [RateCDR] => 1 ) [2025-02-11 08:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:18:05' and `end` < '2025-02-11 08:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:18:18] Production.INFO: count ==416 [2025-02-11 08:18:18] Production.ERROR: pbx CDR StartTime 2025-02-11 05:18:05 - End Time 2025-02-11 08:18:05 [2025-02-11 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450460', 'tblTempUsageDetail_20' ) start [2025-02-11 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450460', 'tblTempUsageDetail_20' ) end [2025-02-11 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450460', 'tblTempVendorCDR_20' ) start [2025-02-11 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450460', 'tblTempVendorCDR_20' ) end [2025-02-11 08:18:18] Production.INFO: ProcessCDR(1,14450460,1,1,2) [2025-02-11 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450460', 'tblTempUsageDetail_20' ) start [2025-02-11 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450460', 'tblTempUsageDetail_20' ) end [2025-02-11 08:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:18:22] Production.INFO: ==23049== Releasing lock... [2025-02-11 08:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:18:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-11 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:19:05 [end_date_ymd] => 2025-02-11 08:19:05 [RateCDR] => 1 ) [2025-02-11 08:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:19:05' and `end` < '2025-02-11 08:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:19:17] Production.INFO: count ==419 [2025-02-11 08:19:18] Production.ERROR: pbx CDR StartTime 2025-02-11 05:19:05 - End Time 2025-02-11 08:19:05 [2025-02-11 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450465', 'tblTempUsageDetail_20' ) start [2025-02-11 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450465', 'tblTempUsageDetail_20' ) end [2025-02-11 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450465', 'tblTempVendorCDR_20' ) start [2025-02-11 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450465', 'tblTempVendorCDR_20' ) end [2025-02-11 08:19:18] Production.INFO: ProcessCDR(1,14450465,1,1,2) [2025-02-11 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450465', 'tblTempUsageDetail_20' ) start [2025-02-11 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450465', 'tblTempUsageDetail_20' ) end [2025-02-11 08:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:19:22] Production.INFO: ==23122== Releasing lock... [2025-02-11 08:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:19:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-11 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:20:06 [end_date_ymd] => 2025-02-11 08:20:06 [RateCDR] => 1 ) [2025-02-11 08:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:20:06' and `end` < '2025-02-11 08:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:20:19] Production.INFO: count ==450 [2025-02-11 08:20:19] Production.ERROR: pbx CDR StartTime 2025-02-11 05:20:06 - End Time 2025-02-11 08:20:06 [2025-02-11 08:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450470', 'tblTempUsageDetail_20' ) start [2025-02-11 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450470', 'tblTempUsageDetail_20' ) end [2025-02-11 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450470', 'tblTempVendorCDR_20' ) start [2025-02-11 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450470', 'tblTempVendorCDR_20' ) end [2025-02-11 08:20:19] Production.INFO: ProcessCDR(1,14450470,1,1,2) [2025-02-11 08:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450470', 'tblTempUsageDetail_20' ) start [2025-02-11 08:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450470', 'tblTempUsageDetail_20' ) end [2025-02-11 08:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:20:24] Production.INFO: ==23197== Releasing lock... [2025-02-11 08:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:20:24] Production.INFO: 32.25 MB #Memory Used# [2025-02-11 08:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:21:04 [end_date_ymd] => 2025-02-11 08:21:04 [RateCDR] => 1 ) [2025-02-11 08:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:21:04' and `end` < '2025-02-11 08:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:21:17] Production.INFO: count ==502 [2025-02-11 08:21:17] Production.ERROR: pbx CDR StartTime 2025-02-11 05:21:04 - End Time 2025-02-11 08:21:04 [2025-02-11 08:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450476', 'tblTempUsageDetail_20' ) start [2025-02-11 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450476', 'tblTempUsageDetail_20' ) end [2025-02-11 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450476', 'tblTempVendorCDR_20' ) start [2025-02-11 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450476', 'tblTempVendorCDR_20' ) end [2025-02-11 08:21:17] Production.INFO: ProcessCDR(1,14450476,1,1,2) [2025-02-11 08:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450476', 'tblTempUsageDetail_20' ) start [2025-02-11 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450476', 'tblTempUsageDetail_20' ) end [2025-02-11 08:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:21:21] Production.INFO: ==23270== Releasing lock... [2025-02-11 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:21:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-11 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:22:05 [end_date_ymd] => 2025-02-11 08:22:05 [RateCDR] => 1 ) [2025-02-11 08:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:22:05' and `end` < '2025-02-11 08:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:22:18] Production.INFO: count ==508 [2025-02-11 08:22:19] Production.ERROR: pbx CDR StartTime 2025-02-11 05:22:05 - End Time 2025-02-11 08:22:05 [2025-02-11 08:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450481', 'tblTempUsageDetail_20' ) start [2025-02-11 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450481', 'tblTempUsageDetail_20' ) end [2025-02-11 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450481', 'tblTempVendorCDR_20' ) start [2025-02-11 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450481', 'tblTempVendorCDR_20' ) end [2025-02-11 08:22:19] Production.INFO: ProcessCDR(1,14450481,1,1,2) [2025-02-11 08:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450481', 'tblTempUsageDetail_20' ) start [2025-02-11 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450481', 'tblTempUsageDetail_20' ) end [2025-02-11 08:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:22:22] Production.INFO: ==23348== Releasing lock... [2025-02-11 08:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:22:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-11 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:23:05 [end_date_ymd] => 2025-02-11 08:23:05 [RateCDR] => 1 ) [2025-02-11 08:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:23:05' and `end` < '2025-02-11 08:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:23:17] Production.INFO: count ==538 [2025-02-11 08:23:18] Production.ERROR: pbx CDR StartTime 2025-02-11 05:23:05 - End Time 2025-02-11 08:23:05 [2025-02-11 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450486', 'tblTempUsageDetail_20' ) start [2025-02-11 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450486', 'tblTempUsageDetail_20' ) end [2025-02-11 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450486', 'tblTempVendorCDR_20' ) start [2025-02-11 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450486', 'tblTempVendorCDR_20' ) end [2025-02-11 08:23:18] Production.INFO: ProcessCDR(1,14450486,1,1,2) [2025-02-11 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450486', 'tblTempUsageDetail_20' ) start [2025-02-11 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450486', 'tblTempUsageDetail_20' ) end [2025-02-11 08:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:23:22] Production.INFO: ==23421== Releasing lock... [2025-02-11 08:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:23:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-11 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:24:05 [end_date_ymd] => 2025-02-11 08:24:05 [RateCDR] => 1 ) [2025-02-11 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-02-11 05:24:05' and `end` < '2025-02-11 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-02-11 08:24:18] Production.INFO: count ==550 [2025-02-11 08:24:18] Production.ERROR: pbx CDR StartTime 2025-02-11 05:24:05 - End Time 2025-02-11 08:24:05 [2025-02-11 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450491', 'tblTempUsageDetail_20' ) start [2025-02-11 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450491', 'tblTempUsageDetail_20' ) end [2025-02-11 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450491', 'tblTempVendorCDR_20' ) start [2025-02-11 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450491', 'tblTempVendorCDR_20' ) end [2025-02-11 08:24:18] Production.INFO: ProcessCDR(1,14450491,1,1,2) [2025-02-11 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450491', 'tblTempUsageDetail_20' ) start [2025-02-11 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450491', 'tblTempUsageDetail_20' ) end [2025-02-11 08:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:24:22] Production.INFO: ==23497== Releasing lock... [2025-02-11 08:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:24:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-11 08:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:25:04 [end_date_ymd] => 2025-02-11 08:25:04 [RateCDR] => 1 ) [2025-02-11 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-02-11 05:25:04' and `end` < '2025-02-11 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-02-11 08:25:17] Production.INFO: count ==553 [2025-02-11 08:25:17] Production.ERROR: pbx CDR StartTime 2025-02-11 05:25:04 - End Time 2025-02-11 08:25:04 [2025-02-11 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450496', 'tblTempUsageDetail_20' ) start [2025-02-11 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450496', 'tblTempUsageDetail_20' ) end [2025-02-11 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450496', 'tblTempVendorCDR_20' ) start [2025-02-11 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450496', 'tblTempVendorCDR_20' ) end [2025-02-11 08:25:17] Production.INFO: ProcessCDR(1,14450496,1,1,2) [2025-02-11 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450496', 'tblTempUsageDetail_20' ) start [2025-02-11 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450496', 'tblTempUsageDetail_20' ) end [2025-02-11 08:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:25:21] Production.INFO: ==23568== Releasing lock... [2025-02-11 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:25:21] Production.INFO: 33 MB #Memory Used# [2025-02-11 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:26:05 [end_date_ymd] => 2025-02-11 08:26:05 [RateCDR] => 1 ) [2025-02-11 08:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:26:05' and `end` < '2025-02-11 08:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:26:19] Production.INFO: count ==555 [2025-02-11 08:26:20] Production.ERROR: pbx CDR StartTime 2025-02-11 05:26:05 - End Time 2025-02-11 08:26:05 [2025-02-11 08:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450501', 'tblTempUsageDetail_20' ) start [2025-02-11 08:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450501', 'tblTempUsageDetail_20' ) end [2025-02-11 08:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450501', 'tblTempVendorCDR_20' ) start [2025-02-11 08:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450501', 'tblTempVendorCDR_20' ) end [2025-02-11 08:26:20] Production.INFO: ProcessCDR(1,14450501,1,1,2) [2025-02-11 08:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450501', 'tblTempUsageDetail_20' ) start [2025-02-11 08:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450501', 'tblTempUsageDetail_20' ) end [2025-02-11 08:26:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:26:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:26:24] Production.INFO: ==23645== Releasing lock... [2025-02-11 08:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:26:24] Production.INFO: 32.75 MB #Memory Used# [2025-02-11 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:27:05 [end_date_ymd] => 2025-02-11 08:27:05 [RateCDR] => 1 ) [2025-02-11 08:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:27:05' and `end` < '2025-02-11 08:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:27:17] Production.INFO: count ==557 [2025-02-11 08:27:18] Production.ERROR: pbx CDR StartTime 2025-02-11 05:27:05 - End Time 2025-02-11 08:27:05 [2025-02-11 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450506', 'tblTempUsageDetail_20' ) start [2025-02-11 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450506', 'tblTempUsageDetail_20' ) end [2025-02-11 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450506', 'tblTempVendorCDR_20' ) start [2025-02-11 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450506', 'tblTempVendorCDR_20' ) end [2025-02-11 08:27:18] Production.INFO: ProcessCDR(1,14450506,1,1,2) [2025-02-11 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450506', 'tblTempUsageDetail_20' ) start [2025-02-11 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450506', 'tblTempUsageDetail_20' ) end [2025-02-11 08:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:27:21] Production.INFO: ==23715== Releasing lock... [2025-02-11 08:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:27:21] Production.INFO: 33 MB #Memory Used# [2025-02-11 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:28:05 [end_date_ymd] => 2025-02-11 08:28:05 [RateCDR] => 1 ) [2025-02-11 08:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:28:05' and `end` < '2025-02-11 08:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:28:18] Production.INFO: count ==569 [2025-02-11 08:28:18] Production.ERROR: pbx CDR StartTime 2025-02-11 05:28:05 - End Time 2025-02-11 08:28:05 [2025-02-11 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450511', 'tblTempUsageDetail_20' ) start [2025-02-11 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450511', 'tblTempUsageDetail_20' ) end [2025-02-11 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450511', 'tblTempVendorCDR_20' ) start [2025-02-11 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450511', 'tblTempVendorCDR_20' ) end [2025-02-11 08:28:18] Production.INFO: ProcessCDR(1,14450511,1,1,2) [2025-02-11 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450511', 'tblTempUsageDetail_20' ) start [2025-02-11 08:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450511', 'tblTempUsageDetail_20' ) end [2025-02-11 08:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:28:23] Production.INFO: ==23789== Releasing lock... [2025-02-11 08:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:28:23] Production.INFO: 32.75 MB #Memory Used# [2025-02-11 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:29:05 [end_date_ymd] => 2025-02-11 08:29:05 [RateCDR] => 1 ) [2025-02-11 08:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:29:05' and `end` < '2025-02-11 08:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:29:19] Production.INFO: count ==586 [2025-02-11 08:29:19] Production.ERROR: pbx CDR StartTime 2025-02-11 05:29:05 - End Time 2025-02-11 08:29:05 [2025-02-11 08:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450516', 'tblTempUsageDetail_20' ) start [2025-02-11 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450516', 'tblTempUsageDetail_20' ) end [2025-02-11 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450516', 'tblTempVendorCDR_20' ) start [2025-02-11 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450516', 'tblTempVendorCDR_20' ) end [2025-02-11 08:29:19] Production.INFO: ProcessCDR(1,14450516,1,1,2) [2025-02-11 08:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450516', 'tblTempUsageDetail_20' ) start [2025-02-11 08:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450516', 'tblTempUsageDetail_20' ) end [2025-02-11 08:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:29:24] Production.INFO: ==23869== Releasing lock... [2025-02-11 08:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:29:24] Production.INFO: 32.75 MB #Memory Used# [2025-02-11 08:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:30:05 [end_date_ymd] => 2025-02-11 08:30:05 [RateCDR] => 1 ) [2025-02-11 08:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:30:05' and `end` < '2025-02-11 08:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:30:18] Production.INFO: count ==598 [2025-02-11 08:30:18] Production.ERROR: pbx CDR StartTime 2025-02-11 05:30:05 - End Time 2025-02-11 08:30:05 [2025-02-11 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450521', 'tblTempUsageDetail_20' ) start [2025-02-11 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450521', 'tblTempUsageDetail_20' ) end [2025-02-11 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450521', 'tblTempVendorCDR_20' ) start [2025-02-11 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450521', 'tblTempVendorCDR_20' ) end [2025-02-11 08:30:18] Production.INFO: ProcessCDR(1,14450521,1,1,2) [2025-02-11 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450521', 'tblTempUsageDetail_20' ) start [2025-02-11 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450521', 'tblTempUsageDetail_20' ) end [2025-02-11 08:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:30:23] Production.INFO: ==23952== Releasing lock... [2025-02-11 08:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:30:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-11 08:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:31:06 [end_date_ymd] => 2025-02-11 08:31:06 [RateCDR] => 1 ) [2025-02-11 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-02-11 05:31:06' and `end` < '2025-02-11 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-02-11 08:31:19] Production.INFO: count ==620 [2025-02-11 08:31:19] Production.ERROR: pbx CDR StartTime 2025-02-11 05:31:06 - End Time 2025-02-11 08:31:06 [2025-02-11 08:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450527', 'tblTempUsageDetail_20' ) start [2025-02-11 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450527', 'tblTempUsageDetail_20' ) end [2025-02-11 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450527', 'tblTempVendorCDR_20' ) start [2025-02-11 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450527', 'tblTempVendorCDR_20' ) end [2025-02-11 08:31:19] Production.INFO: ProcessCDR(1,14450527,1,1,2) [2025-02-11 08:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450527', 'tblTempUsageDetail_20' ) start [2025-02-11 08:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450527', 'tblTempUsageDetail_20' ) end [2025-02-11 08:31:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:31:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:31:24] Production.INFO: ==24025== Releasing lock... [2025-02-11 08:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:31:24] Production.INFO: 33 MB #Memory Used# [2025-02-11 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:32:05 [end_date_ymd] => 2025-02-11 08:32:05 [RateCDR] => 1 ) [2025-02-11 08:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:32:05' and `end` < '2025-02-11 08:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:32:18] Production.INFO: count ==622 [2025-02-11 08:32:18] Production.ERROR: pbx CDR StartTime 2025-02-11 05:32:05 - End Time 2025-02-11 08:32:05 [2025-02-11 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450532', 'tblTempUsageDetail_20' ) start [2025-02-11 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450532', 'tblTempUsageDetail_20' ) end [2025-02-11 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450532', 'tblTempVendorCDR_20' ) start [2025-02-11 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450532', 'tblTempVendorCDR_20' ) end [2025-02-11 08:32:18] Production.INFO: ProcessCDR(1,14450532,1,1,2) [2025-02-11 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450532', 'tblTempUsageDetail_20' ) start [2025-02-11 08:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450532', 'tblTempUsageDetail_20' ) end [2025-02-11 08:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:32:23] Production.INFO: ==24096== Releasing lock... [2025-02-11 08:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:32:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-11 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:33:05 [end_date_ymd] => 2025-02-11 08:33:05 [RateCDR] => 1 ) [2025-02-11 08:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:33:05' and `end` < '2025-02-11 08:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:33:18] Production.INFO: count ==628 [2025-02-11 08:33:18] Production.ERROR: pbx CDR StartTime 2025-02-11 05:33:05 - End Time 2025-02-11 08:33:05 [2025-02-11 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450537', 'tblTempUsageDetail_20' ) start [2025-02-11 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450537', 'tblTempUsageDetail_20' ) end [2025-02-11 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450537', 'tblTempVendorCDR_20' ) start [2025-02-11 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450537', 'tblTempVendorCDR_20' ) end [2025-02-11 08:33:18] Production.INFO: ProcessCDR(1,14450537,1,1,2) [2025-02-11 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450537', 'tblTempUsageDetail_20' ) start [2025-02-11 08:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450537', 'tblTempUsageDetail_20' ) end [2025-02-11 08:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:33:23] Production.INFO: ==24207== Releasing lock... [2025-02-11 08:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:33:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-11 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:34:05 [end_date_ymd] => 2025-02-11 08:34:05 [RateCDR] => 1 ) [2025-02-11 08:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:34:05' and `end` < '2025-02-11 08:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:34:18] Production.INFO: count ==638 [2025-02-11 08:34:18] Production.ERROR: pbx CDR StartTime 2025-02-11 05:34:05 - End Time 2025-02-11 08:34:05 [2025-02-11 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450542', 'tblTempUsageDetail_20' ) start [2025-02-11 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450542', 'tblTempUsageDetail_20' ) end [2025-02-11 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450542', 'tblTempVendorCDR_20' ) start [2025-02-11 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450542', 'tblTempVendorCDR_20' ) end [2025-02-11 08:34:18] Production.INFO: ProcessCDR(1,14450542,1,1,2) [2025-02-11 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450542', 'tblTempUsageDetail_20' ) start [2025-02-11 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450542', 'tblTempUsageDetail_20' ) end [2025-02-11 08:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:34:21] Production.INFO: ==24285== Releasing lock... [2025-02-11 08:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:34:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-11 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:35:05 [end_date_ymd] => 2025-02-11 08:35:05 [RateCDR] => 1 ) [2025-02-11 08:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:35:05' and `end` < '2025-02-11 08:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:35:18] Production.INFO: count ==648 [2025-02-11 08:35:18] Production.ERROR: pbx CDR StartTime 2025-02-11 05:35:05 - End Time 2025-02-11 08:35:05 [2025-02-11 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450547', 'tblTempUsageDetail_20' ) start [2025-02-11 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450547', 'tblTempUsageDetail_20' ) end [2025-02-11 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450547', 'tblTempVendorCDR_20' ) start [2025-02-11 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450547', 'tblTempVendorCDR_20' ) end [2025-02-11 08:35:18] Production.INFO: ProcessCDR(1,14450547,1,1,2) [2025-02-11 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450547', 'tblTempUsageDetail_20' ) start [2025-02-11 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450547', 'tblTempUsageDetail_20' ) end [2025-02-11 08:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:35:22] Production.INFO: ==24362== Releasing lock... [2025-02-11 08:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:35:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-11 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:36:05 [end_date_ymd] => 2025-02-11 08:36:05 [RateCDR] => 1 ) [2025-02-11 08:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:36:05' and `end` < '2025-02-11 08:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:36:18] Production.INFO: count ==649 [2025-02-11 08:36:18] Production.ERROR: pbx CDR StartTime 2025-02-11 05:36:05 - End Time 2025-02-11 08:36:05 [2025-02-11 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450552', 'tblTempUsageDetail_20' ) start [2025-02-11 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450552', 'tblTempUsageDetail_20' ) end [2025-02-11 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450552', 'tblTempVendorCDR_20' ) start [2025-02-11 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450552', 'tblTempVendorCDR_20' ) end [2025-02-11 08:36:18] Production.INFO: ProcessCDR(1,14450552,1,1,2) [2025-02-11 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450552', 'tblTempUsageDetail_20' ) start [2025-02-11 08:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450552', 'tblTempUsageDetail_20' ) end [2025-02-11 08:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:36:23] Production.INFO: ==24441== Releasing lock... [2025-02-11 08:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:36:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-11 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:37:05 [end_date_ymd] => 2025-02-11 08:37:05 [RateCDR] => 1 ) [2025-02-11 08:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:37:05' and `end` < '2025-02-11 08:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:37:19] Production.INFO: count ==654 [2025-02-11 08:37:20] Production.ERROR: pbx CDR StartTime 2025-02-11 05:37:05 - End Time 2025-02-11 08:37:05 [2025-02-11 08:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450557', 'tblTempUsageDetail_20' ) start [2025-02-11 08:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450557', 'tblTempUsageDetail_20' ) end [2025-02-11 08:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450557', 'tblTempVendorCDR_20' ) start [2025-02-11 08:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450557', 'tblTempVendorCDR_20' ) end [2025-02-11 08:37:20] Production.INFO: ProcessCDR(1,14450557,1,1,2) [2025-02-11 08:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450557', 'tblTempUsageDetail_20' ) start [2025-02-11 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450557', 'tblTempUsageDetail_20' ) end [2025-02-11 08:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:37:23] Production.INFO: ==24513== Releasing lock... [2025-02-11 08:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:37:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-11 08:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:38:04 [end_date_ymd] => 2025-02-11 08:38:04 [RateCDR] => 1 ) [2025-02-11 08:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:38:04' and `end` < '2025-02-11 08:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:38:18] Production.INFO: count ==662 [2025-02-11 08:38:18] Production.ERROR: pbx CDR StartTime 2025-02-11 05:38:04 - End Time 2025-02-11 08:38:04 [2025-02-11 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450562', 'tblTempUsageDetail_20' ) start [2025-02-11 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450562', 'tblTempUsageDetail_20' ) end [2025-02-11 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450562', 'tblTempVendorCDR_20' ) start [2025-02-11 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450562', 'tblTempVendorCDR_20' ) end [2025-02-11 08:38:18] Production.INFO: ProcessCDR(1,14450562,1,1,2) [2025-02-11 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450562', 'tblTempUsageDetail_20' ) start [2025-02-11 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450562', 'tblTempUsageDetail_20' ) end [2025-02-11 08:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:38:21] Production.INFO: ==24594== Releasing lock... [2025-02-11 08:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:38:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-11 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:39:05 [end_date_ymd] => 2025-02-11 08:39:05 [RateCDR] => 1 ) [2025-02-11 08:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:39:05' and `end` < '2025-02-11 08:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:39:19] Production.INFO: count ==686 [2025-02-11 08:39:19] Production.ERROR: pbx CDR StartTime 2025-02-11 05:39:05 - End Time 2025-02-11 08:39:05 [2025-02-11 08:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450567', 'tblTempUsageDetail_20' ) start [2025-02-11 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450567', 'tblTempUsageDetail_20' ) end [2025-02-11 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450567', 'tblTempVendorCDR_20' ) start [2025-02-11 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450567', 'tblTempVendorCDR_20' ) end [2025-02-11 08:39:19] Production.INFO: ProcessCDR(1,14450567,1,1,2) [2025-02-11 08:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450567', 'tblTempUsageDetail_20' ) start [2025-02-11 08:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450567', 'tblTempUsageDetail_20' ) end [2025-02-11 08:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:39:24] Production.INFO: ==24672== Releasing lock... [2025-02-11 08:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:39:24] Production.INFO: 33.5 MB #Memory Used# [2025-02-11 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:40:06 [end_date_ymd] => 2025-02-11 08:40:06 [RateCDR] => 1 ) [2025-02-11 08:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:40:06' and `end` < '2025-02-11 08:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:40:19] Production.INFO: count ==697 [2025-02-11 08:40:19] Production.ERROR: pbx CDR StartTime 2025-02-11 05:40:06 - End Time 2025-02-11 08:40:06 [2025-02-11 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450573', 'tblTempUsageDetail_20' ) start [2025-02-11 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450573', 'tblTempUsageDetail_20' ) end [2025-02-11 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450573', 'tblTempVendorCDR_20' ) start [2025-02-11 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450573', 'tblTempVendorCDR_20' ) end [2025-02-11 08:40:19] Production.INFO: ProcessCDR(1,14450573,1,1,2) [2025-02-11 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450573', 'tblTempUsageDetail_20' ) start [2025-02-11 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450573', 'tblTempUsageDetail_20' ) end [2025-02-11 08:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:40:23] Production.INFO: ==24755== Releasing lock... [2025-02-11 08:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:40:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-11 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:41:05 [end_date_ymd] => 2025-02-11 08:41:05 [RateCDR] => 1 ) [2025-02-11 08:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:41:05' and `end` < '2025-02-11 08:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:41:18] Production.INFO: count ==736 [2025-02-11 08:41:18] Production.ERROR: pbx CDR StartTime 2025-02-11 05:41:05 - End Time 2025-02-11 08:41:05 [2025-02-11 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450578', 'tblTempUsageDetail_20' ) start [2025-02-11 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450578', 'tblTempUsageDetail_20' ) end [2025-02-11 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450578', 'tblTempVendorCDR_20' ) start [2025-02-11 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450578', 'tblTempVendorCDR_20' ) end [2025-02-11 08:41:18] Production.INFO: ProcessCDR(1,14450578,1,1,2) [2025-02-11 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450578', 'tblTempUsageDetail_20' ) start [2025-02-11 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450578', 'tblTempUsageDetail_20' ) end [2025-02-11 08:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:41:23] Production.INFO: ==24848== Releasing lock... [2025-02-11 08:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:41:23] Production.INFO: 34 MB #Memory Used# [2025-02-11 08:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:42:06 [end_date_ymd] => 2025-02-11 08:42:06 [RateCDR] => 1 ) [2025-02-11 08:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:42:06' and `end` < '2025-02-11 08:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:42:20] Production.INFO: count ==747 [2025-02-11 08:42:20] Production.ERROR: pbx CDR StartTime 2025-02-11 05:42:06 - End Time 2025-02-11 08:42:06 [2025-02-11 08:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450583', 'tblTempUsageDetail_20' ) start [2025-02-11 08:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450583', 'tblTempUsageDetail_20' ) end [2025-02-11 08:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450583', 'tblTempVendorCDR_20' ) start [2025-02-11 08:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450583', 'tblTempVendorCDR_20' ) end [2025-02-11 08:42:20] Production.INFO: ProcessCDR(1,14450583,1,1,2) [2025-02-11 08:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450583', 'tblTempUsageDetail_20' ) start [2025-02-11 08:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450583', 'tblTempUsageDetail_20' ) end [2025-02-11 08:42:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:42:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:42:25] Production.INFO: ==24976== Releasing lock... [2025-02-11 08:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:42:25] Production.INFO: 33.5 MB #Memory Used# [2025-02-11 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:43:05 [end_date_ymd] => 2025-02-11 08:43:05 [RateCDR] => 1 ) [2025-02-11 08:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:43:05' and `end` < '2025-02-11 08:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:43:18] Production.INFO: count ==749 [2025-02-11 08:43:18] Production.ERROR: pbx CDR StartTime 2025-02-11 05:43:05 - End Time 2025-02-11 08:43:05 [2025-02-11 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450588', 'tblTempUsageDetail_20' ) start [2025-02-11 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450588', 'tblTempUsageDetail_20' ) end [2025-02-11 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450588', 'tblTempVendorCDR_20' ) start [2025-02-11 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450588', 'tblTempVendorCDR_20' ) end [2025-02-11 08:43:18] Production.INFO: ProcessCDR(1,14450588,1,1,2) [2025-02-11 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450588', 'tblTempUsageDetail_20' ) start [2025-02-11 08:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450588', 'tblTempUsageDetail_20' ) end [2025-02-11 08:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:43:23] Production.INFO: ==25089== Releasing lock... [2025-02-11 08:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:43:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-11 08:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:44:06 [end_date_ymd] => 2025-02-11 08:44:06 [RateCDR] => 1 ) [2025-02-11 08:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:44:06' and `end` < '2025-02-11 08:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:44:19] Production.INFO: count ==758 [2025-02-11 08:44:19] Production.ERROR: pbx CDR StartTime 2025-02-11 05:44:06 - End Time 2025-02-11 08:44:06 [2025-02-11 08:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450593', 'tblTempUsageDetail_20' ) start [2025-02-11 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450593', 'tblTempUsageDetail_20' ) end [2025-02-11 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450593', 'tblTempVendorCDR_20' ) start [2025-02-11 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450593', 'tblTempVendorCDR_20' ) end [2025-02-11 08:44:19] Production.INFO: ProcessCDR(1,14450593,1,1,2) [2025-02-11 08:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450593', 'tblTempUsageDetail_20' ) start [2025-02-11 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450593', 'tblTempUsageDetail_20' ) end [2025-02-11 08:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:44:23] Production.INFO: ==25209== Releasing lock... [2025-02-11 08:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:44:23] Production.INFO: 33.75 MB #Memory Used# [2025-02-11 08:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:45:04 [end_date_ymd] => 2025-02-11 08:45:04 [RateCDR] => 1 ) [2025-02-11 08:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:45:04' and `end` < '2025-02-11 08:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:45:17] Production.INFO: count ==779 [2025-02-11 08:45:18] Production.ERROR: pbx CDR StartTime 2025-02-11 05:45:04 - End Time 2025-02-11 08:45:04 [2025-02-11 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450598', 'tblTempUsageDetail_20' ) start [2025-02-11 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450598', 'tblTempUsageDetail_20' ) end [2025-02-11 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450598', 'tblTempVendorCDR_20' ) start [2025-02-11 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450598', 'tblTempVendorCDR_20' ) end [2025-02-11 08:45:18] Production.INFO: ProcessCDR(1,14450598,1,1,2) [2025-02-11 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450598', 'tblTempUsageDetail_20' ) start [2025-02-11 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450598', 'tblTempUsageDetail_20' ) end [2025-02-11 08:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:45:22] Production.INFO: ==25327== Releasing lock... [2025-02-11 08:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:45:22] Production.INFO: 34 MB #Memory Used# [2025-02-11 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:46:05 [end_date_ymd] => 2025-02-11 08:46:05 [RateCDR] => 1 ) [2025-02-11 08:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:46:05' and `end` < '2025-02-11 08:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:46:18] Production.INFO: count ==795 [2025-02-11 08:46:18] Production.ERROR: pbx CDR StartTime 2025-02-11 05:46:05 - End Time 2025-02-11 08:46:05 [2025-02-11 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450603', 'tblTempUsageDetail_20' ) start [2025-02-11 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450603', 'tblTempUsageDetail_20' ) end [2025-02-11 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450603', 'tblTempVendorCDR_20' ) start [2025-02-11 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450603', 'tblTempVendorCDR_20' ) end [2025-02-11 08:46:19] Production.INFO: ProcessCDR(1,14450603,1,1,2) [2025-02-11 08:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450603', 'tblTempUsageDetail_20' ) start [2025-02-11 08:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450603', 'tblTempUsageDetail_20' ) end [2025-02-11 08:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:46:24] Production.INFO: ==25443== Releasing lock... [2025-02-11 08:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:46:24] Production.INFO: 34.25 MB #Memory Used# [2025-02-11 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:47:05 [end_date_ymd] => 2025-02-11 08:47:05 [RateCDR] => 1 ) [2025-02-11 08:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:47:05' and `end` < '2025-02-11 08:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:47:18] Production.INFO: count ==805 [2025-02-11 08:47:18] Production.ERROR: pbx CDR StartTime 2025-02-11 05:47:05 - End Time 2025-02-11 08:47:05 [2025-02-11 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450608', 'tblTempUsageDetail_20' ) start [2025-02-11 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450608', 'tblTempUsageDetail_20' ) end [2025-02-11 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450608', 'tblTempVendorCDR_20' ) start [2025-02-11 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450608', 'tblTempVendorCDR_20' ) end [2025-02-11 08:47:18] Production.INFO: ProcessCDR(1,14450608,1,1,2) [2025-02-11 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450608', 'tblTempUsageDetail_20' ) start [2025-02-11 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450608', 'tblTempUsageDetail_20' ) end [2025-02-11 08:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:47:21] Production.INFO: ==25562== Releasing lock... [2025-02-11 08:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:47:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-11 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:48:05 [end_date_ymd] => 2025-02-11 08:48:05 [RateCDR] => 1 ) [2025-02-11 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-02-11 05:48:05' and `end` < '2025-02-11 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-02-11 08:48:18] Production.INFO: count ==808 [2025-02-11 08:48:18] Production.ERROR: pbx CDR StartTime 2025-02-11 05:48:05 - End Time 2025-02-11 08:48:05 [2025-02-11 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450613', 'tblTempUsageDetail_20' ) start [2025-02-11 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450613', 'tblTempUsageDetail_20' ) end [2025-02-11 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450613', 'tblTempVendorCDR_20' ) start [2025-02-11 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450613', 'tblTempVendorCDR_20' ) end [2025-02-11 08:48:18] Production.INFO: ProcessCDR(1,14450613,1,1,2) [2025-02-11 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450613', 'tblTempUsageDetail_20' ) start [2025-02-11 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450613', 'tblTempUsageDetail_20' ) end [2025-02-11 08:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:48:23] Production.INFO: ==25711== Releasing lock... [2025-02-11 08:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:48:23] Production.INFO: 34.5 MB #Memory Used# [2025-02-11 08:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:49:04 [end_date_ymd] => 2025-02-11 08:49:04 [RateCDR] => 1 ) [2025-02-11 08:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:49:04' and `end` < '2025-02-11 08:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:49:17] Production.INFO: count ==810 [2025-02-11 08:49:18] Production.ERROR: pbx CDR StartTime 2025-02-11 05:49:04 - End Time 2025-02-11 08:49:04 [2025-02-11 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450618', 'tblTempUsageDetail_20' ) start [2025-02-11 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450618', 'tblTempUsageDetail_20' ) end [2025-02-11 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450618', 'tblTempVendorCDR_20' ) start [2025-02-11 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450618', 'tblTempVendorCDR_20' ) end [2025-02-11 08:49:18] Production.INFO: ProcessCDR(1,14450618,1,1,2) [2025-02-11 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450618', 'tblTempUsageDetail_20' ) start [2025-02-11 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450618', 'tblTempUsageDetail_20' ) end [2025-02-11 08:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:49:22] Production.INFO: ==25830== Releasing lock... [2025-02-11 08:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:49:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-11 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:50:06 [end_date_ymd] => 2025-02-11 08:50:06 [RateCDR] => 1 ) [2025-02-11 08:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:50:06' and `end` < '2025-02-11 08:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:50:19] Production.INFO: count ==821 [2025-02-11 08:50:20] Production.ERROR: pbx CDR StartTime 2025-02-11 05:50:06 - End Time 2025-02-11 08:50:06 [2025-02-11 08:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450624', 'tblTempUsageDetail_20' ) start [2025-02-11 08:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450624', 'tblTempUsageDetail_20' ) end [2025-02-11 08:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450624', 'tblTempVendorCDR_20' ) start [2025-02-11 08:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450624', 'tblTempVendorCDR_20' ) end [2025-02-11 08:50:20] Production.INFO: ProcessCDR(1,14450624,1,1,2) [2025-02-11 08:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450624', 'tblTempUsageDetail_20' ) start [2025-02-11 08:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450624', 'tblTempUsageDetail_20' ) end [2025-02-11 08:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:50:24] Production.INFO: ==25949== Releasing lock... [2025-02-11 08:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:50:24] Production.INFO: 34.25 MB #Memory Used# [2025-02-11 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:51:05 [end_date_ymd] => 2025-02-11 08:51:05 [RateCDR] => 1 ) [2025-02-11 08:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:51:05' and `end` < '2025-02-11 08:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:51:18] Production.INFO: count ==851 [2025-02-11 08:51:18] Production.ERROR: pbx CDR StartTime 2025-02-11 05:51:05 - End Time 2025-02-11 08:51:05 [2025-02-11 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450629', 'tblTempUsageDetail_20' ) start [2025-02-11 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450629', 'tblTempUsageDetail_20' ) end [2025-02-11 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450629', 'tblTempVendorCDR_20' ) start [2025-02-11 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450629', 'tblTempVendorCDR_20' ) end [2025-02-11 08:51:18] Production.INFO: ProcessCDR(1,14450629,1,1,2) [2025-02-11 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450629', 'tblTempUsageDetail_20' ) start [2025-02-11 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450629', 'tblTempUsageDetail_20' ) end [2025-02-11 08:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:51:22] Production.INFO: ==26070== Releasing lock... [2025-02-11 08:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:51:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-11 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:52:05 [end_date_ymd] => 2025-02-11 08:52:05 [RateCDR] => 1 ) [2025-02-11 08:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:52:05' and `end` < '2025-02-11 08:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:52:18] Production.INFO: count ==858 [2025-02-11 08:52:18] Production.ERROR: pbx CDR StartTime 2025-02-11 05:52:05 - End Time 2025-02-11 08:52:05 [2025-02-11 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450634', 'tblTempUsageDetail_20' ) start [2025-02-11 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450634', 'tblTempUsageDetail_20' ) end [2025-02-11 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450634', 'tblTempVendorCDR_20' ) start [2025-02-11 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450634', 'tblTempVendorCDR_20' ) end [2025-02-11 08:52:18] Production.INFO: ProcessCDR(1,14450634,1,1,2) [2025-02-11 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450634', 'tblTempUsageDetail_20' ) start [2025-02-11 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450634', 'tblTempUsageDetail_20' ) end [2025-02-11 08:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:52:23] Production.INFO: ==26196== Releasing lock... [2025-02-11 08:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:52:23] Production.INFO: 34 MB #Memory Used# [2025-02-11 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:53:05 [end_date_ymd] => 2025-02-11 08:53:05 [RateCDR] => 1 ) [2025-02-11 08:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:53:05' and `end` < '2025-02-11 08:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:53:18] Production.INFO: count ==862 [2025-02-11 08:53:19] Production.ERROR: pbx CDR StartTime 2025-02-11 05:53:05 - End Time 2025-02-11 08:53:05 [2025-02-11 08:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450639', 'tblTempUsageDetail_20' ) start [2025-02-11 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450639', 'tblTempUsageDetail_20' ) end [2025-02-11 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450639', 'tblTempVendorCDR_20' ) start [2025-02-11 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450639', 'tblTempVendorCDR_20' ) end [2025-02-11 08:53:19] Production.INFO: ProcessCDR(1,14450639,1,1,2) [2025-02-11 08:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450639', 'tblTempUsageDetail_20' ) start [2025-02-11 08:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450639', 'tblTempUsageDetail_20' ) end [2025-02-11 08:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:53:24] Production.INFO: ==26320== Releasing lock... [2025-02-11 08:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:53:24] Production.INFO: 34.75 MB #Memory Used# [2025-02-11 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:54:05 [end_date_ymd] => 2025-02-11 08:54:05 [RateCDR] => 1 ) [2025-02-11 08:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:54:05' and `end` < '2025-02-11 08:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:54:19] Production.INFO: count ==871 [2025-02-11 08:54:19] Production.ERROR: pbx CDR StartTime 2025-02-11 05:54:05 - End Time 2025-02-11 08:54:05 [2025-02-11 08:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450644', 'tblTempUsageDetail_20' ) start [2025-02-11 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450644', 'tblTempUsageDetail_20' ) end [2025-02-11 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450644', 'tblTempVendorCDR_20' ) start [2025-02-11 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450644', 'tblTempVendorCDR_20' ) end [2025-02-11 08:54:19] Production.INFO: ProcessCDR(1,14450644,1,1,2) [2025-02-11 08:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450644', 'tblTempUsageDetail_20' ) start [2025-02-11 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450644', 'tblTempUsageDetail_20' ) end [2025-02-11 08:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:54:23] Production.INFO: ==26401== Releasing lock... [2025-02-11 08:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:54:23] Production.INFO: 35 MB #Memory Used# [2025-02-11 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:55:05 [end_date_ymd] => 2025-02-11 08:55:05 [RateCDR] => 1 ) [2025-02-11 08:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:55:05' and `end` < '2025-02-11 08:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:55:18] Production.INFO: count ==872 [2025-02-11 08:55:19] Production.ERROR: pbx CDR StartTime 2025-02-11 05:55:05 - End Time 2025-02-11 08:55:05 [2025-02-11 08:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450649', 'tblTempUsageDetail_20' ) start [2025-02-11 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450649', 'tblTempUsageDetail_20' ) end [2025-02-11 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450649', 'tblTempVendorCDR_20' ) start [2025-02-11 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450649', 'tblTempVendorCDR_20' ) end [2025-02-11 08:55:19] Production.INFO: ProcessCDR(1,14450649,1,1,2) [2025-02-11 08:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450649', 'tblTempUsageDetail_20' ) start [2025-02-11 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450649', 'tblTempUsageDetail_20' ) end [2025-02-11 08:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:55:22] Production.INFO: ==26479== Releasing lock... [2025-02-11 08:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:55:22] Production.INFO: 35 MB #Memory Used# [2025-02-11 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:56:05 [end_date_ymd] => 2025-02-11 08:56:05 [RateCDR] => 1 ) [2025-02-11 08:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:56:05' and `end` < '2025-02-11 08:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:56:18] Production.INFO: count ==873 [2025-02-11 08:56:18] Production.ERROR: pbx CDR StartTime 2025-02-11 05:56:05 - End Time 2025-02-11 08:56:05 [2025-02-11 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450654', 'tblTempUsageDetail_20' ) start [2025-02-11 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450654', 'tblTempUsageDetail_20' ) end [2025-02-11 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450654', 'tblTempVendorCDR_20' ) start [2025-02-11 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450654', 'tblTempVendorCDR_20' ) end [2025-02-11 08:56:18] Production.INFO: ProcessCDR(1,14450654,1,1,2) [2025-02-11 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450654', 'tblTempUsageDetail_20' ) start [2025-02-11 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450654', 'tblTempUsageDetail_20' ) end [2025-02-11 08:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:56:23] Production.INFO: ==26556== Releasing lock... [2025-02-11 08:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:56:23] Production.INFO: 34.5 MB #Memory Used# [2025-02-11 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:57:05 [end_date_ymd] => 2025-02-11 08:57:05 [RateCDR] => 1 ) [2025-02-11 08:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:57:05' and `end` < '2025-02-11 08:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:57:18] Production.INFO: count ==878 [2025-02-11 08:57:19] Production.ERROR: pbx CDR StartTime 2025-02-11 05:57:05 - End Time 2025-02-11 08:57:05 [2025-02-11 08:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450659', 'tblTempUsageDetail_20' ) start [2025-02-11 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450659', 'tblTempUsageDetail_20' ) end [2025-02-11 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450659', 'tblTempVendorCDR_20' ) start [2025-02-11 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450659', 'tblTempVendorCDR_20' ) end [2025-02-11 08:57:19] Production.INFO: ProcessCDR(1,14450659,1,1,2) [2025-02-11 08:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450659', 'tblTempUsageDetail_20' ) start [2025-02-11 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450659', 'tblTempUsageDetail_20' ) end [2025-02-11 08:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:57:22] Production.INFO: ==26635== Releasing lock... [2025-02-11 08:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:57:22] Production.INFO: 35 MB #Memory Used# [2025-02-11 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:58:05 [end_date_ymd] => 2025-02-11 08:58:05 [RateCDR] => 1 ) [2025-02-11 08:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:58:05' and `end` < '2025-02-11 08:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:58:18] Production.INFO: count ==878 [2025-02-11 08:58:19] Production.ERROR: pbx CDR StartTime 2025-02-11 05:58:05 - End Time 2025-02-11 08:58:05 [2025-02-11 08:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450664', 'tblTempUsageDetail_20' ) start [2025-02-11 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450664', 'tblTempUsageDetail_20' ) end [2025-02-11 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450664', 'tblTempVendorCDR_20' ) start [2025-02-11 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450664', 'tblTempVendorCDR_20' ) end [2025-02-11 08:58:19] Production.INFO: ProcessCDR(1,14450664,1,1,2) [2025-02-11 08:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450664', 'tblTempUsageDetail_20' ) start [2025-02-11 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450664', 'tblTempUsageDetail_20' ) end [2025-02-11 08:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:58:22] Production.INFO: ==26713== Releasing lock... [2025-02-11 08:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:58:22] Production.INFO: 35 MB #Memory Used# [2025-02-11 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 05:59:05 [end_date_ymd] => 2025-02-11 08:59:05 [RateCDR] => 1 ) [2025-02-11 08:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 05:59:05' and `end` < '2025-02-11 08:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 08:59:18] Production.INFO: count ==885 [2025-02-11 08:59:18] Production.ERROR: pbx CDR StartTime 2025-02-11 05:59:05 - End Time 2025-02-11 08:59:05 [2025-02-11 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450669', 'tblTempUsageDetail_20' ) start [2025-02-11 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450669', 'tblTempUsageDetail_20' ) end [2025-02-11 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450669', 'tblTempVendorCDR_20' ) start [2025-02-11 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450669', 'tblTempVendorCDR_20' ) end [2025-02-11 08:59:18] Production.INFO: ProcessCDR(1,14450669,1,1,2) [2025-02-11 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 08:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450669', 'tblTempUsageDetail_20' ) start [2025-02-11 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450669', 'tblTempUsageDetail_20' ) end [2025-02-11 08:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 08:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 08:59:22] Production.INFO: ==26800== Releasing lock... [2025-02-11 08:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 08:59:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-11 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:00:06 [end_date_ymd] => 2025-02-11 09:00:06 [RateCDR] => 1 ) [2025-02-11 09:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:00:06' and `end` < '2025-02-11 09:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:00:19] Production.INFO: count ==899 [2025-02-11 09:00:19] Production.ERROR: pbx CDR StartTime 2025-02-11 06:00:06 - End Time 2025-02-11 09:00:06 [2025-02-11 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450675', 'tblTempUsageDetail_20' ) start [2025-02-11 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450675', 'tblTempUsageDetail_20' ) end [2025-02-11 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450675', 'tblTempVendorCDR_20' ) start [2025-02-11 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450675', 'tblTempVendorCDR_20' ) end [2025-02-11 09:00:19] Production.INFO: ProcessCDR(1,14450675,1,1,2) [2025-02-11 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450675', 'tblTempUsageDetail_20' ) start [2025-02-11 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450675', 'tblTempUsageDetail_20' ) end [2025-02-11 09:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:00:24] Production.INFO: ==26879== Releasing lock... [2025-02-11 09:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:00:24] Production.INFO: 34.25 MB #Memory Used# [2025-02-11 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:01:05 [end_date_ymd] => 2025-02-11 09:01:05 [RateCDR] => 1 ) [2025-02-11 09:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:01:05' and `end` < '2025-02-11 09:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:01:18] Production.INFO: count ==957 [2025-02-11 09:01:19] Production.ERROR: pbx CDR StartTime 2025-02-11 06:01:05 - End Time 2025-02-11 09:01:05 [2025-02-11 09:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450680', 'tblTempUsageDetail_20' ) start [2025-02-11 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450680', 'tblTempUsageDetail_20' ) end [2025-02-11 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450680', 'tblTempVendorCDR_20' ) start [2025-02-11 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450680', 'tblTempVendorCDR_20' ) end [2025-02-11 09:01:19] Production.INFO: ProcessCDR(1,14450680,1,1,2) [2025-02-11 09:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450680', 'tblTempUsageDetail_20' ) start [2025-02-11 09:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450680', 'tblTempUsageDetail_20' ) end [2025-02-11 09:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:01:24] Production.INFO: ==26972== Releasing lock... [2025-02-11 09:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:01:24] Production.INFO: 35.5 MB #Memory Used# [2025-02-11 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:02:05 [end_date_ymd] => 2025-02-11 09:02:05 [RateCDR] => 1 ) [2025-02-11 09:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:02:05' and `end` < '2025-02-11 09:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:02:18] Production.INFO: count ==966 [2025-02-11 09:02:18] Production.ERROR: pbx CDR StartTime 2025-02-11 06:02:05 - End Time 2025-02-11 09:02:05 [2025-02-11 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450685', 'tblTempUsageDetail_20' ) start [2025-02-11 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450685', 'tblTempUsageDetail_20' ) end [2025-02-11 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450685', 'tblTempVendorCDR_20' ) start [2025-02-11 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450685', 'tblTempVendorCDR_20' ) end [2025-02-11 09:02:18] Production.INFO: ProcessCDR(1,14450685,1,1,2) [2025-02-11 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450685', 'tblTempUsageDetail_20' ) start [2025-02-11 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450685', 'tblTempUsageDetail_20' ) end [2025-02-11 09:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:02:22] Production.INFO: ==27050== Releasing lock... [2025-02-11 09:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:02:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-11 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:03:05 [end_date_ymd] => 2025-02-11 09:03:05 [RateCDR] => 1 ) [2025-02-11 09:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:03:05' and `end` < '2025-02-11 09:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:03:18] Production.INFO: count ==983 [2025-02-11 09:03:19] Production.ERROR: pbx CDR StartTime 2025-02-11 06:03:05 - End Time 2025-02-11 09:03:05 [2025-02-11 09:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450690', 'tblTempUsageDetail_20' ) start [2025-02-11 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450690', 'tblTempUsageDetail_20' ) end [2025-02-11 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450690', 'tblTempVendorCDR_20' ) start [2025-02-11 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450690', 'tblTempVendorCDR_20' ) end [2025-02-11 09:03:19] Production.INFO: ProcessCDR(1,14450690,1,1,2) [2025-02-11 09:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450690', 'tblTempUsageDetail_20' ) start [2025-02-11 09:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450690', 'tblTempUsageDetail_20' ) end [2025-02-11 09:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:03:24] Production.INFO: ==27171== Releasing lock... [2025-02-11 09:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:03:24] Production.INFO: 35.75 MB #Memory Used# [2025-02-11 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:04:05 [end_date_ymd] => 2025-02-11 09:04:05 [RateCDR] => 1 ) [2025-02-11 09:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:04:05' and `end` < '2025-02-11 09:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:04:18] Production.INFO: count ==996 [2025-02-11 09:04:18] Production.ERROR: pbx CDR StartTime 2025-02-11 06:04:05 - End Time 2025-02-11 09:04:05 [2025-02-11 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450695', 'tblTempUsageDetail_20' ) start [2025-02-11 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450695', 'tblTempUsageDetail_20' ) end [2025-02-11 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450695', 'tblTempVendorCDR_20' ) start [2025-02-11 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450695', 'tblTempVendorCDR_20' ) end [2025-02-11 09:04:18] Production.INFO: ProcessCDR(1,14450695,1,1,2) [2025-02-11 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450695', 'tblTempUsageDetail_20' ) start [2025-02-11 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450695', 'tblTempUsageDetail_20' ) end [2025-02-11 09:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:04:23] Production.INFO: ==27255== Releasing lock... [2025-02-11 09:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:04:23] Production.INFO: 35.75 MB #Memory Used# [2025-02-11 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:05:05 [end_date_ymd] => 2025-02-11 09:05:05 [RateCDR] => 1 ) [2025-02-11 09:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:05:05' and `end` < '2025-02-11 09:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:05:18] Production.INFO: count ==1015 [2025-02-11 09:05:19] Production.ERROR: pbx CDR StartTime 2025-02-11 06:05:05 - End Time 2025-02-11 09:05:05 [2025-02-11 09:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450700', 'tblTempUsageDetail_20' ) start [2025-02-11 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450700', 'tblTempUsageDetail_20' ) end [2025-02-11 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450700', 'tblTempVendorCDR_20' ) start [2025-02-11 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450700', 'tblTempVendorCDR_20' ) end [2025-02-11 09:05:19] Production.INFO: ProcessCDR(1,14450700,1,1,2) [2025-02-11 09:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450700', 'tblTempUsageDetail_20' ) start [2025-02-11 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450700', 'tblTempUsageDetail_20' ) end [2025-02-11 09:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:05:23] Production.INFO: ==27331== Releasing lock... [2025-02-11 09:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:05:23] Production.INFO: 36.5 MB #Memory Used# [2025-02-11 09:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:06:04 [end_date_ymd] => 2025-02-11 09:06:04 [RateCDR] => 1 ) [2025-02-11 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-02-11 06:06:04' and `end` < '2025-02-11 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-02-11 09:06:17] Production.INFO: count ==1030 [2025-02-11 09:06:18] Production.ERROR: pbx CDR StartTime 2025-02-11 06:06:04 - End Time 2025-02-11 09:06:04 [2025-02-11 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450705', 'tblTempUsageDetail_20' ) start [2025-02-11 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450705', 'tblTempUsageDetail_20' ) end [2025-02-11 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450705', 'tblTempVendorCDR_20' ) start [2025-02-11 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450705', 'tblTempVendorCDR_20' ) end [2025-02-11 09:06:18] Production.INFO: ProcessCDR(1,14450705,1,1,2) [2025-02-11 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450705', 'tblTempUsageDetail_20' ) start [2025-02-11 09:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450705', 'tblTempUsageDetail_20' ) end [2025-02-11 09:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:06:21] Production.INFO: ==27413== Releasing lock... [2025-02-11 09:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:06:21] Production.INFO: 35.75 MB #Memory Used# [2025-02-11 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:07:05 [end_date_ymd] => 2025-02-11 09:07:05 [RateCDR] => 1 ) [2025-02-11 09:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:07:05' and `end` < '2025-02-11 09:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:07:18] Production.INFO: count ==1049 [2025-02-11 09:07:18] Production.ERROR: pbx CDR StartTime 2025-02-11 06:07:05 - End Time 2025-02-11 09:07:05 [2025-02-11 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450710', 'tblTempUsageDetail_20' ) start [2025-02-11 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450710', 'tblTempUsageDetail_20' ) end [2025-02-11 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450710', 'tblTempVendorCDR_20' ) start [2025-02-11 09:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450710', 'tblTempVendorCDR_20' ) end [2025-02-11 09:07:19] Production.INFO: ProcessCDR(1,14450710,1,1,2) [2025-02-11 09:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450710', 'tblTempUsageDetail_20' ) start [2025-02-11 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450710', 'tblTempUsageDetail_20' ) end [2025-02-11 09:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:07:23] Production.INFO: ==27496== Releasing lock... [2025-02-11 09:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:07:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-11 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:08:05 [end_date_ymd] => 2025-02-11 09:08:05 [RateCDR] => 1 ) [2025-02-11 09:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:08:05' and `end` < '2025-02-11 09:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:08:19] Production.INFO: count ==1053 [2025-02-11 09:08:19] Production.ERROR: pbx CDR StartTime 2025-02-11 06:08:05 - End Time 2025-02-11 09:08:05 [2025-02-11 09:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450715', 'tblTempUsageDetail_20' ) start [2025-02-11 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450715', 'tblTempUsageDetail_20' ) end [2025-02-11 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450715', 'tblTempVendorCDR_20' ) start [2025-02-11 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450715', 'tblTempVendorCDR_20' ) end [2025-02-11 09:08:19] Production.INFO: ProcessCDR(1,14450715,1,1,2) [2025-02-11 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450715', 'tblTempUsageDetail_20' ) start [2025-02-11 09:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450715', 'tblTempUsageDetail_20' ) end [2025-02-11 09:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:08:24] Production.INFO: ==27583== Releasing lock... [2025-02-11 09:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:08:24] Production.INFO: 36.25 MB #Memory Used# [2025-02-11 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:09:05 [end_date_ymd] => 2025-02-11 09:09:05 [RateCDR] => 1 ) [2025-02-11 09:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:09:05' and `end` < '2025-02-11 09:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:09:18] Production.INFO: count ==1077 [2025-02-11 09:09:18] Production.ERROR: pbx CDR StartTime 2025-02-11 06:09:05 - End Time 2025-02-11 09:09:05 [2025-02-11 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450720', 'tblTempUsageDetail_20' ) start [2025-02-11 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450720', 'tblTempUsageDetail_20' ) end [2025-02-11 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450720', 'tblTempVendorCDR_20' ) start [2025-02-11 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450720', 'tblTempVendorCDR_20' ) end [2025-02-11 09:09:18] Production.INFO: ProcessCDR(1,14450720,1,1,2) [2025-02-11 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450720', 'tblTempUsageDetail_20' ) start [2025-02-11 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450720', 'tblTempUsageDetail_20' ) end [2025-02-11 09:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:09:23] Production.INFO: ==27692== Releasing lock... [2025-02-11 09:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:09:23] Production.INFO: 36.5 MB #Memory Used# [2025-02-11 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:10:06 [end_date_ymd] => 2025-02-11 09:10:06 [RateCDR] => 1 ) [2025-02-11 09:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:10:06' and `end` < '2025-02-11 09:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:10:19] Production.INFO: count ==1121 [2025-02-11 09:10:19] Production.ERROR: pbx CDR StartTime 2025-02-11 06:10:06 - End Time 2025-02-11 09:10:06 [2025-02-11 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450725', 'tblTempUsageDetail_20' ) start [2025-02-11 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450725', 'tblTempUsageDetail_20' ) end [2025-02-11 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450725', 'tblTempVendorCDR_20' ) start [2025-02-11 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450725', 'tblTempVendorCDR_20' ) end [2025-02-11 09:10:19] Production.INFO: ProcessCDR(1,14450725,1,1,2) [2025-02-11 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450725', 'tblTempUsageDetail_20' ) start [2025-02-11 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450725', 'tblTempUsageDetail_20' ) end [2025-02-11 09:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:10:24] Production.INFO: ==27778== Releasing lock... [2025-02-11 09:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:10:24] Production.INFO: 36.75 MB #Memory Used# [2025-02-11 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:11:05 [end_date_ymd] => 2025-02-11 09:11:05 [RateCDR] => 1 ) [2025-02-11 09:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:11:05' and `end` < '2025-02-11 09:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:11:18] Production.INFO: count ==1223 [2025-02-11 09:11:18] Production.ERROR: pbx CDR StartTime 2025-02-11 06:11:05 - End Time 2025-02-11 09:11:05 [2025-02-11 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450731', 'tblTempUsageDetail_20' ) start [2025-02-11 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450731', 'tblTempUsageDetail_20' ) end [2025-02-11 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450731', 'tblTempVendorCDR_20' ) start [2025-02-11 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450731', 'tblTempVendorCDR_20' ) end [2025-02-11 09:11:18] Production.INFO: ProcessCDR(1,14450731,1,1,2) [2025-02-11 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450731', 'tblTempUsageDetail_20' ) start [2025-02-11 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450731', 'tblTempUsageDetail_20' ) end [2025-02-11 09:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:11:23] Production.INFO: ==27862== Releasing lock... [2025-02-11 09:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:11:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-11 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:12:05 [end_date_ymd] => 2025-02-11 09:12:05 [RateCDR] => 1 ) [2025-02-11 09:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:12:05' and `end` < '2025-02-11 09:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:12:18] Production.INFO: count ==1250 [2025-02-11 09:12:19] Production.ERROR: pbx CDR StartTime 2025-02-11 06:12:05 - End Time 2025-02-11 09:12:05 [2025-02-11 09:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450736', 'tblTempUsageDetail_20' ) start [2025-02-11 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450736', 'tblTempUsageDetail_20' ) end [2025-02-11 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450736', 'tblTempVendorCDR_20' ) start [2025-02-11 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450736', 'tblTempVendorCDR_20' ) end [2025-02-11 09:12:19] Production.INFO: ProcessCDR(1,14450736,1,1,2) [2025-02-11 09:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450736', 'tblTempUsageDetail_20' ) start [2025-02-11 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450736', 'tblTempUsageDetail_20' ) end [2025-02-11 09:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:12:24] Production.INFO: ==27943== Releasing lock... [2025-02-11 09:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:12:24] Production.INFO: 37.75 MB #Memory Used# [2025-02-11 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:13:05 [end_date_ymd] => 2025-02-11 09:13:05 [RateCDR] => 1 ) [2025-02-11 09:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:13:05' and `end` < '2025-02-11 09:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:13:18] Production.INFO: count ==1261 [2025-02-11 09:13:19] Production.ERROR: pbx CDR StartTime 2025-02-11 06:13:05 - End Time 2025-02-11 09:13:05 [2025-02-11 09:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450737', 'tblTempUsageDetail_20' ) start [2025-02-11 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450737', 'tblTempUsageDetail_20' ) end [2025-02-11 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450737', 'tblTempVendorCDR_20' ) start [2025-02-11 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450737', 'tblTempVendorCDR_20' ) end [2025-02-11 09:13:19] Production.INFO: ProcessCDR(1,14450737,1,1,2) [2025-02-11 09:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450737', 'tblTempUsageDetail_20' ) start [2025-02-11 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450737', 'tblTempUsageDetail_20' ) end [2025-02-11 09:13:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:13:24] Production.INFO: ==28023== Releasing lock... [2025-02-11 09:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:13:24] Production.INFO: 37.75 MB #Memory Used# [2025-02-11 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:14:05 [end_date_ymd] => 2025-02-11 09:14:05 [RateCDR] => 1 ) [2025-02-11 09:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:14:05' and `end` < '2025-02-11 09:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:14:18] Production.INFO: count ==1269 [2025-02-11 09:14:19] Production.ERROR: pbx CDR StartTime 2025-02-11 06:14:05 - End Time 2025-02-11 09:14:05 [2025-02-11 09:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450746', 'tblTempUsageDetail_20' ) start [2025-02-11 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450746', 'tblTempUsageDetail_20' ) end [2025-02-11 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450746', 'tblTempVendorCDR_20' ) start [2025-02-11 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450746', 'tblTempVendorCDR_20' ) end [2025-02-11 09:14:19] Production.INFO: ProcessCDR(1,14450746,1,1,2) [2025-02-11 09:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450746', 'tblTempUsageDetail_20' ) start [2025-02-11 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450746', 'tblTempUsageDetail_20' ) end [2025-02-11 09:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:14:24] Production.INFO: ==28102== Releasing lock... [2025-02-11 09:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:14:24] Production.INFO: 37.5 MB #Memory Used# [2025-02-11 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:15:05 [end_date_ymd] => 2025-02-11 09:15:05 [RateCDR] => 1 ) [2025-02-11 09:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:15:05' and `end` < '2025-02-11 09:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:15:18] Production.INFO: count ==1269 [2025-02-11 09:15:18] Production.ERROR: pbx CDR StartTime 2025-02-11 06:15:05 - End Time 2025-02-11 09:15:05 [2025-02-11 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450751', 'tblTempUsageDetail_20' ) start [2025-02-11 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450751', 'tblTempUsageDetail_20' ) end [2025-02-11 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450751', 'tblTempVendorCDR_20' ) start [2025-02-11 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450751', 'tblTempVendorCDR_20' ) end [2025-02-11 09:15:18] Production.INFO: ProcessCDR(1,14450751,1,1,2) [2025-02-11 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450751', 'tblTempUsageDetail_20' ) start [2025-02-11 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450751', 'tblTempUsageDetail_20' ) end [2025-02-11 09:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:15:23] Production.INFO: ==28185== Releasing lock... [2025-02-11 09:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:15:23] Production.INFO: 38 MB #Memory Used# [2025-02-11 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:16:05 [end_date_ymd] => 2025-02-11 09:16:05 [RateCDR] => 1 ) [2025-02-11 09:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:16:05' and `end` < '2025-02-11 09:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:16:19] Production.INFO: count ==1273 [2025-02-11 09:16:20] Production.ERROR: pbx CDR StartTime 2025-02-11 06:16:05 - End Time 2025-02-11 09:16:05 [2025-02-11 09:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450756', 'tblTempUsageDetail_20' ) start [2025-02-11 09:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450756', 'tblTempUsageDetail_20' ) end [2025-02-11 09:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450756', 'tblTempVendorCDR_20' ) start [2025-02-11 09:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450756', 'tblTempVendorCDR_20' ) end [2025-02-11 09:16:20] Production.INFO: ProcessCDR(1,14450756,1,1,2) [2025-02-11 09:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450756', 'tblTempUsageDetail_20' ) start [2025-02-11 09:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450756', 'tblTempUsageDetail_20' ) end [2025-02-11 09:16:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:16:25] Production.INFO: ==28267== Releasing lock... [2025-02-11 09:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:16:25] Production.INFO: 37.5 MB #Memory Used# [2025-02-11 09:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:17:04 [end_date_ymd] => 2025-02-11 09:17:04 [RateCDR] => 1 ) [2025-02-11 09:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:17:04' and `end` < '2025-02-11 09:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:17:21] Production.INFO: count ==1294 [2025-02-11 09:17:21] Production.ERROR: pbx CDR StartTime 2025-02-11 06:17:04 - End Time 2025-02-11 09:17:04 [2025-02-11 09:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450761', 'tblTempUsageDetail_20' ) start [2025-02-11 09:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450761', 'tblTempUsageDetail_20' ) end [2025-02-11 09:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450761', 'tblTempVendorCDR_20' ) start [2025-02-11 09:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450761', 'tblTempVendorCDR_20' ) end [2025-02-11 09:17:21] Production.INFO: ProcessCDR(1,14450761,1,1,2) [2025-02-11 09:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450761', 'tblTempUsageDetail_20' ) start [2025-02-11 09:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450761', 'tblTempUsageDetail_20' ) end [2025-02-11 09:17:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:17:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:17:26] Production.INFO: ==28346== Releasing lock... [2025-02-11 09:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:17:26] Production.INFO: 37.75 MB #Memory Used# [2025-02-11 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:18:05 [end_date_ymd] => 2025-02-11 09:18:05 [RateCDR] => 1 ) [2025-02-11 09:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:18:05' and `end` < '2025-02-11 09:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:18:24] Production.INFO: count ==1310 [2025-02-11 09:18:25] Production.ERROR: pbx CDR StartTime 2025-02-11 06:18:05 - End Time 2025-02-11 09:18:05 [2025-02-11 09:18:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450766', 'tblTempUsageDetail_20' ) start [2025-02-11 09:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450766', 'tblTempUsageDetail_20' ) end [2025-02-11 09:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450766', 'tblTempVendorCDR_20' ) start [2025-02-11 09:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450766', 'tblTempVendorCDR_20' ) end [2025-02-11 09:18:25] Production.INFO: ProcessCDR(1,14450766,1,1,2) [2025-02-11 09:18:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:18:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:18:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:18:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450766', 'tblTempUsageDetail_20' ) start [2025-02-11 09:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450766', 'tblTempUsageDetail_20' ) end [2025-02-11 09:18:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:18:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:18:30] Production.INFO: ==28433== Releasing lock... [2025-02-11 09:18:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:18:30] Production.INFO: 38 MB #Memory Used# [2025-02-11 09:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:19:04 [end_date_ymd] => 2025-02-11 09:19:04 [RateCDR] => 1 ) [2025-02-11 09:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:19:04' and `end` < '2025-02-11 09:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:19:30] Production.INFO: count ==1321 [2025-02-11 09:19:31] Production.ERROR: pbx CDR StartTime 2025-02-11 06:19:04 - End Time 2025-02-11 09:19:04 [2025-02-11 09:19:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:19:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450771', 'tblTempUsageDetail_20' ) start [2025-02-11 09:19:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450771', 'tblTempUsageDetail_20' ) end [2025-02-11 09:19:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450771', 'tblTempVendorCDR_20' ) start [2025-02-11 09:19:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450771', 'tblTempVendorCDR_20' ) end [2025-02-11 09:19:31] Production.INFO: ProcessCDR(1,14450771,1,1,2) [2025-02-11 09:19:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:19:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:19:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:19:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:19:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450771', 'tblTempUsageDetail_20' ) start [2025-02-11 09:19:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450771', 'tblTempUsageDetail_20' ) end [2025-02-11 09:19:36] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:19:36] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:19:36] Production.INFO: ==28551== Releasing lock... [2025-02-11 09:19:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:19:36] Production.INFO: 38 MB #Memory Used# [2025-02-11 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:20:06 [end_date_ymd] => 2025-02-11 09:20:06 [RateCDR] => 1 ) [2025-02-11 09:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:20:06' and `end` < '2025-02-11 09:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:20:25] Production.INFO: count ==1348 [2025-02-11 09:20:26] Production.ERROR: pbx CDR StartTime 2025-02-11 06:20:06 - End Time 2025-02-11 09:20:06 [2025-02-11 09:20:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450777', 'tblTempUsageDetail_20' ) start [2025-02-11 09:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450777', 'tblTempUsageDetail_20' ) end [2025-02-11 09:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450777', 'tblTempVendorCDR_20' ) start [2025-02-11 09:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450777', 'tblTempVendorCDR_20' ) end [2025-02-11 09:20:26] Production.INFO: ProcessCDR(1,14450777,1,1,2) [2025-02-11 09:20:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:20:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:20:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:20:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:20:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450777', 'tblTempUsageDetail_20' ) start [2025-02-11 09:20:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450777', 'tblTempUsageDetail_20' ) end [2025-02-11 09:20:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:20:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:20:31] Production.INFO: ==28636== Releasing lock... [2025-02-11 09:20:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:20:31] Production.INFO: 38.5 MB #Memory Used# [2025-02-11 09:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:21:06 [end_date_ymd] => 2025-02-11 09:21:06 [RateCDR] => 1 ) [2025-02-11 09:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:21:06' and `end` < '2025-02-11 09:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:21:22] Production.INFO: count ==1466 [2025-02-11 09:21:22] Production.ERROR: pbx CDR StartTime 2025-02-11 06:21:06 - End Time 2025-02-11 09:21:06 [2025-02-11 09:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450782', 'tblTempUsageDetail_20' ) start [2025-02-11 09:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450782', 'tblTempUsageDetail_20' ) end [2025-02-11 09:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450782', 'tblTempVendorCDR_20' ) start [2025-02-11 09:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450782', 'tblTempVendorCDR_20' ) end [2025-02-11 09:21:22] Production.INFO: ProcessCDR(1,14450782,1,1,2) [2025-02-11 09:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450782', 'tblTempUsageDetail_20' ) start [2025-02-11 09:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450782', 'tblTempUsageDetail_20' ) end [2025-02-11 09:21:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:21:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:21:27] Production.INFO: ==28725== Releasing lock... [2025-02-11 09:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:21:27] Production.INFO: 39 MB #Memory Used# [2025-02-11 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:22:05 [end_date_ymd] => 2025-02-11 09:22:05 [RateCDR] => 1 ) [2025-02-11 09:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:22:05' and `end` < '2025-02-11 09:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:22:22] Production.INFO: count ==1492 [2025-02-11 09:22:23] Production.ERROR: pbx CDR StartTime 2025-02-11 06:22:05 - End Time 2025-02-11 09:22:05 [2025-02-11 09:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450787', 'tblTempUsageDetail_20' ) start [2025-02-11 09:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450787', 'tblTempUsageDetail_20' ) end [2025-02-11 09:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450787', 'tblTempVendorCDR_20' ) start [2025-02-11 09:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450787', 'tblTempVendorCDR_20' ) end [2025-02-11 09:22:23] Production.INFO: ProcessCDR(1,14450787,1,1,2) [2025-02-11 09:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450787', 'tblTempUsageDetail_20' ) start [2025-02-11 09:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450787', 'tblTempUsageDetail_20' ) end [2025-02-11 09:22:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:22:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:22:28] Production.INFO: ==28827== Releasing lock... [2025-02-11 09:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:22:28] Production.INFO: 39.25 MB #Memory Used# [2025-02-11 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:23:05 [end_date_ymd] => 2025-02-11 09:23:05 [RateCDR] => 1 ) [2025-02-11 09:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:23:05' and `end` < '2025-02-11 09:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:23:20] Production.INFO: count ==1493 [2025-02-11 09:23:21] Production.ERROR: pbx CDR StartTime 2025-02-11 06:23:05 - End Time 2025-02-11 09:23:05 [2025-02-11 09:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450792', 'tblTempUsageDetail_20' ) start [2025-02-11 09:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450792', 'tblTempUsageDetail_20' ) end [2025-02-11 09:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450792', 'tblTempVendorCDR_20' ) start [2025-02-11 09:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450792', 'tblTempVendorCDR_20' ) end [2025-02-11 09:23:21] Production.INFO: ProcessCDR(1,14450792,1,1,2) [2025-02-11 09:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450792', 'tblTempUsageDetail_20' ) start [2025-02-11 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450792', 'tblTempUsageDetail_20' ) end [2025-02-11 09:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:23:24] Production.INFO: ==28918== Releasing lock... [2025-02-11 09:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:23:24] Production.INFO: 39.25 MB #Memory Used# [2025-02-11 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:24:05 [end_date_ymd] => 2025-02-11 09:24:05 [RateCDR] => 1 ) [2025-02-11 09:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:24:05' and `end` < '2025-02-11 09:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:24:32] Production.INFO: count ==1521 [2025-02-11 09:24:32] Production.ERROR: pbx CDR StartTime 2025-02-11 06:24:05 - End Time 2025-02-11 09:24:05 [2025-02-11 09:24:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:24:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450797', 'tblTempUsageDetail_20' ) start [2025-02-11 09:24:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450797', 'tblTempUsageDetail_20' ) end [2025-02-11 09:24:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450797', 'tblTempVendorCDR_20' ) start [2025-02-11 09:24:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450797', 'tblTempVendorCDR_20' ) end [2025-02-11 09:24:32] Production.INFO: ProcessCDR(1,14450797,1,1,2) [2025-02-11 09:24:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:24:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:24:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:24:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:24:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450797', 'tblTempUsageDetail_20' ) start [2025-02-11 09:24:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450797', 'tblTempUsageDetail_20' ) end [2025-02-11 09:24:38] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:24:38] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:24:38] Production.INFO: ==29002== Releasing lock... [2025-02-11 09:24:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:24:38] Production.INFO: 39.5 MB #Memory Used# [2025-02-11 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:25:05 [end_date_ymd] => 2025-02-11 09:25:05 [RateCDR] => 1 ) [2025-02-11 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:25:05' and `end` < '2025-02-11 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:25:28] Production.INFO: count ==1535 [2025-02-11 09:25:29] Production.ERROR: pbx CDR StartTime 2025-02-11 06:25:05 - End Time 2025-02-11 09:25:05 [2025-02-11 09:25:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450802', 'tblTempUsageDetail_20' ) start [2025-02-11 09:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450802', 'tblTempUsageDetail_20' ) end [2025-02-11 09:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450802', 'tblTempVendorCDR_20' ) start [2025-02-11 09:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450802', 'tblTempVendorCDR_20' ) end [2025-02-11 09:25:29] Production.INFO: ProcessCDR(1,14450802,1,1,2) [2025-02-11 09:25:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:25:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:25:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450802', 'tblTempUsageDetail_20' ) start [2025-02-11 09:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450802', 'tblTempUsageDetail_20' ) end [2025-02-11 09:25:34] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:25:34] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:25:34] Production.INFO: ==29081== Releasing lock... [2025-02-11 09:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:25:34] Production.INFO: 39.75 MB #Memory Used# [2025-02-11 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:26:05 [end_date_ymd] => 2025-02-11 09:26:05 [RateCDR] => 1 ) [2025-02-11 09:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:26:05' and `end` < '2025-02-11 09:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:26:24] Production.INFO: count ==1557 [2025-02-11 09:26:24] Production.ERROR: pbx CDR StartTime 2025-02-11 06:26:05 - End Time 2025-02-11 09:26:05 [2025-02-11 09:26:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450807', 'tblTempUsageDetail_20' ) start [2025-02-11 09:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450807', 'tblTempUsageDetail_20' ) end [2025-02-11 09:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450807', 'tblTempVendorCDR_20' ) start [2025-02-11 09:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450807', 'tblTempVendorCDR_20' ) end [2025-02-11 09:26:24] Production.INFO: ProcessCDR(1,14450807,1,1,2) [2025-02-11 09:26:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:26:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:26:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:26:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450807', 'tblTempUsageDetail_20' ) start [2025-02-11 09:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450807', 'tblTempUsageDetail_20' ) end [2025-02-11 09:26:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:26:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:26:29] Production.INFO: ==29167== Releasing lock... [2025-02-11 09:26:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:26:29] Production.INFO: 39.75 MB #Memory Used# [2025-02-11 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:27:05 [end_date_ymd] => 2025-02-11 09:27:05 [RateCDR] => 1 ) [2025-02-11 09:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:27:05' and `end` < '2025-02-11 09:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:27:22] Production.INFO: count ==1580 [2025-02-11 09:27:22] Production.ERROR: pbx CDR StartTime 2025-02-11 06:27:05 - End Time 2025-02-11 09:27:05 [2025-02-11 09:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450812', 'tblTempUsageDetail_20' ) start [2025-02-11 09:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450812', 'tblTempUsageDetail_20' ) end [2025-02-11 09:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450812', 'tblTempVendorCDR_20' ) start [2025-02-11 09:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450812', 'tblTempVendorCDR_20' ) end [2025-02-11 09:27:22] Production.INFO: ProcessCDR(1,14450812,1,1,2) [2025-02-11 09:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450812', 'tblTempUsageDetail_20' ) start [2025-02-11 09:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450812', 'tblTempUsageDetail_20' ) end [2025-02-11 09:27:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:27:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:27:27] Production.INFO: ==29245== Releasing lock... [2025-02-11 09:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:27:27] Production.INFO: 40 MB #Memory Used# [2025-02-11 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:28:05 [end_date_ymd] => 2025-02-11 09:28:05 [RateCDR] => 1 ) [2025-02-11 09:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:28:05' and `end` < '2025-02-11 09:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:28:24] Production.INFO: count ==1594 [2025-02-11 09:28:24] Production.ERROR: pbx CDR StartTime 2025-02-11 06:28:05 - End Time 2025-02-11 09:28:05 [2025-02-11 09:28:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450817', 'tblTempUsageDetail_20' ) start [2025-02-11 09:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450817', 'tblTempUsageDetail_20' ) end [2025-02-11 09:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450817', 'tblTempVendorCDR_20' ) start [2025-02-11 09:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450817', 'tblTempVendorCDR_20' ) end [2025-02-11 09:28:24] Production.INFO: ProcessCDR(1,14450817,1,1,2) [2025-02-11 09:28:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:28:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:28:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450817', 'tblTempUsageDetail_20' ) start [2025-02-11 09:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450817', 'tblTempUsageDetail_20' ) end [2025-02-11 09:28:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:28:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:28:29] Production.INFO: ==29329== Releasing lock... [2025-02-11 09:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:28:29] Production.INFO: 40 MB #Memory Used# [2025-02-11 09:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:29:06 [end_date_ymd] => 2025-02-11 09:29:06 [RateCDR] => 1 ) [2025-02-11 09:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:29:06' and `end` < '2025-02-11 09:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:29:25] Production.INFO: count ==1606 [2025-02-11 09:29:26] Production.ERROR: pbx CDR StartTime 2025-02-11 06:29:06 - End Time 2025-02-11 09:29:06 [2025-02-11 09:29:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450822', 'tblTempUsageDetail_20' ) start [2025-02-11 09:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450822', 'tblTempUsageDetail_20' ) end [2025-02-11 09:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450822', 'tblTempVendorCDR_20' ) start [2025-02-11 09:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450822', 'tblTempVendorCDR_20' ) end [2025-02-11 09:29:26] Production.INFO: ProcessCDR(1,14450822,1,1,2) [2025-02-11 09:29:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:29:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:29:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:29:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450822', 'tblTempUsageDetail_20' ) start [2025-02-11 09:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450822', 'tblTempUsageDetail_20' ) end [2025-02-11 09:29:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:29:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:29:31] Production.INFO: ==29412== Releasing lock... [2025-02-11 09:29:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:29:31] Production.INFO: 40.25 MB #Memory Used# [2025-02-11 09:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:30:05 [end_date_ymd] => 2025-02-11 09:30:05 [RateCDR] => 1 ) [2025-02-11 09:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:30:05' and `end` < '2025-02-11 09:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:30:25] Production.INFO: count ==1620 [2025-02-11 09:30:25] Production.ERROR: pbx CDR StartTime 2025-02-11 06:30:05 - End Time 2025-02-11 09:30:05 [2025-02-11 09:30:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450828', 'tblTempUsageDetail_20' ) start [2025-02-11 09:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450828', 'tblTempUsageDetail_20' ) end [2025-02-11 09:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450828', 'tblTempVendorCDR_20' ) start [2025-02-11 09:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450828', 'tblTempVendorCDR_20' ) end [2025-02-11 09:30:25] Production.INFO: ProcessCDR(1,14450828,1,1,2) [2025-02-11 09:30:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:30:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:30:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:30:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450828', 'tblTempUsageDetail_20' ) start [2025-02-11 09:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450828', 'tblTempUsageDetail_20' ) end [2025-02-11 09:30:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:30:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:30:30] Production.INFO: ==29499== Releasing lock... [2025-02-11 09:30:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:30:30] Production.INFO: 40.5 MB #Memory Used# [2025-02-11 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:31:05 [end_date_ymd] => 2025-02-11 09:31:05 [RateCDR] => 1 ) [2025-02-11 09:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:31:05' and `end` < '2025-02-11 09:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:31:22] Production.INFO: count ==1678 [2025-02-11 09:31:22] Production.ERROR: pbx CDR StartTime 2025-02-11 06:31:05 - End Time 2025-02-11 09:31:05 [2025-02-11 09:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450833', 'tblTempUsageDetail_20' ) start [2025-02-11 09:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450833', 'tblTempUsageDetail_20' ) end [2025-02-11 09:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450833', 'tblTempVendorCDR_20' ) start [2025-02-11 09:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450833', 'tblTempVendorCDR_20' ) end [2025-02-11 09:31:22] Production.INFO: ProcessCDR(1,14450833,1,1,2) [2025-02-11 09:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450833', 'tblTempUsageDetail_20' ) start [2025-02-11 09:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450833', 'tblTempUsageDetail_20' ) end [2025-02-11 09:31:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:31:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:31:27] Production.INFO: ==29581== Releasing lock... [2025-02-11 09:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:31:27] Production.INFO: 40.75 MB #Memory Used# [2025-02-11 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:32:05 [end_date_ymd] => 2025-02-11 09:32:05 [RateCDR] => 1 ) [2025-02-11 09:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:32:05' and `end` < '2025-02-11 09:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:32:19] Production.INFO: count ==1686 [2025-02-11 09:32:20] Production.ERROR: pbx CDR StartTime 2025-02-11 06:32:05 - End Time 2025-02-11 09:32:05 [2025-02-11 09:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450838', 'tblTempUsageDetail_20' ) start [2025-02-11 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450838', 'tblTempUsageDetail_20' ) end [2025-02-11 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450838', 'tblTempVendorCDR_20' ) start [2025-02-11 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450838', 'tblTempVendorCDR_20' ) end [2025-02-11 09:32:20] Production.INFO: ProcessCDR(1,14450838,1,1,2) [2025-02-11 09:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450838', 'tblTempUsageDetail_20' ) start [2025-02-11 09:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450838', 'tblTempUsageDetail_20' ) end [2025-02-11 09:32:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:32:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:32:25] Production.INFO: ==29664== Releasing lock... [2025-02-11 09:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:32:25] Production.INFO: 41.25 MB #Memory Used# [2025-02-11 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:33:05 [end_date_ymd] => 2025-02-11 09:33:05 [RateCDR] => 1 ) [2025-02-11 09:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:33:05' and `end` < '2025-02-11 09:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:33:19] Production.INFO: count ==1688 [2025-02-11 09:33:19] Production.ERROR: pbx CDR StartTime 2025-02-11 06:33:05 - End Time 2025-02-11 09:33:05 [2025-02-11 09:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450843', 'tblTempUsageDetail_20' ) start [2025-02-11 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450843', 'tblTempUsageDetail_20' ) end [2025-02-11 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450843', 'tblTempVendorCDR_20' ) start [2025-02-11 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450843', 'tblTempVendorCDR_20' ) end [2025-02-11 09:33:19] Production.INFO: ProcessCDR(1,14450843,1,1,2) [2025-02-11 09:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450843', 'tblTempUsageDetail_20' ) start [2025-02-11 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450843', 'tblTempUsageDetail_20' ) end [2025-02-11 09:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:33:24] Production.INFO: ==29746== Releasing lock... [2025-02-11 09:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:33:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-11 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:34:05 [end_date_ymd] => 2025-02-11 09:34:05 [RateCDR] => 1 ) [2025-02-11 09:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:34:05' and `end` < '2025-02-11 09:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:34:19] Production.INFO: count ==1706 [2025-02-11 09:34:19] Production.ERROR: pbx CDR StartTime 2025-02-11 06:34:05 - End Time 2025-02-11 09:34:05 [2025-02-11 09:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450848', 'tblTempUsageDetail_20' ) start [2025-02-11 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450848', 'tblTempUsageDetail_20' ) end [2025-02-11 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450848', 'tblTempVendorCDR_20' ) start [2025-02-11 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450848', 'tblTempVendorCDR_20' ) end [2025-02-11 09:34:19] Production.INFO: ProcessCDR(1,14450848,1,1,2) [2025-02-11 09:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450848', 'tblTempUsageDetail_20' ) start [2025-02-11 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450848', 'tblTempUsageDetail_20' ) end [2025-02-11 09:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:34:24] Production.INFO: ==29869== Releasing lock... [2025-02-11 09:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:34:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-11 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:35:05 [end_date_ymd] => 2025-02-11 09:35:05 [RateCDR] => 1 ) [2025-02-11 09:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:35:05' and `end` < '2025-02-11 09:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:35:20] Production.INFO: count ==1720 [2025-02-11 09:35:20] Production.ERROR: pbx CDR StartTime 2025-02-11 06:35:05 - End Time 2025-02-11 09:35:05 [2025-02-11 09:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450853', 'tblTempUsageDetail_20' ) start [2025-02-11 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450853', 'tblTempUsageDetail_20' ) end [2025-02-11 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450853', 'tblTempVendorCDR_20' ) start [2025-02-11 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450853', 'tblTempVendorCDR_20' ) end [2025-02-11 09:35:20] Production.INFO: ProcessCDR(1,14450853,1,1,2) [2025-02-11 09:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450853', 'tblTempUsageDetail_20' ) start [2025-02-11 09:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450853', 'tblTempUsageDetail_20' ) end [2025-02-11 09:35:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:35:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:35:25] Production.INFO: ==29969== Releasing lock... [2025-02-11 09:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:35:25] Production.INFO: 41.25 MB #Memory Used# [2025-02-11 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:36:05 [end_date_ymd] => 2025-02-11 09:36:05 [RateCDR] => 1 ) [2025-02-11 09:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:36:05' and `end` < '2025-02-11 09:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:36:20] Production.INFO: count ==1732 [2025-02-11 09:36:21] Production.ERROR: pbx CDR StartTime 2025-02-11 06:36:05 - End Time 2025-02-11 09:36:05 [2025-02-11 09:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450858', 'tblTempUsageDetail_20' ) start [2025-02-11 09:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450858', 'tblTempUsageDetail_20' ) end [2025-02-11 09:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450858', 'tblTempVendorCDR_20' ) start [2025-02-11 09:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450858', 'tblTempVendorCDR_20' ) end [2025-02-11 09:36:21] Production.INFO: ProcessCDR(1,14450858,1,1,2) [2025-02-11 09:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450858', 'tblTempUsageDetail_20' ) start [2025-02-11 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450858', 'tblTempUsageDetail_20' ) end [2025-02-11 09:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:36:24] Production.INFO: ==30044== Releasing lock... [2025-02-11 09:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:36:24] Production.INFO: 41 MB #Memory Used# [2025-02-11 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:37:05 [end_date_ymd] => 2025-02-11 09:37:05 [RateCDR] => 1 ) [2025-02-11 09:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:37:05' and `end` < '2025-02-11 09:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:37:20] Production.INFO: count ==1762 [2025-02-11 09:37:20] Production.ERROR: pbx CDR StartTime 2025-02-11 06:37:05 - End Time 2025-02-11 09:37:05 [2025-02-11 09:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450863', 'tblTempUsageDetail_20' ) start [2025-02-11 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450863', 'tblTempUsageDetail_20' ) end [2025-02-11 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450863', 'tblTempVendorCDR_20' ) start [2025-02-11 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450863', 'tblTempVendorCDR_20' ) end [2025-02-11 09:37:20] Production.INFO: ProcessCDR(1,14450863,1,1,2) [2025-02-11 09:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450863', 'tblTempUsageDetail_20' ) start [2025-02-11 09:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450863', 'tblTempUsageDetail_20' ) end [2025-02-11 09:37:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:37:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:37:25] Production.INFO: ==30132== Releasing lock... [2025-02-11 09:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:37:25] Production.INFO: 41 MB #Memory Used# [2025-02-11 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:38:05 [end_date_ymd] => 2025-02-11 09:38:05 [RateCDR] => 1 ) [2025-02-11 09:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:38:05' and `end` < '2025-02-11 09:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:38:25] Production.INFO: count ==1770 [2025-02-11 09:38:25] Production.ERROR: pbx CDR StartTime 2025-02-11 06:38:05 - End Time 2025-02-11 09:38:05 [2025-02-11 09:38:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450868', 'tblTempUsageDetail_20' ) start [2025-02-11 09:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450868', 'tblTempUsageDetail_20' ) end [2025-02-11 09:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450868', 'tblTempVendorCDR_20' ) start [2025-02-11 09:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450868', 'tblTempVendorCDR_20' ) end [2025-02-11 09:38:25] Production.INFO: ProcessCDR(1,14450868,1,1,2) [2025-02-11 09:38:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:38:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:38:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:38:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450868', 'tblTempUsageDetail_20' ) start [2025-02-11 09:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450868', 'tblTempUsageDetail_20' ) end [2025-02-11 09:38:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:38:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:38:30] Production.INFO: ==30211== Releasing lock... [2025-02-11 09:38:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:38:30] Production.INFO: 41.5 MB #Memory Used# [2025-02-11 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:39:05 [end_date_ymd] => 2025-02-11 09:39:05 [RateCDR] => 1 ) [2025-02-11 09:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:39:05' and `end` < '2025-02-11 09:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:39:22] Production.INFO: count ==1778 [2025-02-11 09:39:22] Production.ERROR: pbx CDR StartTime 2025-02-11 06:39:05 - End Time 2025-02-11 09:39:05 [2025-02-11 09:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450873', 'tblTempUsageDetail_20' ) start [2025-02-11 09:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450873', 'tblTempUsageDetail_20' ) end [2025-02-11 09:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450873', 'tblTempVendorCDR_20' ) start [2025-02-11 09:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450873', 'tblTempVendorCDR_20' ) end [2025-02-11 09:39:22] Production.INFO: ProcessCDR(1,14450873,1,1,2) [2025-02-11 09:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450873', 'tblTempUsageDetail_20' ) start [2025-02-11 09:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450873', 'tblTempUsageDetail_20' ) end [2025-02-11 09:39:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:39:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:39:27] Production.INFO: ==30294== Releasing lock... [2025-02-11 09:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:39:27] Production.INFO: 41.75 MB #Memory Used# [2025-02-11 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:40:06 [end_date_ymd] => 2025-02-11 09:40:06 [RateCDR] => 1 ) [2025-02-11 09:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:40:06' and `end` < '2025-02-11 09:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:40:33] Production.INFO: count ==1780 [2025-02-11 09:40:34] Production.ERROR: pbx CDR StartTime 2025-02-11 06:40:06 - End Time 2025-02-11 09:40:06 [2025-02-11 09:40:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:40:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450879', 'tblTempUsageDetail_20' ) start [2025-02-11 09:40:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450879', 'tblTempUsageDetail_20' ) end [2025-02-11 09:40:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450879', 'tblTempVendorCDR_20' ) start [2025-02-11 09:40:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450879', 'tblTempVendorCDR_20' ) end [2025-02-11 09:40:34] Production.INFO: ProcessCDR(1,14450879,1,1,2) [2025-02-11 09:40:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:40:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:40:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:40:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:40:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450879', 'tblTempUsageDetail_20' ) start [2025-02-11 09:40:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450879', 'tblTempUsageDetail_20' ) end [2025-02-11 09:40:39] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:40:39] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:40:39] Production.INFO: ==30369== Releasing lock... [2025-02-11 09:40:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:40:39] Production.INFO: 41.5 MB #Memory Used# [2025-02-11 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:41:05 [end_date_ymd] => 2025-02-11 09:41:05 [RateCDR] => 1 ) [2025-02-11 09:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:41:05' and `end` < '2025-02-11 09:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:41:22] Production.INFO: count ==1874 [2025-02-11 09:41:23] Production.ERROR: pbx CDR StartTime 2025-02-11 06:41:05 - End Time 2025-02-11 09:41:05 [2025-02-11 09:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450884', 'tblTempUsageDetail_20' ) start [2025-02-11 09:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450884', 'tblTempUsageDetail_20' ) end [2025-02-11 09:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450884', 'tblTempVendorCDR_20' ) start [2025-02-11 09:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450884', 'tblTempVendorCDR_20' ) end [2025-02-11 09:41:23] Production.INFO: ProcessCDR(1,14450884,1,1,2) [2025-02-11 09:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450884', 'tblTempUsageDetail_20' ) start [2025-02-11 09:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450884', 'tblTempUsageDetail_20' ) end [2025-02-11 09:41:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:41:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:41:28] Production.INFO: ==30451== Releasing lock... [2025-02-11 09:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:41:28] Production.INFO: 42.25 MB #Memory Used# [2025-02-11 09:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:42:06 [end_date_ymd] => 2025-02-11 09:42:06 [RateCDR] => 1 ) [2025-02-11 09:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:42:06' and `end` < '2025-02-11 09:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:42:23] Production.INFO: count ==1885 [2025-02-11 09:42:24] Production.ERROR: pbx CDR StartTime 2025-02-11 06:42:06 - End Time 2025-02-11 09:42:06 [2025-02-11 09:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450889', 'tblTempUsageDetail_20' ) start [2025-02-11 09:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450889', 'tblTempUsageDetail_20' ) end [2025-02-11 09:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450889', 'tblTempVendorCDR_20' ) start [2025-02-11 09:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450889', 'tblTempVendorCDR_20' ) end [2025-02-11 09:42:24] Production.INFO: ProcessCDR(1,14450889,1,1,2) [2025-02-11 09:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:42:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450889', 'tblTempUsageDetail_20' ) start [2025-02-11 09:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450889', 'tblTempUsageDetail_20' ) end [2025-02-11 09:42:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:42:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:42:29] Production.INFO: ==30526== Releasing lock... [2025-02-11 09:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:42:29] Production.INFO: 42.25 MB #Memory Used# [2025-02-11 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:43:05 [end_date_ymd] => 2025-02-11 09:43:05 [RateCDR] => 1 ) [2025-02-11 09:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:43:05' and `end` < '2025-02-11 09:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:43:22] Production.INFO: count ==1899 [2025-02-11 09:43:22] Production.ERROR: pbx CDR StartTime 2025-02-11 06:43:05 - End Time 2025-02-11 09:43:05 [2025-02-11 09:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450894', 'tblTempUsageDetail_20' ) start [2025-02-11 09:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450894', 'tblTempUsageDetail_20' ) end [2025-02-11 09:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450894', 'tblTempVendorCDR_20' ) start [2025-02-11 09:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450894', 'tblTempVendorCDR_20' ) end [2025-02-11 09:43:22] Production.INFO: ProcessCDR(1,14450894,1,1,2) [2025-02-11 09:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450894', 'tblTempUsageDetail_20' ) start [2025-02-11 09:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450894', 'tblTempUsageDetail_20' ) end [2025-02-11 09:43:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:43:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:43:28] Production.INFO: ==30603== Releasing lock... [2025-02-11 09:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:43:28] Production.INFO: 42.5 MB #Memory Used# [2025-02-11 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:44:05 [end_date_ymd] => 2025-02-11 09:44:05 [RateCDR] => 1 ) [2025-02-11 09:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:44:05' and `end` < '2025-02-11 09:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:44:21] Production.INFO: count ==1903 [2025-02-11 09:44:22] Production.ERROR: pbx CDR StartTime 2025-02-11 06:44:05 - End Time 2025-02-11 09:44:05 [2025-02-11 09:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450899', 'tblTempUsageDetail_20' ) start [2025-02-11 09:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450899', 'tblTempUsageDetail_20' ) end [2025-02-11 09:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450899', 'tblTempVendorCDR_20' ) start [2025-02-11 09:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450899', 'tblTempVendorCDR_20' ) end [2025-02-11 09:44:22] Production.INFO: ProcessCDR(1,14450899,1,1,2) [2025-02-11 09:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450899', 'tblTempUsageDetail_20' ) start [2025-02-11 09:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450899', 'tblTempUsageDetail_20' ) end [2025-02-11 09:44:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:44:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:44:26] Production.INFO: ==30681== Releasing lock... [2025-02-11 09:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:44:26] Production.INFO: 42.5 MB #Memory Used# [2025-02-11 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:45:05 [end_date_ymd] => 2025-02-11 09:45:05 [RateCDR] => 1 ) [2025-02-11 09:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:45:05' and `end` < '2025-02-11 09:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:45:21] Production.INFO: count ==1909 [2025-02-11 09:45:21] Production.ERROR: pbx CDR StartTime 2025-02-11 06:45:05 - End Time 2025-02-11 09:45:05 [2025-02-11 09:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450904', 'tblTempUsageDetail_20' ) start [2025-02-11 09:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450904', 'tblTempUsageDetail_20' ) end [2025-02-11 09:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450904', 'tblTempVendorCDR_20' ) start [2025-02-11 09:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450904', 'tblTempVendorCDR_20' ) end [2025-02-11 09:45:22] Production.INFO: ProcessCDR(1,14450904,1,1,2) [2025-02-11 09:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450904', 'tblTempUsageDetail_20' ) start [2025-02-11 09:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450904', 'tblTempUsageDetail_20' ) end [2025-02-11 09:45:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:45:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:45:26] Production.INFO: ==30760== Releasing lock... [2025-02-11 09:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:45:26] Production.INFO: 42.5 MB #Memory Used# [2025-02-11 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:46:05 [end_date_ymd] => 2025-02-11 09:46:05 [RateCDR] => 1 ) [2025-02-11 09:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:46:05' and `end` < '2025-02-11 09:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:46:21] Production.INFO: count ==1932 [2025-02-11 09:46:22] Production.ERROR: pbx CDR StartTime 2025-02-11 06:46:05 - End Time 2025-02-11 09:46:05 [2025-02-11 09:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450909', 'tblTempUsageDetail_20' ) start [2025-02-11 09:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450909', 'tblTempUsageDetail_20' ) end [2025-02-11 09:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450909', 'tblTempVendorCDR_20' ) start [2025-02-11 09:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450909', 'tblTempVendorCDR_20' ) end [2025-02-11 09:46:22] Production.INFO: ProcessCDR(1,14450909,1,1,2) [2025-02-11 09:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450909', 'tblTempUsageDetail_20' ) start [2025-02-11 09:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450909', 'tblTempUsageDetail_20' ) end [2025-02-11 09:46:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:46:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:46:26] Production.INFO: ==30831== Releasing lock... [2025-02-11 09:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:46:26] Production.INFO: 42.5 MB #Memory Used# [2025-02-11 09:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:47:04 [end_date_ymd] => 2025-02-11 09:47:04 [RateCDR] => 1 ) [2025-02-11 09:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:47:04' and `end` < '2025-02-11 09:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:47:20] Production.INFO: count ==1945 [2025-02-11 09:47:21] Production.ERROR: pbx CDR StartTime 2025-02-11 06:47:04 - End Time 2025-02-11 09:47:04 [2025-02-11 09:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450914', 'tblTempUsageDetail_20' ) start [2025-02-11 09:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450914', 'tblTempUsageDetail_20' ) end [2025-02-11 09:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450914', 'tblTempVendorCDR_20' ) start [2025-02-11 09:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450914', 'tblTempVendorCDR_20' ) end [2025-02-11 09:47:21] Production.INFO: ProcessCDR(1,14450914,1,1,2) [2025-02-11 09:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450914', 'tblTempUsageDetail_20' ) start [2025-02-11 09:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450914', 'tblTempUsageDetail_20' ) end [2025-02-11 09:47:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:47:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:47:26] Production.INFO: ==30928== Releasing lock... [2025-02-11 09:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:47:26] Production.INFO: 42.75 MB #Memory Used# [2025-02-11 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:48:05 [end_date_ymd] => 2025-02-11 09:48:05 [RateCDR] => 1 ) [2025-02-11 09:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:48:05' and `end` < '2025-02-11 09:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:48:24] Production.INFO: count ==1954 [2025-02-11 09:48:25] Production.ERROR: pbx CDR StartTime 2025-02-11 06:48:05 - End Time 2025-02-11 09:48:05 [2025-02-11 09:48:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450919', 'tblTempUsageDetail_20' ) start [2025-02-11 09:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450919', 'tblTempUsageDetail_20' ) end [2025-02-11 09:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450919', 'tblTempVendorCDR_20' ) start [2025-02-11 09:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450919', 'tblTempVendorCDR_20' ) end [2025-02-11 09:48:25] Production.INFO: ProcessCDR(1,14450919,1,1,2) [2025-02-11 09:48:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:48:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:48:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:48:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450919', 'tblTempUsageDetail_20' ) start [2025-02-11 09:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450919', 'tblTempUsageDetail_20' ) end [2025-02-11 09:48:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:48:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:48:30] Production.INFO: ==31014== Releasing lock... [2025-02-11 09:48:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:48:30] Production.INFO: 42.5 MB #Memory Used# [2025-02-11 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:49:05 [end_date_ymd] => 2025-02-11 09:49:05 [RateCDR] => 1 ) [2025-02-11 09:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:49:05' and `end` < '2025-02-11 09:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:49:20] Production.INFO: count ==1975 [2025-02-11 09:49:21] Production.ERROR: pbx CDR StartTime 2025-02-11 06:49:05 - End Time 2025-02-11 09:49:05 [2025-02-11 09:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450924', 'tblTempUsageDetail_20' ) start [2025-02-11 09:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450924', 'tblTempUsageDetail_20' ) end [2025-02-11 09:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450924', 'tblTempVendorCDR_20' ) start [2025-02-11 09:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450924', 'tblTempVendorCDR_20' ) end [2025-02-11 09:49:21] Production.INFO: ProcessCDR(1,14450924,1,1,2) [2025-02-11 09:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450924', 'tblTempUsageDetail_20' ) start [2025-02-11 09:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450924', 'tblTempUsageDetail_20' ) end [2025-02-11 09:49:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:49:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:49:26] Production.INFO: ==31095== Releasing lock... [2025-02-11 09:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:49:26] Production.INFO: 42.75 MB #Memory Used# [2025-02-11 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:50:06 [end_date_ymd] => 2025-02-11 09:50:06 [RateCDR] => 1 ) [2025-02-11 09:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:50:06' and `end` < '2025-02-11 09:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:50:21] Production.INFO: count ==2003 [2025-02-11 09:50:21] Production.ERROR: pbx CDR StartTime 2025-02-11 06:50:06 - End Time 2025-02-11 09:50:06 [2025-02-11 09:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450930', 'tblTempUsageDetail_20' ) start [2025-02-11 09:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450930', 'tblTempUsageDetail_20' ) end [2025-02-11 09:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450930', 'tblTempVendorCDR_20' ) start [2025-02-11 09:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450930', 'tblTempVendorCDR_20' ) end [2025-02-11 09:50:22] Production.INFO: ProcessCDR(1,14450930,1,1,2) [2025-02-11 09:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450930', 'tblTempUsageDetail_20' ) start [2025-02-11 09:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450930', 'tblTempUsageDetail_20' ) end [2025-02-11 09:50:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:50:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:50:26] Production.INFO: ==31212== Releasing lock... [2025-02-11 09:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:50:26] Production.INFO: 43 MB #Memory Used# [2025-02-11 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:51:05 [end_date_ymd] => 2025-02-11 09:51:05 [RateCDR] => 1 ) [2025-02-11 09:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:51:05' and `end` < '2025-02-11 09:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:51:30] Production.INFO: count ==2097 [2025-02-11 09:51:31] Production.ERROR: pbx CDR StartTime 2025-02-11 06:51:05 - End Time 2025-02-11 09:51:05 [2025-02-11 09:51:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450935', 'tblTempUsageDetail_20' ) start [2025-02-11 09:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450935', 'tblTempUsageDetail_20' ) end [2025-02-11 09:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450935', 'tblTempVendorCDR_20' ) start [2025-02-11 09:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450935', 'tblTempVendorCDR_20' ) end [2025-02-11 09:51:31] Production.INFO: ProcessCDR(1,14450935,1,1,2) [2025-02-11 09:51:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:51:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:51:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:51:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:51:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450935', 'tblTempUsageDetail_20' ) start [2025-02-11 09:51:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450935', 'tblTempUsageDetail_20' ) end [2025-02-11 09:51:35] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:51:35] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:51:35] Production.INFO: ==31294== Releasing lock... [2025-02-11 09:51:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:51:35] Production.INFO: 44 MB #Memory Used# [2025-02-11 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:52:05 [end_date_ymd] => 2025-02-11 09:52:05 [RateCDR] => 1 ) [2025-02-11 09:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:52:05' and `end` < '2025-02-11 09:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:52:23] Production.INFO: count ==2111 [2025-02-11 09:52:24] Production.ERROR: pbx CDR StartTime 2025-02-11 06:52:05 - End Time 2025-02-11 09:52:05 [2025-02-11 09:52:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450940', 'tblTempUsageDetail_20' ) start [2025-02-11 09:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450940', 'tblTempUsageDetail_20' ) end [2025-02-11 09:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450940', 'tblTempVendorCDR_20' ) start [2025-02-11 09:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450940', 'tblTempVendorCDR_20' ) end [2025-02-11 09:52:24] Production.INFO: ProcessCDR(1,14450940,1,1,2) [2025-02-11 09:52:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:52:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450940', 'tblTempUsageDetail_20' ) start [2025-02-11 09:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450940', 'tblTempUsageDetail_20' ) end [2025-02-11 09:52:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:52:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:52:29] Production.INFO: ==31367== Releasing lock... [2025-02-11 09:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:52:29] Production.INFO: 44 MB #Memory Used# [2025-02-11 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:53:05 [end_date_ymd] => 2025-02-11 09:53:05 [RateCDR] => 1 ) [2025-02-11 09:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:53:05' and `end` < '2025-02-11 09:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:53:25] Production.INFO: count ==2121 [2025-02-11 09:53:26] Production.ERROR: pbx CDR StartTime 2025-02-11 06:53:05 - End Time 2025-02-11 09:53:05 [2025-02-11 09:53:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450945', 'tblTempUsageDetail_20' ) start [2025-02-11 09:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450945', 'tblTempUsageDetail_20' ) end [2025-02-11 09:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450945', 'tblTempVendorCDR_20' ) start [2025-02-11 09:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450945', 'tblTempVendorCDR_20' ) end [2025-02-11 09:53:26] Production.INFO: ProcessCDR(1,14450945,1,1,2) [2025-02-11 09:53:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:53:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:53:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450945', 'tblTempUsageDetail_20' ) start [2025-02-11 09:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450945', 'tblTempUsageDetail_20' ) end [2025-02-11 09:53:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:53:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:53:31] Production.INFO: ==31445== Releasing lock... [2025-02-11 09:53:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:53:31] Production.INFO: 44 MB #Memory Used# [2025-02-11 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:54:05 [end_date_ymd] => 2025-02-11 09:54:05 [RateCDR] => 1 ) [2025-02-11 09:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:54:05' and `end` < '2025-02-11 09:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:54:27] Production.INFO: count ==2125 [2025-02-11 09:54:27] Production.ERROR: pbx CDR StartTime 2025-02-11 06:54:05 - End Time 2025-02-11 09:54:05 [2025-02-11 09:54:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450950', 'tblTempUsageDetail_20' ) start [2025-02-11 09:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450950', 'tblTempUsageDetail_20' ) end [2025-02-11 09:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450950', 'tblTempVendorCDR_20' ) start [2025-02-11 09:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450950', 'tblTempVendorCDR_20' ) end [2025-02-11 09:54:28] Production.INFO: ProcessCDR(1,14450950,1,1,2) [2025-02-11 09:54:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:54:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:54:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:54:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450950', 'tblTempUsageDetail_20' ) start [2025-02-11 09:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450950', 'tblTempUsageDetail_20' ) end [2025-02-11 09:54:33] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:54:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:54:33] Production.INFO: ==31516== Releasing lock... [2025-02-11 09:54:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:54:33] Production.INFO: 44.25 MB #Memory Used# [2025-02-11 09:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:55:06 [end_date_ymd] => 2025-02-11 09:55:06 [RateCDR] => 1 ) [2025-02-11 09:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:55:06' and `end` < '2025-02-11 09:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:55:29] Production.INFO: count ==2160 [2025-02-11 09:55:30] Production.ERROR: pbx CDR StartTime 2025-02-11 06:55:06 - End Time 2025-02-11 09:55:06 [2025-02-11 09:55:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450955', 'tblTempUsageDetail_20' ) start [2025-02-11 09:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450955', 'tblTempUsageDetail_20' ) end [2025-02-11 09:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450955', 'tblTempVendorCDR_20' ) start [2025-02-11 09:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450955', 'tblTempVendorCDR_20' ) end [2025-02-11 09:55:30] Production.INFO: ProcessCDR(1,14450955,1,1,2) [2025-02-11 09:55:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:55:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:55:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:55:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:55:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450955', 'tblTempUsageDetail_20' ) start [2025-02-11 09:55:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450955', 'tblTempUsageDetail_20' ) end [2025-02-11 09:55:36] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:55:36] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:55:36] Production.INFO: ==31589== Releasing lock... [2025-02-11 09:55:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:55:36] Production.INFO: 44.25 MB #Memory Used# [2025-02-11 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:56:05 [end_date_ymd] => 2025-02-11 09:56:05 [RateCDR] => 1 ) [2025-02-11 09:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:56:05' and `end` < '2025-02-11 09:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:56:26] Production.INFO: count ==2173 [2025-02-11 09:56:27] Production.ERROR: pbx CDR StartTime 2025-02-11 06:56:05 - End Time 2025-02-11 09:56:05 [2025-02-11 09:56:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450960', 'tblTempUsageDetail_20' ) start [2025-02-11 09:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450960', 'tblTempUsageDetail_20' ) end [2025-02-11 09:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450960', 'tblTempVendorCDR_20' ) start [2025-02-11 09:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450960', 'tblTempVendorCDR_20' ) end [2025-02-11 09:56:27] Production.INFO: ProcessCDR(1,14450960,1,1,2) [2025-02-11 09:56:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:56:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:56:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:56:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:56:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450960', 'tblTempUsageDetail_20' ) start [2025-02-11 09:56:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450960', 'tblTempUsageDetail_20' ) end [2025-02-11 09:56:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:56:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:56:32] Production.INFO: ==31667== Releasing lock... [2025-02-11 09:56:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:56:32] Production.INFO: 44.25 MB #Memory Used# [2025-02-11 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:57:05 [end_date_ymd] => 2025-02-11 09:57:05 [RateCDR] => 1 ) [2025-02-11 09:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:57:05' and `end` < '2025-02-11 09:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:57:19] Production.INFO: count ==2197 [2025-02-11 09:57:20] Production.ERROR: pbx CDR StartTime 2025-02-11 06:57:05 - End Time 2025-02-11 09:57:05 [2025-02-11 09:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450965', 'tblTempUsageDetail_20' ) start [2025-02-11 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450965', 'tblTempUsageDetail_20' ) end [2025-02-11 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450965', 'tblTempVendorCDR_20' ) start [2025-02-11 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450965', 'tblTempVendorCDR_20' ) end [2025-02-11 09:57:20] Production.INFO: ProcessCDR(1,14450965,1,1,2) [2025-02-11 09:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450965', 'tblTempUsageDetail_20' ) start [2025-02-11 09:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450965', 'tblTempUsageDetail_20' ) end [2025-02-11 09:57:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:57:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:57:25] Production.INFO: ==31741== Releasing lock... [2025-02-11 09:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:57:25] Production.INFO: 44.75 MB #Memory Used# [2025-02-11 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:58:05 [end_date_ymd] => 2025-02-11 09:58:05 [RateCDR] => 1 ) [2025-02-11 09:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:58:05' and `end` < '2025-02-11 09:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:58:19] Production.INFO: count ==2213 [2025-02-11 09:58:20] Production.ERROR: pbx CDR StartTime 2025-02-11 06:58:05 - End Time 2025-02-11 09:58:05 [2025-02-11 09:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450970', 'tblTempUsageDetail_20' ) start [2025-02-11 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450970', 'tblTempUsageDetail_20' ) end [2025-02-11 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450970', 'tblTempVendorCDR_20' ) start [2025-02-11 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450970', 'tblTempVendorCDR_20' ) end [2025-02-11 09:58:20] Production.INFO: ProcessCDR(1,14450970,1,1,2) [2025-02-11 09:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450970', 'tblTempUsageDetail_20' ) start [2025-02-11 09:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450970', 'tblTempUsageDetail_20' ) end [2025-02-11 09:58:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:58:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:58:25] Production.INFO: ==31814== Releasing lock... [2025-02-11 09:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:58:25] Production.INFO: 44.75 MB #Memory Used# [2025-02-11 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 06:59:05 [end_date_ymd] => 2025-02-11 09:59:05 [RateCDR] => 1 ) [2025-02-11 09:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 06:59:05' and `end` < '2025-02-11 09:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 09:59:31] Production.INFO: count ==2241 [2025-02-11 09:59:32] Production.ERROR: pbx CDR StartTime 2025-02-11 06:59:05 - End Time 2025-02-11 09:59:05 [2025-02-11 09:59:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 09:59:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450975', 'tblTempUsageDetail_20' ) start [2025-02-11 09:59:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450975', 'tblTempUsageDetail_20' ) end [2025-02-11 09:59:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450975', 'tblTempVendorCDR_20' ) start [2025-02-11 09:59:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450975', 'tblTempVendorCDR_20' ) end [2025-02-11 09:59:32] Production.INFO: ProcessCDR(1,14450975,1,1,2) [2025-02-11 09:59:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:59:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 09:59:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:59:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 09:59:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450975', 'tblTempUsageDetail_20' ) start [2025-02-11 09:59:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450975', 'tblTempUsageDetail_20' ) end [2025-02-11 09:59:37] Production.ERROR: pbx prc_insertCDR start [2025-02-11 09:59:37] Production.ERROR: pbx prc_insertCDR end [2025-02-11 09:59:37] Production.INFO: ==31885== Releasing lock... [2025-02-11 09:59:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 09:59:37] Production.INFO: 45 MB #Memory Used# [2025-02-11 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:00:06 [end_date_ymd] => 2025-02-11 10:00:06 [RateCDR] => 1 ) [2025-02-11 10:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:00:06' and `end` < '2025-02-11 10:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:00:34] Production.INFO: count ==2253 [2025-02-11 10:00:35] Production.ERROR: pbx CDR StartTime 2025-02-11 07:00:06 - End Time 2025-02-11 10:00:06 [2025-02-11 10:00:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:00:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450980', 'tblTempUsageDetail_20' ) start [2025-02-11 10:00:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450980', 'tblTempUsageDetail_20' ) end [2025-02-11 10:00:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450980', 'tblTempVendorCDR_20' ) start [2025-02-11 10:00:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450980', 'tblTempVendorCDR_20' ) end [2025-02-11 10:00:36] Production.INFO: ProcessCDR(1,14450980,1,1,2) [2025-02-11 10:00:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:00:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:00:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:00:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:00:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450980', 'tblTempUsageDetail_20' ) start [2025-02-11 10:00:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450980', 'tblTempUsageDetail_20' ) end [2025-02-11 10:00:41] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:00:41] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:00:41] Production.INFO: ==31977== Releasing lock... [2025-02-11 10:00:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:00:41] Production.INFO: 45 MB #Memory Used# [2025-02-11 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:01:05 [end_date_ymd] => 2025-02-11 10:01:05 [RateCDR] => 1 ) [2025-02-11 10:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:01:05' and `end` < '2025-02-11 10:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:01:29] Production.INFO: count ==2393 [2025-02-11 10:01:29] Production.ERROR: pbx CDR StartTime 2025-02-11 07:01:05 - End Time 2025-02-11 10:01:05 [2025-02-11 10:01:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450986', 'tblTempUsageDetail_20' ) start [2025-02-11 10:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450986', 'tblTempUsageDetail_20' ) end [2025-02-11 10:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450986', 'tblTempVendorCDR_20' ) start [2025-02-11 10:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450986', 'tblTempVendorCDR_20' ) end [2025-02-11 10:01:29] Production.INFO: ProcessCDR(1,14450986,1,1,2) [2025-02-11 10:01:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:01:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:01:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:01:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:01:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450986', 'tblTempUsageDetail_20' ) start [2025-02-11 10:01:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450986', 'tblTempUsageDetail_20' ) end [2025-02-11 10:01:35] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:01:35] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:01:35] Production.INFO: ==32070== Releasing lock... [2025-02-11 10:01:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:01:35] Production.INFO: 46.25 MB #Memory Used# [2025-02-11 10:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:02:04 [end_date_ymd] => 2025-02-11 10:02:04 [RateCDR] => 1 ) [2025-02-11 10:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:02:04' and `end` < '2025-02-11 10:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:02:23] Production.INFO: count ==2433 [2025-02-11 10:02:24] Production.ERROR: pbx CDR StartTime 2025-02-11 07:02:04 - End Time 2025-02-11 10:02:04 [2025-02-11 10:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450991', 'tblTempUsageDetail_20' ) start [2025-02-11 10:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450991', 'tblTempUsageDetail_20' ) end [2025-02-11 10:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450991', 'tblTempVendorCDR_20' ) start [2025-02-11 10:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450991', 'tblTempVendorCDR_20' ) end [2025-02-11 10:02:24] Production.INFO: ProcessCDR(1,14450991,1,1,2) [2025-02-11 10:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450991', 'tblTempUsageDetail_20' ) start [2025-02-11 10:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450991', 'tblTempUsageDetail_20' ) end [2025-02-11 10:02:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:02:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:02:28] Production.INFO: ==32146== Releasing lock... [2025-02-11 10:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:02:28] Production.INFO: 46.25 MB #Memory Used# [2025-02-11 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:03:05 [end_date_ymd] => 2025-02-11 10:03:05 [RateCDR] => 1 ) [2025-02-11 10:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:03:05' and `end` < '2025-02-11 10:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:03:26] Production.INFO: count ==2465 [2025-02-11 10:03:27] Production.ERROR: pbx CDR StartTime 2025-02-11 07:03:05 - End Time 2025-02-11 10:03:05 [2025-02-11 10:03:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450996', 'tblTempUsageDetail_20' ) start [2025-02-11 10:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14450996', 'tblTempUsageDetail_20' ) end [2025-02-11 10:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450996', 'tblTempVendorCDR_20' ) start [2025-02-11 10:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14450996', 'tblTempVendorCDR_20' ) end [2025-02-11 10:03:27] Production.INFO: ProcessCDR(1,14450996,1,1,2) [2025-02-11 10:03:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14450996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:03:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14450996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:03:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14450996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:03:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14450996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450996', 'tblTempUsageDetail_20' ) start [2025-02-11 10:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14450996', 'tblTempUsageDetail_20' ) end [2025-02-11 10:03:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:03:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:03:32] Production.INFO: ==32227== Releasing lock... [2025-02-11 10:03:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:03:32] Production.INFO: 46.5 MB #Memory Used# [2025-02-11 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:04:05 [end_date_ymd] => 2025-02-11 10:04:05 [RateCDR] => 1 ) [2025-02-11 10:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:04:05' and `end` < '2025-02-11 10:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:04:31] Production.INFO: count ==2478 [2025-02-11 10:04:32] Production.ERROR: pbx CDR StartTime 2025-02-11 07:04:05 - End Time 2025-02-11 10:04:05 [2025-02-11 10:04:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451001', 'tblTempUsageDetail_20' ) start [2025-02-11 10:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451001', 'tblTempUsageDetail_20' ) end [2025-02-11 10:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451001', 'tblTempVendorCDR_20' ) start [2025-02-11 10:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451001', 'tblTempVendorCDR_20' ) end [2025-02-11 10:04:32] Production.INFO: ProcessCDR(1,14451001,1,1,2) [2025-02-11 10:04:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:04:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:04:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:04:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:04:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451001', 'tblTempUsageDetail_20' ) start [2025-02-11 10:04:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451001', 'tblTempUsageDetail_20' ) end [2025-02-11 10:04:38] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:04:38] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:04:38] Production.INFO: ==32300== Releasing lock... [2025-02-11 10:04:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:04:38] Production.INFO: 46.75 MB #Memory Used# [2025-02-11 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:05:05 [end_date_ymd] => 2025-02-11 10:05:05 [RateCDR] => 1 ) [2025-02-11 10:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:05:05' and `end` < '2025-02-11 10:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:05:29] Production.INFO: count ==2483 [2025-02-11 10:05:30] Production.ERROR: pbx CDR StartTime 2025-02-11 07:05:05 - End Time 2025-02-11 10:05:05 [2025-02-11 10:05:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451006', 'tblTempUsageDetail_20' ) start [2025-02-11 10:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451006', 'tblTempUsageDetail_20' ) end [2025-02-11 10:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451006', 'tblTempVendorCDR_20' ) start [2025-02-11 10:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451006', 'tblTempVendorCDR_20' ) end [2025-02-11 10:05:30] Production.INFO: ProcessCDR(1,14451006,1,1,2) [2025-02-11 10:05:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:05:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:05:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:05:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451006', 'tblTempUsageDetail_20' ) start [2025-02-11 10:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451006', 'tblTempUsageDetail_20' ) end [2025-02-11 10:05:35] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:05:35] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:05:35] Production.INFO: ==32414== Releasing lock... [2025-02-11 10:05:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:05:35] Production.INFO: 46.75 MB #Memory Used# [2025-02-11 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:06:05 [end_date_ymd] => 2025-02-11 10:06:05 [RateCDR] => 1 ) [2025-02-11 10:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:06:05' and `end` < '2025-02-11 10:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:06:24] Production.INFO: count ==2488 [2025-02-11 10:06:25] Production.ERROR: pbx CDR StartTime 2025-02-11 07:06:05 - End Time 2025-02-11 10:06:05 [2025-02-11 10:06:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451011', 'tblTempUsageDetail_20' ) start [2025-02-11 10:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451011', 'tblTempUsageDetail_20' ) end [2025-02-11 10:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451011', 'tblTempVendorCDR_20' ) start [2025-02-11 10:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451011', 'tblTempVendorCDR_20' ) end [2025-02-11 10:06:25] Production.INFO: ProcessCDR(1,14451011,1,1,2) [2025-02-11 10:06:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451011', 'tblTempUsageDetail_20' ) start [2025-02-11 10:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451011', 'tblTempUsageDetail_20' ) end [2025-02-11 10:06:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:06:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:06:31] Production.INFO: ==32489== Releasing lock... [2025-02-11 10:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:06:31] Production.INFO: 46.75 MB #Memory Used# [2025-02-11 10:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:07:06 [end_date_ymd] => 2025-02-11 10:07:06 [RateCDR] => 1 ) [2025-02-11 10:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:07:06' and `end` < '2025-02-11 10:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:07:19] Production.INFO: count ==2498 [2025-02-11 10:07:20] Production.ERROR: pbx CDR StartTime 2025-02-11 07:07:06 - End Time 2025-02-11 10:07:06 [2025-02-11 10:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451016', 'tblTempUsageDetail_20' ) start [2025-02-11 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451016', 'tblTempUsageDetail_20' ) end [2025-02-11 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451016', 'tblTempVendorCDR_20' ) start [2025-02-11 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451016', 'tblTempVendorCDR_20' ) end [2025-02-11 10:07:20] Production.INFO: ProcessCDR(1,14451016,1,1,2) [2025-02-11 10:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451016', 'tblTempUsageDetail_20' ) start [2025-02-11 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451016', 'tblTempUsageDetail_20' ) end [2025-02-11 10:07:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:07:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:07:25] Production.INFO: ==32565== Releasing lock... [2025-02-11 10:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:07:25] Production.INFO: 46.75 MB #Memory Used# [2025-02-11 10:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:08:06 [end_date_ymd] => 2025-02-11 10:08:06 [RateCDR] => 1 ) [2025-02-11 10:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:08:06' and `end` < '2025-02-11 10:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:08:22] Production.INFO: count ==2507 [2025-02-11 10:08:23] Production.ERROR: pbx CDR StartTime 2025-02-11 07:08:06 - End Time 2025-02-11 10:08:06 [2025-02-11 10:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451021', 'tblTempUsageDetail_20' ) start [2025-02-11 10:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451021', 'tblTempUsageDetail_20' ) end [2025-02-11 10:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451021', 'tblTempVendorCDR_20' ) start [2025-02-11 10:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451021', 'tblTempVendorCDR_20' ) end [2025-02-11 10:08:23] Production.INFO: ProcessCDR(1,14451021,1,1,2) [2025-02-11 10:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451021', 'tblTempUsageDetail_20' ) start [2025-02-11 10:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451021', 'tblTempUsageDetail_20' ) end [2025-02-11 10:08:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:08:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:08:28] Production.INFO: ==32637== Releasing lock... [2025-02-11 10:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:08:28] Production.INFO: 47 MB #Memory Used# [2025-02-11 10:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:09:06 [end_date_ymd] => 2025-02-11 10:09:06 [RateCDR] => 1 ) [2025-02-11 10:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:09:06' and `end` < '2025-02-11 10:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:09:25] Production.INFO: count ==2513 [2025-02-11 10:09:26] Production.ERROR: pbx CDR StartTime 2025-02-11 07:09:06 - End Time 2025-02-11 10:09:06 [2025-02-11 10:09:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451026', 'tblTempUsageDetail_20' ) start [2025-02-11 10:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451026', 'tblTempUsageDetail_20' ) end [2025-02-11 10:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451026', 'tblTempVendorCDR_20' ) start [2025-02-11 10:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451026', 'tblTempVendorCDR_20' ) end [2025-02-11 10:09:26] Production.INFO: ProcessCDR(1,14451026,1,1,2) [2025-02-11 10:09:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:09:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:09:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:09:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451026', 'tblTempUsageDetail_20' ) start [2025-02-11 10:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451026', 'tblTempUsageDetail_20' ) end [2025-02-11 10:09:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:09:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:09:31] Production.INFO: ==32709== Releasing lock... [2025-02-11 10:09:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:09:31] Production.INFO: 47.25 MB #Memory Used# [2025-02-11 10:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:10:05 [end_date_ymd] => 2025-02-11 10:10:05 [RateCDR] => 1 ) [2025-02-11 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-02-11 07:10:05' and `end` < '2025-02-11 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-02-11 10:10:23] Production.INFO: count ==2533 [2025-02-11 10:10:24] Production.ERROR: pbx CDR StartTime 2025-02-11 07:10:05 - End Time 2025-02-11 10:10:05 [2025-02-11 10:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451031', 'tblTempUsageDetail_20' ) start [2025-02-11 10:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451031', 'tblTempUsageDetail_20' ) end [2025-02-11 10:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451031', 'tblTempVendorCDR_20' ) start [2025-02-11 10:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451031', 'tblTempVendorCDR_20' ) end [2025-02-11 10:10:24] Production.INFO: ProcessCDR(1,14451031,1,1,2) [2025-02-11 10:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:10:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:10:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451031', 'tblTempUsageDetail_20' ) start [2025-02-11 10:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451031', 'tblTempUsageDetail_20' ) end [2025-02-11 10:10:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:10:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:10:29] Production.INFO: ==323== Releasing lock... [2025-02-11 10:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:10:29] Production.INFO: 47 MB #Memory Used# [2025-02-11 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:11:05 [end_date_ymd] => 2025-02-11 10:11:05 [RateCDR] => 1 ) [2025-02-11 10:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:11:05' and `end` < '2025-02-11 10:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:11:19] Production.INFO: count ==2624 [2025-02-11 10:11:21] Production.ERROR: pbx CDR StartTime 2025-02-11 07:11:05 - End Time 2025-02-11 10:11:05 [2025-02-11 10:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451037', 'tblTempUsageDetail_20' ) start [2025-02-11 10:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451037', 'tblTempUsageDetail_20' ) end [2025-02-11 10:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451037', 'tblTempVendorCDR_20' ) start [2025-02-11 10:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451037', 'tblTempVendorCDR_20' ) end [2025-02-11 10:11:21] Production.INFO: ProcessCDR(1,14451037,1,1,2) [2025-02-11 10:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451037', 'tblTempUsageDetail_20' ) start [2025-02-11 10:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451037', 'tblTempUsageDetail_20' ) end [2025-02-11 10:11:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:11:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:11:26] Production.INFO: ==408== Releasing lock... [2025-02-11 10:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:11:26] Production.INFO: 47.75 MB #Memory Used# [2025-02-11 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:12:05 [end_date_ymd] => 2025-02-11 10:12:05 [RateCDR] => 1 ) [2025-02-11 10:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:12:05' and `end` < '2025-02-11 10:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:12:22] Production.INFO: count ==2642 [2025-02-11 10:12:23] Production.ERROR: pbx CDR StartTime 2025-02-11 07:12:05 - End Time 2025-02-11 10:12:05 [2025-02-11 10:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451042', 'tblTempUsageDetail_20' ) start [2025-02-11 10:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451042', 'tblTempUsageDetail_20' ) end [2025-02-11 10:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451042', 'tblTempVendorCDR_20' ) start [2025-02-11 10:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451042', 'tblTempVendorCDR_20' ) end [2025-02-11 10:12:23] Production.INFO: ProcessCDR(1,14451042,1,1,2) [2025-02-11 10:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451042', 'tblTempUsageDetail_20' ) start [2025-02-11 10:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451042', 'tblTempUsageDetail_20' ) end [2025-02-11 10:12:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:12:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:12:29] Production.INFO: ==484== Releasing lock... [2025-02-11 10:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:12:29] Production.INFO: 48.25 MB #Memory Used# [2025-02-11 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:13:05 [end_date_ymd] => 2025-02-11 10:13:05 [RateCDR] => 1 ) [2025-02-11 10:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:13:05' and `end` < '2025-02-11 10:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:13:22] Production.INFO: count ==2672 [2025-02-11 10:13:23] Production.ERROR: pbx CDR StartTime 2025-02-11 07:13:05 - End Time 2025-02-11 10:13:05 [2025-02-11 10:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451047', 'tblTempUsageDetail_20' ) start [2025-02-11 10:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451047', 'tblTempUsageDetail_20' ) end [2025-02-11 10:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451047', 'tblTempVendorCDR_20' ) start [2025-02-11 10:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451047', 'tblTempVendorCDR_20' ) end [2025-02-11 10:13:23] Production.INFO: ProcessCDR(1,14451047,1,1,2) [2025-02-11 10:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451047', 'tblTempUsageDetail_20' ) start [2025-02-11 10:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451047', 'tblTempUsageDetail_20' ) end [2025-02-11 10:13:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:13:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:13:28] Production.INFO: ==568== Releasing lock... [2025-02-11 10:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:13:28] Production.INFO: 48 MB #Memory Used# [2025-02-11 10:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:14:06 [end_date_ymd] => 2025-02-11 10:14:06 [RateCDR] => 1 ) [2025-02-11 10:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:14:06' and `end` < '2025-02-11 10:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:14:21] Production.INFO: count ==2689 [2025-02-11 10:14:23] Production.ERROR: pbx CDR StartTime 2025-02-11 07:14:06 - End Time 2025-02-11 10:14:06 [2025-02-11 10:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451052', 'tblTempUsageDetail_20' ) start [2025-02-11 10:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451052', 'tblTempUsageDetail_20' ) end [2025-02-11 10:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451052', 'tblTempVendorCDR_20' ) start [2025-02-11 10:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451052', 'tblTempVendorCDR_20' ) end [2025-02-11 10:14:23] Production.INFO: ProcessCDR(1,14451052,1,1,2) [2025-02-11 10:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451052', 'tblTempUsageDetail_20' ) start [2025-02-11 10:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451052', 'tblTempUsageDetail_20' ) end [2025-02-11 10:14:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:14:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:14:28] Production.INFO: ==654== Releasing lock... [2025-02-11 10:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:14:28] Production.INFO: 48.25 MB #Memory Used# [2025-02-11 10:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:15:06 [end_date_ymd] => 2025-02-11 10:15:06 [RateCDR] => 1 ) [2025-02-11 10:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:15:06' and `end` < '2025-02-11 10:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:15:23] Production.INFO: count ==2694 [2025-02-11 10:15:25] Production.ERROR: pbx CDR StartTime 2025-02-11 07:15:06 - End Time 2025-02-11 10:15:06 [2025-02-11 10:15:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451057', 'tblTempUsageDetail_20' ) start [2025-02-11 10:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451057', 'tblTempUsageDetail_20' ) end [2025-02-11 10:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451057', 'tblTempVendorCDR_20' ) start [2025-02-11 10:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451057', 'tblTempVendorCDR_20' ) end [2025-02-11 10:15:25] Production.INFO: ProcessCDR(1,14451057,1,1,2) [2025-02-11 10:15:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:15:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:15:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:15:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451057', 'tblTempUsageDetail_20' ) start [2025-02-11 10:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451057', 'tblTempUsageDetail_20' ) end [2025-02-11 10:15:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:15:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:15:30] Production.INFO: ==761== Releasing lock... [2025-02-11 10:15:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:15:30] Production.INFO: 48.25 MB #Memory Used# [2025-02-11 10:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:16:06 [end_date_ymd] => 2025-02-11 10:16:06 [RateCDR] => 1 ) [2025-02-11 10:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:16:06' and `end` < '2025-02-11 10:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:16:23] Production.INFO: count ==2716 [2025-02-11 10:16:24] Production.ERROR: pbx CDR StartTime 2025-02-11 07:16:06 - End Time 2025-02-11 10:16:06 [2025-02-11 10:16:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451062', 'tblTempUsageDetail_20' ) start [2025-02-11 10:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451062', 'tblTempUsageDetail_20' ) end [2025-02-11 10:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451062', 'tblTempVendorCDR_20' ) start [2025-02-11 10:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451062', 'tblTempVendorCDR_20' ) end [2025-02-11 10:16:24] Production.INFO: ProcessCDR(1,14451062,1,1,2) [2025-02-11 10:16:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:16:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451062', 'tblTempUsageDetail_20' ) start [2025-02-11 10:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451062', 'tblTempUsageDetail_20' ) end [2025-02-11 10:16:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:16:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:16:29] Production.INFO: ==833== Releasing lock... [2025-02-11 10:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:16:29] Production.INFO: 48.5 MB #Memory Used# [2025-02-11 10:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:17:06 [end_date_ymd] => 2025-02-11 10:17:06 [RateCDR] => 1 ) [2025-02-11 10:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:17:06' and `end` < '2025-02-11 10:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:17:22] Production.INFO: count ==2736 [2025-02-11 10:17:24] Production.ERROR: pbx CDR StartTime 2025-02-11 07:17:06 - End Time 2025-02-11 10:17:06 [2025-02-11 10:17:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451067', 'tblTempUsageDetail_20' ) start [2025-02-11 10:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451067', 'tblTempUsageDetail_20' ) end [2025-02-11 10:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451067', 'tblTempVendorCDR_20' ) start [2025-02-11 10:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451067', 'tblTempVendorCDR_20' ) end [2025-02-11 10:17:24] Production.INFO: ProcessCDR(1,14451067,1,1,2) [2025-02-11 10:17:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451067', 'tblTempUsageDetail_20' ) start [2025-02-11 10:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451067', 'tblTempUsageDetail_20' ) end [2025-02-11 10:17:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:17:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:17:28] Production.INFO: ==902== Releasing lock... [2025-02-11 10:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:17:28] Production.INFO: 48.5 MB #Memory Used# [2025-02-11 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:18:05 [end_date_ymd] => 2025-02-11 10:18:05 [RateCDR] => 1 ) [2025-02-11 10:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:18:05' and `end` < '2025-02-11 10:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:18:25] Production.INFO: count ==2778 [2025-02-11 10:18:26] Production.ERROR: pbx CDR StartTime 2025-02-11 07:18:05 - End Time 2025-02-11 10:18:05 [2025-02-11 10:18:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451072', 'tblTempUsageDetail_20' ) start [2025-02-11 10:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451072', 'tblTempUsageDetail_20' ) end [2025-02-11 10:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451072', 'tblTempVendorCDR_20' ) start [2025-02-11 10:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451072', 'tblTempVendorCDR_20' ) end [2025-02-11 10:18:26] Production.INFO: ProcessCDR(1,14451072,1,1,2) [2025-02-11 10:18:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:18:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:18:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:18:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451072', 'tblTempUsageDetail_20' ) start [2025-02-11 10:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451072', 'tblTempUsageDetail_20' ) end [2025-02-11 10:18:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:18:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:18:31] Production.INFO: ==976== Releasing lock... [2025-02-11 10:18:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:18:31] Production.INFO: 48.75 MB #Memory Used# [2025-02-11 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:19:05 [end_date_ymd] => 2025-02-11 10:19:05 [RateCDR] => 1 ) [2025-02-11 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-02-11 07:19:05' and `end` < '2025-02-11 10:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:19:28] Production.INFO: count ==2815 [2025-02-11 10:19:29] Production.ERROR: pbx CDR StartTime 2025-02-11 07:19:05 - End Time 2025-02-11 10:19:05 [2025-02-11 10:19:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:19:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451077', 'tblTempUsageDetail_20' ) start [2025-02-11 10:19:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451077', 'tblTempUsageDetail_20' ) end [2025-02-11 10:19:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451077', 'tblTempVendorCDR_20' ) start [2025-02-11 10:19:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451077', 'tblTempVendorCDR_20' ) end [2025-02-11 10:19:29] Production.INFO: ProcessCDR(1,14451077,1,1,2) [2025-02-11 10:19:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:19:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:19:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:19:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:19:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451077', 'tblTempUsageDetail_20' ) start [2025-02-11 10:19:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451077', 'tblTempUsageDetail_20' ) end [2025-02-11 10:19:34] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:19:34] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:19:34] Production.INFO: ==1059== Releasing lock... [2025-02-11 10:19:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:19:34] Production.INFO: 49 MB #Memory Used# [2025-02-11 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:20:06 [end_date_ymd] => 2025-02-11 10:20:06 [RateCDR] => 1 ) [2025-02-11 10:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:20:06' and `end` < '2025-02-11 10:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:20:26] Production.INFO: count ==2824 [2025-02-11 10:20:28] Production.ERROR: pbx CDR StartTime 2025-02-11 07:20:06 - End Time 2025-02-11 10:20:06 [2025-02-11 10:20:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451083', 'tblTempUsageDetail_20' ) start [2025-02-11 10:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451083', 'tblTempUsageDetail_20' ) end [2025-02-11 10:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451083', 'tblTempVendorCDR_20' ) start [2025-02-11 10:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451083', 'tblTempVendorCDR_20' ) end [2025-02-11 10:20:28] Production.INFO: ProcessCDR(1,14451083,1,1,2) [2025-02-11 10:20:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:20:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:20:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:20:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451083', 'tblTempUsageDetail_20' ) start [2025-02-11 10:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451083', 'tblTempUsageDetail_20' ) end [2025-02-11 10:20:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:20:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:20:32] Production.INFO: ==1146== Releasing lock... [2025-02-11 10:20:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:20:32] Production.INFO: 49 MB #Memory Used# [2025-02-11 10:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:21:04 [end_date_ymd] => 2025-02-11 10:21:04 [RateCDR] => 1 ) [2025-02-11 10:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:21:04' and `end` < '2025-02-11 10:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:21:18] Production.INFO: count ==2898 [2025-02-11 10:21:19] Production.ERROR: pbx CDR StartTime 2025-02-11 07:21:04 - End Time 2025-02-11 10:21:04 [2025-02-11 10:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451088', 'tblTempUsageDetail_20' ) start [2025-02-11 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451088', 'tblTempUsageDetail_20' ) end [2025-02-11 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451088', 'tblTempVendorCDR_20' ) start [2025-02-11 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451088', 'tblTempVendorCDR_20' ) end [2025-02-11 10:21:19] Production.INFO: ProcessCDR(1,14451088,1,1,2) [2025-02-11 10:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451088', 'tblTempUsageDetail_20' ) start [2025-02-11 10:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451088', 'tblTempUsageDetail_20' ) end [2025-02-11 10:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:21:24] Production.INFO: ==1282== Releasing lock... [2025-02-11 10:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:21:24] Production.INFO: 49.25 MB #Memory Used# [2025-02-11 10:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:22:06 [end_date_ymd] => 2025-02-11 10:22:06 [RateCDR] => 1 ) [2025-02-11 10:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:22:06' and `end` < '2025-02-11 10:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:22:19] Production.INFO: count ==2909 [2025-02-11 10:22:21] Production.ERROR: pbx CDR StartTime 2025-02-11 07:22:06 - End Time 2025-02-11 10:22:06 [2025-02-11 10:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451093', 'tblTempUsageDetail_20' ) start [2025-02-11 10:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451093', 'tblTempUsageDetail_20' ) end [2025-02-11 10:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451093', 'tblTempVendorCDR_20' ) start [2025-02-11 10:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451093', 'tblTempVendorCDR_20' ) end [2025-02-11 10:22:21] Production.INFO: ProcessCDR(1,14451093,1,1,2) [2025-02-11 10:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451093', 'tblTempUsageDetail_20' ) start [2025-02-11 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451093', 'tblTempUsageDetail_20' ) end [2025-02-11 10:22:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:22:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:22:25] Production.INFO: ==1361== Releasing lock... [2025-02-11 10:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:22:25] Production.INFO: 49.5 MB #Memory Used# [2025-02-11 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:23:05 [end_date_ymd] => 2025-02-11 10:23:05 [RateCDR] => 1 ) [2025-02-11 10:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:23:05' and `end` < '2025-02-11 10:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:23:18] Production.INFO: count ==2928 [2025-02-11 10:23:20] Production.ERROR: pbx CDR StartTime 2025-02-11 07:23:05 - End Time 2025-02-11 10:23:05 [2025-02-11 10:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451098', 'tblTempUsageDetail_20' ) start [2025-02-11 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451098', 'tblTempUsageDetail_20' ) end [2025-02-11 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451098', 'tblTempVendorCDR_20' ) start [2025-02-11 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451098', 'tblTempVendorCDR_20' ) end [2025-02-11 10:23:20] Production.INFO: ProcessCDR(1,14451098,1,1,2) [2025-02-11 10:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451098', 'tblTempUsageDetail_20' ) start [2025-02-11 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451098', 'tblTempUsageDetail_20' ) end [2025-02-11 10:23:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:23:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:23:25] Production.INFO: ==1437== Releasing lock... [2025-02-11 10:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:23:25] Production.INFO: 49.5 MB #Memory Used# [2025-02-11 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:24:05 [end_date_ymd] => 2025-02-11 10:24:05 [RateCDR] => 1 ) [2025-02-11 10:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:24:05' and `end` < '2025-02-11 10:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:24:20] Production.INFO: count ==2933 [2025-02-11 10:24:22] Production.ERROR: pbx CDR StartTime 2025-02-11 07:24:05 - End Time 2025-02-11 10:24:05 [2025-02-11 10:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451103', 'tblTempUsageDetail_20' ) start [2025-02-11 10:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451103', 'tblTempUsageDetail_20' ) end [2025-02-11 10:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451103', 'tblTempVendorCDR_20' ) start [2025-02-11 10:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451103', 'tblTempVendorCDR_20' ) end [2025-02-11 10:24:22] Production.INFO: ProcessCDR(1,14451103,1,1,2) [2025-02-11 10:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451103', 'tblTempUsageDetail_20' ) start [2025-02-11 10:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451103', 'tblTempUsageDetail_20' ) end [2025-02-11 10:24:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:24:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:24:27] Production.INFO: ==1546== Releasing lock... [2025-02-11 10:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:24:27] Production.INFO: 49.5 MB #Memory Used# [2025-02-11 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:25:05 [end_date_ymd] => 2025-02-11 10:25:05 [RateCDR] => 1 ) [2025-02-11 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:25:05' and `end` < '2025-02-11 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:25:18] Production.INFO: count ==2955 [2025-02-11 10:25:20] Production.ERROR: pbx CDR StartTime 2025-02-11 07:25:05 - End Time 2025-02-11 10:25:05 [2025-02-11 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451108', 'tblTempUsageDetail_20' ) start [2025-02-11 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451108', 'tblTempUsageDetail_20' ) end [2025-02-11 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451108', 'tblTempVendorCDR_20' ) start [2025-02-11 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451108', 'tblTempVendorCDR_20' ) end [2025-02-11 10:25:20] Production.INFO: ProcessCDR(1,14451108,1,1,2) [2025-02-11 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451108', 'tblTempUsageDetail_20' ) start [2025-02-11 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451108', 'tblTempUsageDetail_20' ) end [2025-02-11 10:25:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:25:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:25:24] Production.INFO: ==1631== Releasing lock... [2025-02-11 10:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:25:24] Production.INFO: 49.75 MB #Memory Used# [2025-02-11 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:26:05 [end_date_ymd] => 2025-02-11 10:26:05 [RateCDR] => 1 ) [2025-02-11 10:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:26:05' and `end` < '2025-02-11 10:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:26:20] Production.INFO: count ==2978 [2025-02-11 10:26:21] Production.ERROR: pbx CDR StartTime 2025-02-11 07:26:05 - End Time 2025-02-11 10:26:05 [2025-02-11 10:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451113', 'tblTempUsageDetail_20' ) start [2025-02-11 10:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451113', 'tblTempUsageDetail_20' ) end [2025-02-11 10:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451113', 'tblTempVendorCDR_20' ) start [2025-02-11 10:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451113', 'tblTempVendorCDR_20' ) end [2025-02-11 10:26:22] Production.INFO: ProcessCDR(1,14451113,1,1,2) [2025-02-11 10:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451113', 'tblTempUsageDetail_20' ) start [2025-02-11 10:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451113', 'tblTempUsageDetail_20' ) end [2025-02-11 10:26:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:26:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:26:26] Production.INFO: ==1721== Releasing lock... [2025-02-11 10:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:26:26] Production.INFO: 50.25 MB #Memory Used# [2025-02-11 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:27:05 [end_date_ymd] => 2025-02-11 10:27:05 [RateCDR] => 1 ) [2025-02-11 10:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:27:05' and `end` < '2025-02-11 10:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:27:19] Production.INFO: count ==2988 [2025-02-11 10:27:20] Production.ERROR: pbx CDR StartTime 2025-02-11 07:27:05 - End Time 2025-02-11 10:27:05 [2025-02-11 10:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451118', 'tblTempUsageDetail_20' ) start [2025-02-11 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451118', 'tblTempUsageDetail_20' ) end [2025-02-11 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451118', 'tblTempVendorCDR_20' ) start [2025-02-11 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451118', 'tblTempVendorCDR_20' ) end [2025-02-11 10:27:20] Production.INFO: ProcessCDR(1,14451118,1,1,2) [2025-02-11 10:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451118', 'tblTempUsageDetail_20' ) start [2025-02-11 10:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451118', 'tblTempUsageDetail_20' ) end [2025-02-11 10:27:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:27:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:27:25] Production.INFO: ==1802== Releasing lock... [2025-02-11 10:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:27:25] Production.INFO: 50.5 MB #Memory Used# [2025-02-11 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:28:05 [end_date_ymd] => 2025-02-11 10:28:05 [RateCDR] => 1 ) [2025-02-11 10:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:28:05' and `end` < '2025-02-11 10:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:28:23] Production.INFO: count ==3013 [2025-02-11 10:28:24] Production.ERROR: pbx CDR StartTime 2025-02-11 07:28:05 - End Time 2025-02-11 10:28:05 [2025-02-11 10:28:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451123', 'tblTempUsageDetail_20' ) start [2025-02-11 10:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451123', 'tblTempUsageDetail_20' ) end [2025-02-11 10:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451123', 'tblTempVendorCDR_20' ) start [2025-02-11 10:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451123', 'tblTempVendorCDR_20' ) end [2025-02-11 10:28:24] Production.INFO: ProcessCDR(1,14451123,1,1,2) [2025-02-11 10:28:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:28:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:28:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451123', 'tblTempUsageDetail_20' ) start [2025-02-11 10:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451123', 'tblTempUsageDetail_20' ) end [2025-02-11 10:28:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:28:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:28:29] Production.INFO: ==1887== Releasing lock... [2025-02-11 10:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:28:29] Production.INFO: 51.5 MB #Memory Used# [2025-02-11 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:29:05 [end_date_ymd] => 2025-02-11 10:29:05 [RateCDR] => 1 ) [2025-02-11 10:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:29:05' and `end` < '2025-02-11 10:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:29:22] Production.INFO: count ==3030 [2025-02-11 10:29:23] Production.ERROR: pbx CDR StartTime 2025-02-11 07:29:05 - End Time 2025-02-11 10:29:05 [2025-02-11 10:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451128', 'tblTempUsageDetail_20' ) start [2025-02-11 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451128', 'tblTempUsageDetail_20' ) end [2025-02-11 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451128', 'tblTempVendorCDR_20' ) start [2025-02-11 10:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451128', 'tblTempVendorCDR_20' ) end [2025-02-11 10:29:23] Production.INFO: ProcessCDR(1,14451128,1,1,2) [2025-02-11 10:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:29:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:29:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451128', 'tblTempUsageDetail_20' ) start [2025-02-11 10:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451128', 'tblTempUsageDetail_20' ) end [2025-02-11 10:29:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:29:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:29:28] Production.INFO: ==1964== Releasing lock... [2025-02-11 10:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:29:28] Production.INFO: 50.5 MB #Memory Used# [2025-02-11 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:30:06 [end_date_ymd] => 2025-02-11 10:30:06 [RateCDR] => 1 ) [2025-02-11 10:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:30:06' and `end` < '2025-02-11 10:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:30:23] Production.INFO: count ==3074 [2025-02-11 10:30:24] Production.ERROR: pbx CDR StartTime 2025-02-11 07:30:06 - End Time 2025-02-11 10:30:06 [2025-02-11 10:30:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451134', 'tblTempUsageDetail_20' ) start [2025-02-11 10:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451134', 'tblTempUsageDetail_20' ) end [2025-02-11 10:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451134', 'tblTempVendorCDR_20' ) start [2025-02-11 10:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451134', 'tblTempVendorCDR_20' ) end [2025-02-11 10:30:24] Production.INFO: ProcessCDR(1,14451134,1,1,2) [2025-02-11 10:30:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:30:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:30:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451134', 'tblTempUsageDetail_20' ) start [2025-02-11 10:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451134', 'tblTempUsageDetail_20' ) end [2025-02-11 10:30:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:30:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:30:30] Production.INFO: ==2049== Releasing lock... [2025-02-11 10:30:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:30:30] Production.INFO: 51 MB #Memory Used# [2025-02-11 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:31:05 [end_date_ymd] => 2025-02-11 10:31:05 [RateCDR] => 1 ) [2025-02-11 10:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:31:05' and `end` < '2025-02-11 10:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:31:22] Production.INFO: count ==3157 [2025-02-11 10:31:23] Production.ERROR: pbx CDR StartTime 2025-02-11 07:31:05 - End Time 2025-02-11 10:31:05 [2025-02-11 10:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451139', 'tblTempUsageDetail_20' ) start [2025-02-11 10:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451139', 'tblTempUsageDetail_20' ) end [2025-02-11 10:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451139', 'tblTempVendorCDR_20' ) start [2025-02-11 10:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451139', 'tblTempVendorCDR_20' ) end [2025-02-11 10:31:23] Production.INFO: ProcessCDR(1,14451139,1,1,2) [2025-02-11 10:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451139', 'tblTempUsageDetail_20' ) start [2025-02-11 10:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451139', 'tblTempUsageDetail_20' ) end [2025-02-11 10:31:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:31:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:31:28] Production.INFO: ==2128== Releasing lock... [2025-02-11 10:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:31:28] Production.INFO: 51.5 MB #Memory Used# [2025-02-11 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:32:05 [end_date_ymd] => 2025-02-11 10:32:05 [RateCDR] => 1 ) [2025-02-11 10:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:32:05' and `end` < '2025-02-11 10:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:32:21] Production.INFO: count ==3164 [2025-02-11 10:32:23] Production.ERROR: pbx CDR StartTime 2025-02-11 07:32:05 - End Time 2025-02-11 10:32:05 [2025-02-11 10:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451144', 'tblTempUsageDetail_20' ) start [2025-02-11 10:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451144', 'tblTempUsageDetail_20' ) end [2025-02-11 10:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451144', 'tblTempVendorCDR_20' ) start [2025-02-11 10:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451144', 'tblTempVendorCDR_20' ) end [2025-02-11 10:32:23] Production.INFO: ProcessCDR(1,14451144,1,1,2) [2025-02-11 10:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451144', 'tblTempUsageDetail_20' ) start [2025-02-11 10:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451144', 'tblTempUsageDetail_20' ) end [2025-02-11 10:32:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:32:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:32:28] Production.INFO: ==2204== Releasing lock... [2025-02-11 10:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:32:28] Production.INFO: 51.75 MB #Memory Used# [2025-02-11 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:33:05 [end_date_ymd] => 2025-02-11 10:33:05 [RateCDR] => 1 ) [2025-02-11 10:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:33:05' and `end` < '2025-02-11 10:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:33:22] Production.INFO: count ==3193 [2025-02-11 10:33:24] Production.ERROR: pbx CDR StartTime 2025-02-11 07:33:05 - End Time 2025-02-11 10:33:05 [2025-02-11 10:33:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451149', 'tblTempUsageDetail_20' ) start [2025-02-11 10:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451149', 'tblTempUsageDetail_20' ) end [2025-02-11 10:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451149', 'tblTempVendorCDR_20' ) start [2025-02-11 10:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451149', 'tblTempVendorCDR_20' ) end [2025-02-11 10:33:24] Production.INFO: ProcessCDR(1,14451149,1,1,2) [2025-02-11 10:33:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451149', 'tblTempUsageDetail_20' ) start [2025-02-11 10:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451149', 'tblTempUsageDetail_20' ) end [2025-02-11 10:33:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:33:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:33:29] Production.INFO: ==2285== Releasing lock... [2025-02-11 10:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:33:29] Production.INFO: 51.75 MB #Memory Used# [2025-02-11 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:34:05 [end_date_ymd] => 2025-02-11 10:34:05 [RateCDR] => 1 ) [2025-02-11 10:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:34:05' and `end` < '2025-02-11 10:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:34:19] Production.INFO: count ==3206 [2025-02-11 10:34:20] Production.ERROR: pbx CDR StartTime 2025-02-11 07:34:05 - End Time 2025-02-11 10:34:05 [2025-02-11 10:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451154', 'tblTempUsageDetail_20' ) start [2025-02-11 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451154', 'tblTempUsageDetail_20' ) end [2025-02-11 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451154', 'tblTempVendorCDR_20' ) start [2025-02-11 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451154', 'tblTempVendorCDR_20' ) end [2025-02-11 10:34:21] Production.INFO: ProcessCDR(1,14451154,1,1,2) [2025-02-11 10:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451154', 'tblTempUsageDetail_20' ) start [2025-02-11 10:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451154', 'tblTempUsageDetail_20' ) end [2025-02-11 10:34:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:34:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:34:26] Production.INFO: ==2371== Releasing lock... [2025-02-11 10:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:34:26] Production.INFO: 52.25 MB #Memory Used# [2025-02-11 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:35:05 [end_date_ymd] => 2025-02-11 10:35:05 [RateCDR] => 1 ) [2025-02-11 10:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:35:05' and `end` < '2025-02-11 10:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:35:29] Production.INFO: count ==3206 [2025-02-11 10:35:30] Production.ERROR: pbx CDR StartTime 2025-02-11 07:35:05 - End Time 2025-02-11 10:35:05 [2025-02-11 10:35:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451159', 'tblTempUsageDetail_20' ) start [2025-02-11 10:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451159', 'tblTempUsageDetail_20' ) end [2025-02-11 10:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451159', 'tblTempVendorCDR_20' ) start [2025-02-11 10:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451159', 'tblTempVendorCDR_20' ) end [2025-02-11 10:35:30] Production.INFO: ProcessCDR(1,14451159,1,1,2) [2025-02-11 10:35:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:35:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:35:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:35:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:35:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451159', 'tblTempUsageDetail_20' ) start [2025-02-11 10:35:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451159', 'tblTempUsageDetail_20' ) end [2025-02-11 10:35:35] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:35:35] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:35:35] Production.INFO: ==2448== Releasing lock... [2025-02-11 10:35:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:35:35] Production.INFO: 52 MB #Memory Used# [2025-02-11 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:36:05 [end_date_ymd] => 2025-02-11 10:36:05 [RateCDR] => 1 ) [2025-02-11 10:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:36:05' and `end` < '2025-02-11 10:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:36:23] Production.INFO: count ==3218 [2025-02-11 10:36:24] Production.ERROR: pbx CDR StartTime 2025-02-11 07:36:05 - End Time 2025-02-11 10:36:05 [2025-02-11 10:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451164', 'tblTempUsageDetail_20' ) start [2025-02-11 10:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451164', 'tblTempUsageDetail_20' ) end [2025-02-11 10:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451164', 'tblTempVendorCDR_20' ) start [2025-02-11 10:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451164', 'tblTempVendorCDR_20' ) end [2025-02-11 10:36:24] Production.INFO: ProcessCDR(1,14451164,1,1,2) [2025-02-11 10:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:36:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:36:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:36:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451164', 'tblTempUsageDetail_20' ) start [2025-02-11 10:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451164', 'tblTempUsageDetail_20' ) end [2025-02-11 10:36:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:36:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:36:29] Production.INFO: ==2572== Releasing lock... [2025-02-11 10:36:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:36:29] Production.INFO: 52 MB #Memory Used# [2025-02-11 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:37:05 [end_date_ymd] => 2025-02-11 10:37:05 [RateCDR] => 1 ) [2025-02-11 10:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:37:05' and `end` < '2025-02-11 10:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:37:23] Production.INFO: count ==3247 [2025-02-11 10:37:24] Production.ERROR: pbx CDR StartTime 2025-02-11 07:37:05 - End Time 2025-02-11 10:37:05 [2025-02-11 10:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451169', 'tblTempUsageDetail_20' ) start [2025-02-11 10:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451169', 'tblTempUsageDetail_20' ) end [2025-02-11 10:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451169', 'tblTempVendorCDR_20' ) start [2025-02-11 10:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451169', 'tblTempVendorCDR_20' ) end [2025-02-11 10:37:24] Production.INFO: ProcessCDR(1,14451169,1,1,2) [2025-02-11 10:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:37:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:37:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451169', 'tblTempUsageDetail_20' ) start [2025-02-11 10:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451169', 'tblTempUsageDetail_20' ) end [2025-02-11 10:37:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:37:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:37:29] Production.INFO: ==2651== Releasing lock... [2025-02-11 10:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:37:29] Production.INFO: 53 MB #Memory Used# [2025-02-11 10:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:38:04 [end_date_ymd] => 2025-02-11 10:38:04 [RateCDR] => 1 ) [2025-02-11 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-02-11 07:38:04' and `end` < '2025-02-11 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-02-11 10:38:25] Production.INFO: count ==3264 [2025-02-11 10:38:26] Production.ERROR: pbx CDR StartTime 2025-02-11 07:38:04 - End Time 2025-02-11 10:38:04 [2025-02-11 10:38:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451172', 'tblTempUsageDetail_20' ) start [2025-02-11 10:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451172', 'tblTempUsageDetail_20' ) end [2025-02-11 10:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451172', 'tblTempVendorCDR_20' ) start [2025-02-11 10:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451172', 'tblTempVendorCDR_20' ) end [2025-02-11 10:38:27] Production.INFO: ProcessCDR(1,14451172,1,1,2) [2025-02-11 10:38:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:38:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:38:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:38:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451172', 'tblTempUsageDetail_20' ) start [2025-02-11 10:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451172', 'tblTempUsageDetail_20' ) end [2025-02-11 10:38:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:38:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:38:32] Production.INFO: ==2731== Releasing lock... [2025-02-11 10:38:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:38:32] Production.INFO: 52.75 MB #Memory Used# [2025-02-11 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:39:05 [end_date_ymd] => 2025-02-11 10:39:05 [RateCDR] => 1 ) [2025-02-11 10:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:39:05' and `end` < '2025-02-11 10:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:39:23] Production.INFO: count ==3292 [2025-02-11 10:39:24] Production.ERROR: pbx CDR StartTime 2025-02-11 07:39:05 - End Time 2025-02-11 10:39:05 [2025-02-11 10:39:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451179', 'tblTempUsageDetail_20' ) start [2025-02-11 10:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451179', 'tblTempUsageDetail_20' ) end [2025-02-11 10:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451179', 'tblTempVendorCDR_20' ) start [2025-02-11 10:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451179', 'tblTempVendorCDR_20' ) end [2025-02-11 10:39:24] Production.INFO: ProcessCDR(1,14451179,1,1,2) [2025-02-11 10:39:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:39:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:39:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:39:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451179', 'tblTempUsageDetail_20' ) start [2025-02-11 10:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451179', 'tblTempUsageDetail_20' ) end [2025-02-11 10:39:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:39:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:39:29] Production.INFO: ==2817== Releasing lock... [2025-02-11 10:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:39:29] Production.INFO: 53 MB #Memory Used# [2025-02-11 10:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:40:05 [end_date_ymd] => 2025-02-11 10:40:05 [RateCDR] => 1 ) [2025-02-11 10:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:40:05' and `end` < '2025-02-11 10:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:40:25] Production.INFO: count ==3323 [2025-02-11 10:40:26] Production.ERROR: pbx CDR StartTime 2025-02-11 07:40:05 - End Time 2025-02-11 10:40:05 [2025-02-11 10:40:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451184', 'tblTempUsageDetail_20' ) start [2025-02-11 10:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451184', 'tblTempUsageDetail_20' ) end [2025-02-11 10:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451184', 'tblTempVendorCDR_20' ) start [2025-02-11 10:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451184', 'tblTempVendorCDR_20' ) end [2025-02-11 10:40:26] Production.INFO: ProcessCDR(1,14451184,1,1,2) [2025-02-11 10:40:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:40:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:40:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:40:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451184', 'tblTempUsageDetail_20' ) start [2025-02-11 10:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451184', 'tblTempUsageDetail_20' ) end [2025-02-11 10:40:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:40:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:40:31] Production.INFO: ==2902== Releasing lock... [2025-02-11 10:40:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:40:31] Production.INFO: 53.5 MB #Memory Used# [2025-02-11 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:41:05 [end_date_ymd] => 2025-02-11 10:41:05 [RateCDR] => 1 ) [2025-02-11 10:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:41:05' and `end` < '2025-02-11 10:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:41:25] Production.INFO: count ==3402 [2025-02-11 10:41:26] Production.ERROR: pbx CDR StartTime 2025-02-11 07:41:05 - End Time 2025-02-11 10:41:05 [2025-02-11 10:41:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451190', 'tblTempUsageDetail_20' ) start [2025-02-11 10:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451190', 'tblTempUsageDetail_20' ) end [2025-02-11 10:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451190', 'tblTempVendorCDR_20' ) start [2025-02-11 10:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451190', 'tblTempVendorCDR_20' ) end [2025-02-11 10:41:26] Production.INFO: ProcessCDR(1,14451190,1,1,2) [2025-02-11 10:41:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:41:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:41:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:41:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:41:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451190', 'tblTempUsageDetail_20' ) start [2025-02-11 10:41:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451190', 'tblTempUsageDetail_20' ) end [2025-02-11 10:41:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:41:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:41:32] Production.INFO: ==2988== Releasing lock... [2025-02-11 10:41:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:41:32] Production.INFO: 53.75 MB #Memory Used# [2025-02-11 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:42:05 [end_date_ymd] => 2025-02-11 10:42:05 [RateCDR] => 1 ) [2025-02-11 10:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:42:05' and `end` < '2025-02-11 10:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:42:22] Production.INFO: count ==3406 [2025-02-11 10:42:24] Production.ERROR: pbx CDR StartTime 2025-02-11 07:42:05 - End Time 2025-02-11 10:42:05 [2025-02-11 10:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451195', 'tblTempUsageDetail_20' ) start [2025-02-11 10:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451195', 'tblTempUsageDetail_20' ) end [2025-02-11 10:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451195', 'tblTempVendorCDR_20' ) start [2025-02-11 10:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451195', 'tblTempVendorCDR_20' ) end [2025-02-11 10:42:24] Production.INFO: ProcessCDR(1,14451195,1,1,2) [2025-02-11 10:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:42:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:42:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451195', 'tblTempUsageDetail_20' ) start [2025-02-11 10:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451195', 'tblTempUsageDetail_20' ) end [2025-02-11 10:42:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:42:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:42:29] Production.INFO: ==3067== Releasing lock... [2025-02-11 10:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:42:29] Production.INFO: 54 MB #Memory Used# [2025-02-11 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:43:05 [end_date_ymd] => 2025-02-11 10:43:05 [RateCDR] => 1 ) [2025-02-11 10:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:43:05' and `end` < '2025-02-11 10:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:43:19] Production.INFO: count ==3416 [2025-02-11 10:43:20] Production.ERROR: pbx CDR StartTime 2025-02-11 07:43:05 - End Time 2025-02-11 10:43:05 [2025-02-11 10:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451200', 'tblTempUsageDetail_20' ) start [2025-02-11 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451200', 'tblTempUsageDetail_20' ) end [2025-02-11 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451200', 'tblTempVendorCDR_20' ) start [2025-02-11 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451200', 'tblTempVendorCDR_20' ) end [2025-02-11 10:43:20] Production.INFO: ProcessCDR(1,14451200,1,1,2) [2025-02-11 10:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451200', 'tblTempUsageDetail_20' ) start [2025-02-11 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451200', 'tblTempUsageDetail_20' ) end [2025-02-11 10:43:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:43:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:43:25] Production.INFO: ==3151== Releasing lock... [2025-02-11 10:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:43:25] Production.INFO: 54.5 MB #Memory Used# [2025-02-11 10:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:44:06 [end_date_ymd] => 2025-02-11 10:44:06 [RateCDR] => 1 ) [2025-02-11 10:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:44:06' and `end` < '2025-02-11 10:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:44:26] Production.INFO: count ==3440 [2025-02-11 10:44:28] Production.ERROR: pbx CDR StartTime 2025-02-11 07:44:06 - End Time 2025-02-11 10:44:06 [2025-02-11 10:44:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451205', 'tblTempUsageDetail_20' ) start [2025-02-11 10:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451205', 'tblTempUsageDetail_20' ) end [2025-02-11 10:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451205', 'tblTempVendorCDR_20' ) start [2025-02-11 10:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451205', 'tblTempVendorCDR_20' ) end [2025-02-11 10:44:28] Production.INFO: ProcessCDR(1,14451205,1,1,2) [2025-02-11 10:44:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:44:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:44:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:44:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:44:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451205', 'tblTempUsageDetail_20' ) start [2025-02-11 10:44:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451205', 'tblTempUsageDetail_20' ) end [2025-02-11 10:44:33] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:44:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:44:33] Production.INFO: ==3239== Releasing lock... [2025-02-11 10:44:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:44:33] Production.INFO: 53.75 MB #Memory Used# [2025-02-11 10:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:45:05 [end_date_ymd] => 2025-02-11 10:45:05 [RateCDR] => 1 ) [2025-02-11 10:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:45:05' and `end` < '2025-02-11 10:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:45:28] Production.INFO: count ==3459 [2025-02-11 10:45:30] Production.ERROR: pbx CDR StartTime 2025-02-11 07:45:05 - End Time 2025-02-11 10:45:05 [2025-02-11 10:45:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:45:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451210', 'tblTempUsageDetail_20' ) start [2025-02-11 10:45:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451210', 'tblTempUsageDetail_20' ) end [2025-02-11 10:45:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451210', 'tblTempVendorCDR_20' ) start [2025-02-11 10:45:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451210', 'tblTempVendorCDR_20' ) end [2025-02-11 10:45:30] Production.INFO: ProcessCDR(1,14451210,1,1,2) [2025-02-11 10:45:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:45:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:45:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:45:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:45:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451210', 'tblTempUsageDetail_20' ) start [2025-02-11 10:45:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451210', 'tblTempUsageDetail_20' ) end [2025-02-11 10:45:35] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:45:35] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:45:35] Production.INFO: ==3329== Releasing lock... [2025-02-11 10:45:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:45:35] Production.INFO: 53.75 MB #Memory Used# [2025-02-11 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:46:05 [end_date_ymd] => 2025-02-11 10:46:05 [RateCDR] => 1 ) [2025-02-11 10:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:46:05' and `end` < '2025-02-11 10:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:46:24] Production.INFO: count ==3474 [2025-02-11 10:46:25] Production.ERROR: pbx CDR StartTime 2025-02-11 07:46:05 - End Time 2025-02-11 10:46:05 [2025-02-11 10:46:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451215', 'tblTempUsageDetail_20' ) start [2025-02-11 10:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451215', 'tblTempUsageDetail_20' ) end [2025-02-11 10:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451215', 'tblTempVendorCDR_20' ) start [2025-02-11 10:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451215', 'tblTempVendorCDR_20' ) end [2025-02-11 10:46:25] Production.INFO: ProcessCDR(1,14451215,1,1,2) [2025-02-11 10:46:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:46:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:46:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:46:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451215', 'tblTempUsageDetail_20' ) start [2025-02-11 10:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451215', 'tblTempUsageDetail_20' ) end [2025-02-11 10:46:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:46:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:46:31] Production.INFO: ==3407== Releasing lock... [2025-02-11 10:46:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:46:31] Production.INFO: 54.75 MB #Memory Used# [2025-02-11 10:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:47:04 [end_date_ymd] => 2025-02-11 10:47:04 [RateCDR] => 1 ) [2025-02-11 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-02-11 07:47:04' and `end` < '2025-02-11 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-02-11 10:47:21] Production.INFO: count ==3491 [2025-02-11 10:47:22] Production.ERROR: pbx CDR StartTime 2025-02-11 07:47:04 - End Time 2025-02-11 10:47:04 [2025-02-11 10:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451220', 'tblTempUsageDetail_20' ) start [2025-02-11 10:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451220', 'tblTempUsageDetail_20' ) end [2025-02-11 10:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451220', 'tblTempVendorCDR_20' ) start [2025-02-11 10:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451220', 'tblTempVendorCDR_20' ) end [2025-02-11 10:47:22] Production.INFO: ProcessCDR(1,14451220,1,1,2) [2025-02-11 10:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451220', 'tblTempUsageDetail_20' ) start [2025-02-11 10:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451220', 'tblTempUsageDetail_20' ) end [2025-02-11 10:47:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:47:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:47:28] Production.INFO: ==3489== Releasing lock... [2025-02-11 10:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:47:28] Production.INFO: 54.25 MB #Memory Used# [2025-02-11 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:48:05 [end_date_ymd] => 2025-02-11 10:48:05 [RateCDR] => 1 ) [2025-02-11 10:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:48:05' and `end` < '2025-02-11 10:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:48:22] Production.INFO: count ==3515 [2025-02-11 10:48:23] Production.ERROR: pbx CDR StartTime 2025-02-11 07:48:05 - End Time 2025-02-11 10:48:05 [2025-02-11 10:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451225', 'tblTempUsageDetail_20' ) start [2025-02-11 10:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451225', 'tblTempUsageDetail_20' ) end [2025-02-11 10:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451225', 'tblTempVendorCDR_20' ) start [2025-02-11 10:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451225', 'tblTempVendorCDR_20' ) end [2025-02-11 10:48:23] Production.INFO: ProcessCDR(1,14451225,1,1,2) [2025-02-11 10:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451225', 'tblTempUsageDetail_20' ) start [2025-02-11 10:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451225', 'tblTempUsageDetail_20' ) end [2025-02-11 10:48:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:48:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:48:28] Production.INFO: ==3575== Releasing lock... [2025-02-11 10:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:48:28] Production.INFO: 54.5 MB #Memory Used# [2025-02-11 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:49:05 [end_date_ymd] => 2025-02-11 10:49:05 [RateCDR] => 1 ) [2025-02-11 10:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:49:05' and `end` < '2025-02-11 10:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:49:24] Production.INFO: count ==3525 [2025-02-11 10:49:25] Production.ERROR: pbx CDR StartTime 2025-02-11 07:49:05 - End Time 2025-02-11 10:49:05 [2025-02-11 10:49:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451230', 'tblTempUsageDetail_20' ) start [2025-02-11 10:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451230', 'tblTempUsageDetail_20' ) end [2025-02-11 10:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451230', 'tblTempVendorCDR_20' ) start [2025-02-11 10:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451230', 'tblTempVendorCDR_20' ) end [2025-02-11 10:49:25] Production.INFO: ProcessCDR(1,14451230,1,1,2) [2025-02-11 10:49:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:49:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:49:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:49:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451230', 'tblTempUsageDetail_20' ) start [2025-02-11 10:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451230', 'tblTempUsageDetail_20' ) end [2025-02-11 10:49:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:49:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:49:31] Production.INFO: ==3662== Releasing lock... [2025-02-11 10:49:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:49:31] Production.INFO: 54.5 MB #Memory Used# [2025-02-11 10:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:50:07 [end_date_ymd] => 2025-02-11 10:50:07 [RateCDR] => 1 ) [2025-02-11 10:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:50:07' and `end` < '2025-02-11 10:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:50:30] Production.INFO: count ==3543 [2025-02-11 10:50:31] Production.ERROR: pbx CDR StartTime 2025-02-11 07:50:07 - End Time 2025-02-11 10:50:07 [2025-02-11 10:50:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451236', 'tblTempUsageDetail_20' ) start [2025-02-11 10:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451236', 'tblTempUsageDetail_20' ) end [2025-02-11 10:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451236', 'tblTempVendorCDR_20' ) start [2025-02-11 10:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451236', 'tblTempVendorCDR_20' ) end [2025-02-11 10:50:31] Production.INFO: ProcessCDR(1,14451236,1,1,2) [2025-02-11 10:50:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:50:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:50:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:50:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:50:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451236', 'tblTempUsageDetail_20' ) start [2025-02-11 10:50:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451236', 'tblTempUsageDetail_20' ) end [2025-02-11 10:50:36] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:50:36] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:50:36] Production.INFO: ==3751== Releasing lock... [2025-02-11 10:50:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:50:36] Production.INFO: 54.75 MB #Memory Used# [2025-02-11 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:51:05 [end_date_ymd] => 2025-02-11 10:51:05 [RateCDR] => 1 ) [2025-02-11 10:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:51:05' and `end` < '2025-02-11 10:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:51:23] Production.INFO: count ==3651 [2025-02-11 10:51:25] Production.ERROR: pbx CDR StartTime 2025-02-11 07:51:05 - End Time 2025-02-11 10:51:05 [2025-02-11 10:51:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451241', 'tblTempUsageDetail_20' ) start [2025-02-11 10:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451241', 'tblTempUsageDetail_20' ) end [2025-02-11 10:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451241', 'tblTempVendorCDR_20' ) start [2025-02-11 10:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451241', 'tblTempVendorCDR_20' ) end [2025-02-11 10:51:25] Production.INFO: ProcessCDR(1,14451241,1,1,2) [2025-02-11 10:51:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:51:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:51:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:51:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451241', 'tblTempUsageDetail_20' ) start [2025-02-11 10:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451241', 'tblTempUsageDetail_20' ) end [2025-02-11 10:51:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:51:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:51:30] Production.INFO: ==3835== Releasing lock... [2025-02-11 10:51:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:51:30] Production.INFO: 55.25 MB #Memory Used# [2025-02-11 10:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:52:06 [end_date_ymd] => 2025-02-11 10:52:06 [RateCDR] => 1 ) [2025-02-11 10:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:52:06' and `end` < '2025-02-11 10:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:52:24] Production.INFO: count ==3675 [2025-02-11 10:52:25] Production.ERROR: pbx CDR StartTime 2025-02-11 07:52:06 - End Time 2025-02-11 10:52:06 [2025-02-11 10:52:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451246', 'tblTempUsageDetail_20' ) start [2025-02-11 10:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451246', 'tblTempUsageDetail_20' ) end [2025-02-11 10:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451246', 'tblTempVendorCDR_20' ) start [2025-02-11 10:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451246', 'tblTempVendorCDR_20' ) end [2025-02-11 10:52:25] Production.INFO: ProcessCDR(1,14451246,1,1,2) [2025-02-11 10:52:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:52:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:52:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:52:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451246', 'tblTempUsageDetail_20' ) start [2025-02-11 10:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451246', 'tblTempUsageDetail_20' ) end [2025-02-11 10:52:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:52:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:52:31] Production.INFO: ==3971== Releasing lock... [2025-02-11 10:52:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:52:31] Production.INFO: 55.5 MB #Memory Used# [2025-02-11 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:53:05 [end_date_ymd] => 2025-02-11 10:53:05 [RateCDR] => 1 ) [2025-02-11 10:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:53:05' and `end` < '2025-02-11 10:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:53:19] Production.INFO: count ==3692 [2025-02-11 10:53:21] Production.ERROR: pbx CDR StartTime 2025-02-11 07:53:05 - End Time 2025-02-11 10:53:05 [2025-02-11 10:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451251', 'tblTempUsageDetail_20' ) start [2025-02-11 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451251', 'tblTempUsageDetail_20' ) end [2025-02-11 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451251', 'tblTempVendorCDR_20' ) start [2025-02-11 10:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451251', 'tblTempVendorCDR_20' ) end [2025-02-11 10:53:21] Production.INFO: ProcessCDR(1,14451251,1,1,2) [2025-02-11 10:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451251', 'tblTempUsageDetail_20' ) start [2025-02-11 10:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451251', 'tblTempUsageDetail_20' ) end [2025-02-11 10:53:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:53:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:53:26] Production.INFO: ==4062== Releasing lock... [2025-02-11 10:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:53:26] Production.INFO: 55.75 MB #Memory Used# [2025-02-11 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:54:05 [end_date_ymd] => 2025-02-11 10:54:05 [RateCDR] => 1 ) [2025-02-11 10:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:54:05' and `end` < '2025-02-11 10:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:54:26] Production.INFO: count ==3732 [2025-02-11 10:54:28] Production.ERROR: pbx CDR StartTime 2025-02-11 07:54:05 - End Time 2025-02-11 10:54:05 [2025-02-11 10:54:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451256', 'tblTempUsageDetail_20' ) start [2025-02-11 10:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451256', 'tblTempUsageDetail_20' ) end [2025-02-11 10:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451256', 'tblTempVendorCDR_20' ) start [2025-02-11 10:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451256', 'tblTempVendorCDR_20' ) end [2025-02-11 10:54:28] Production.INFO: ProcessCDR(1,14451256,1,1,2) [2025-02-11 10:54:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:54:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:54:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:54:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451256', 'tblTempUsageDetail_20' ) start [2025-02-11 10:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451256', 'tblTempUsageDetail_20' ) end [2025-02-11 10:54:33] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:54:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:54:33] Production.INFO: ==4146== Releasing lock... [2025-02-11 10:54:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:54:33] Production.INFO: 55.75 MB #Memory Used# [2025-02-11 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:55:05 [end_date_ymd] => 2025-02-11 10:55:05 [RateCDR] => 1 ) [2025-02-11 10:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:55:05' and `end` < '2025-02-11 10:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:55:20] Production.INFO: count ==3763 [2025-02-11 10:55:21] Production.ERROR: pbx CDR StartTime 2025-02-11 07:55:05 - End Time 2025-02-11 10:55:05 [2025-02-11 10:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451261', 'tblTempUsageDetail_20' ) start [2025-02-11 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451261', 'tblTempUsageDetail_20' ) end [2025-02-11 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451261', 'tblTempVendorCDR_20' ) start [2025-02-11 10:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451261', 'tblTempVendorCDR_20' ) end [2025-02-11 10:55:22] Production.INFO: ProcessCDR(1,14451261,1,1,2) [2025-02-11 10:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451261', 'tblTempUsageDetail_20' ) start [2025-02-11 10:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451261', 'tblTempUsageDetail_20' ) end [2025-02-11 10:55:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:55:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:55:27] Production.INFO: ==4230== Releasing lock... [2025-02-11 10:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:55:27] Production.INFO: 56 MB #Memory Used# [2025-02-11 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:56:05 [end_date_ymd] => 2025-02-11 10:56:05 [RateCDR] => 1 ) [2025-02-11 10:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:56:05' and `end` < '2025-02-11 10:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:56:31] Production.INFO: count ==3806 [2025-02-11 10:56:32] Production.ERROR: pbx CDR StartTime 2025-02-11 07:56:05 - End Time 2025-02-11 10:56:05 [2025-02-11 10:56:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:56:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451266', 'tblTempUsageDetail_20' ) start [2025-02-11 10:56:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451266', 'tblTempUsageDetail_20' ) end [2025-02-11 10:56:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451266', 'tblTempVendorCDR_20' ) start [2025-02-11 10:56:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451266', 'tblTempVendorCDR_20' ) end [2025-02-11 10:56:32] Production.INFO: ProcessCDR(1,14451266,1,1,2) [2025-02-11 10:56:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:56:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:56:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:56:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:56:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451266', 'tblTempUsageDetail_20' ) start [2025-02-11 10:56:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451266', 'tblTempUsageDetail_20' ) end [2025-02-11 10:56:38] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:56:38] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:56:38] Production.INFO: ==4312== Releasing lock... [2025-02-11 10:56:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:56:38] Production.INFO: 56.5 MB #Memory Used# [2025-02-11 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:57:05 [end_date_ymd] => 2025-02-11 10:57:05 [RateCDR] => 1 ) [2025-02-11 10:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:57:05' and `end` < '2025-02-11 10:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:57:24] Production.INFO: count ==3826 [2025-02-11 10:57:26] Production.ERROR: pbx CDR StartTime 2025-02-11 07:57:05 - End Time 2025-02-11 10:57:05 [2025-02-11 10:57:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451271', 'tblTempUsageDetail_20' ) start [2025-02-11 10:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451271', 'tblTempUsageDetail_20' ) end [2025-02-11 10:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451271', 'tblTempVendorCDR_20' ) start [2025-02-11 10:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451271', 'tblTempVendorCDR_20' ) end [2025-02-11 10:57:26] Production.INFO: ProcessCDR(1,14451271,1,1,2) [2025-02-11 10:57:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:57:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:57:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:57:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451271', 'tblTempUsageDetail_20' ) start [2025-02-11 10:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451271', 'tblTempUsageDetail_20' ) end [2025-02-11 10:57:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:57:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:57:31] Production.INFO: ==4388== Releasing lock... [2025-02-11 10:57:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:57:31] Production.INFO: 57.25 MB #Memory Used# [2025-02-11 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:58:05 [end_date_ymd] => 2025-02-11 10:58:05 [RateCDR] => 1 ) [2025-02-11 10:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:58:05' and `end` < '2025-02-11 10:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:58:32] Production.INFO: count ==3835 [2025-02-11 10:58:34] Production.ERROR: pbx CDR StartTime 2025-02-11 07:58:05 - End Time 2025-02-11 10:58:05 [2025-02-11 10:58:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:58:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451276', 'tblTempUsageDetail_20' ) start [2025-02-11 10:58:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451276', 'tblTempUsageDetail_20' ) end [2025-02-11 10:58:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451276', 'tblTempVendorCDR_20' ) start [2025-02-11 10:58:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451276', 'tblTempVendorCDR_20' ) end [2025-02-11 10:58:34] Production.INFO: ProcessCDR(1,14451276,1,1,2) [2025-02-11 10:58:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:58:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:58:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:58:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:58:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451276', 'tblTempUsageDetail_20' ) start [2025-02-11 10:58:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451276', 'tblTempUsageDetail_20' ) end [2025-02-11 10:58:39] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:58:39] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:58:39] Production.INFO: ==4477== Releasing lock... [2025-02-11 10:58:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:58:39] Production.INFO: 56.75 MB #Memory Used# [2025-02-11 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 07:59:05 [end_date_ymd] => 2025-02-11 10:59:05 [RateCDR] => 1 ) [2025-02-11 10:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 07:59:05' and `end` < '2025-02-11 10:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 10:59:26] Production.INFO: count ==3838 [2025-02-11 10:59:28] Production.ERROR: pbx CDR StartTime 2025-02-11 07:59:05 - End Time 2025-02-11 10:59:05 [2025-02-11 10:59:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 10:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451281', 'tblTempUsageDetail_20' ) start [2025-02-11 10:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451281', 'tblTempUsageDetail_20' ) end [2025-02-11 10:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451281', 'tblTempVendorCDR_20' ) start [2025-02-11 10:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451281', 'tblTempVendorCDR_20' ) end [2025-02-11 10:59:28] Production.INFO: ProcessCDR(1,14451281,1,1,2) [2025-02-11 10:59:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:59:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 10:59:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:59:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 10:59:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451281', 'tblTempUsageDetail_20' ) start [2025-02-11 10:59:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451281', 'tblTempUsageDetail_20' ) end [2025-02-11 10:59:33] Production.ERROR: pbx prc_insertCDR start [2025-02-11 10:59:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 10:59:33] Production.INFO: ==4552== Releasing lock... [2025-02-11 10:59:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 10:59:33] Production.INFO: 56.75 MB #Memory Used# [2025-02-11 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:00:06 [end_date_ymd] => 2025-02-11 11:00:06 [RateCDR] => 1 ) [2025-02-11 11:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:00:06' and `end` < '2025-02-11 11:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:00:26] Production.INFO: count ==3852 [2025-02-11 11:00:28] Production.ERROR: pbx CDR StartTime 2025-02-11 08:00:06 - End Time 2025-02-11 11:00:06 [2025-02-11 11:00:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451287', 'tblTempUsageDetail_20' ) start [2025-02-11 11:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451287', 'tblTempUsageDetail_20' ) end [2025-02-11 11:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451287', 'tblTempVendorCDR_20' ) start [2025-02-11 11:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451287', 'tblTempVendorCDR_20' ) end [2025-02-11 11:00:28] Production.INFO: ProcessCDR(1,14451287,1,1,2) [2025-02-11 11:00:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:00:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:00:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451287', 'tblTempUsageDetail_20' ) start [2025-02-11 11:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451287', 'tblTempUsageDetail_20' ) end [2025-02-11 11:00:33] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:00:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:00:33] Production.INFO: ==4646== Releasing lock... [2025-02-11 11:00:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:00:33] Production.INFO: 56.75 MB #Memory Used# [2025-02-11 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:01:05 [end_date_ymd] => 2025-02-11 11:01:05 [RateCDR] => 1 ) [2025-02-11 11:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:01:05' and `end` < '2025-02-11 11:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:01:22] Production.INFO: count ==3948 [2025-02-11 11:01:24] Production.ERROR: pbx CDR StartTime 2025-02-11 08:01:05 - End Time 2025-02-11 11:01:05 [2025-02-11 11:01:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451292', 'tblTempUsageDetail_20' ) start [2025-02-11 11:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451292', 'tblTempUsageDetail_20' ) end [2025-02-11 11:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451292', 'tblTempVendorCDR_20' ) start [2025-02-11 11:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451292', 'tblTempVendorCDR_20' ) end [2025-02-11 11:01:24] Production.INFO: ProcessCDR(1,14451292,1,1,2) [2025-02-11 11:01:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451292', 'tblTempUsageDetail_20' ) start [2025-02-11 11:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451292', 'tblTempUsageDetail_20' ) end [2025-02-11 11:01:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:01:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:01:29] Production.INFO: ==4744== Releasing lock... [2025-02-11 11:01:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:01:29] Production.INFO: 57.5 MB #Memory Used# [2025-02-11 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:02:05 [end_date_ymd] => 2025-02-11 11:02:05 [RateCDR] => 1 ) [2025-02-11 11:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:02:05' and `end` < '2025-02-11 11:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:02:23] Production.INFO: count ==3962 [2025-02-11 11:02:25] Production.ERROR: pbx CDR StartTime 2025-02-11 08:02:05 - End Time 2025-02-11 11:02:05 [2025-02-11 11:02:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451297', 'tblTempUsageDetail_20' ) start [2025-02-11 11:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451297', 'tblTempUsageDetail_20' ) end [2025-02-11 11:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451297', 'tblTempVendorCDR_20' ) start [2025-02-11 11:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451297', 'tblTempVendorCDR_20' ) end [2025-02-11 11:02:25] Production.INFO: ProcessCDR(1,14451297,1,1,2) [2025-02-11 11:02:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:02:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:02:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:02:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451297', 'tblTempUsageDetail_20' ) start [2025-02-11 11:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451297', 'tblTempUsageDetail_20' ) end [2025-02-11 11:02:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:02:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:02:30] Production.INFO: ==4897== Releasing lock... [2025-02-11 11:02:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:02:30] Production.INFO: 58 MB #Memory Used# [2025-02-11 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:03:05 [end_date_ymd] => 2025-02-11 11:03:05 [RateCDR] => 1 ) [2025-02-11 11:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:03:05' and `end` < '2025-02-11 11:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:03:24] Production.INFO: count ==3971 [2025-02-11 11:03:26] Production.ERROR: pbx CDR StartTime 2025-02-11 08:03:05 - End Time 2025-02-11 11:03:05 [2025-02-11 11:03:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451302', 'tblTempUsageDetail_20' ) start [2025-02-11 11:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451302', 'tblTempUsageDetail_20' ) end [2025-02-11 11:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451302', 'tblTempVendorCDR_20' ) start [2025-02-11 11:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451302', 'tblTempVendorCDR_20' ) end [2025-02-11 11:03:26] Production.INFO: ProcessCDR(1,14451302,1,1,2) [2025-02-11 11:03:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451302', 'tblTempUsageDetail_20' ) start [2025-02-11 11:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451302', 'tblTempUsageDetail_20' ) end [2025-02-11 11:03:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:03:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:03:30] Production.INFO: ==4977== Releasing lock... [2025-02-11 11:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:03:30] Production.INFO: 57.75 MB #Memory Used# [2025-02-11 11:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:04:06 [end_date_ymd] => 2025-02-11 11:04:06 [RateCDR] => 1 ) [2025-02-11 11:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:04:06' and `end` < '2025-02-11 11:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:04:24] Production.INFO: count ==3980 [2025-02-11 11:04:26] Production.ERROR: pbx CDR StartTime 2025-02-11 08:04:06 - End Time 2025-02-11 11:04:06 [2025-02-11 11:04:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451307', 'tblTempUsageDetail_20' ) start [2025-02-11 11:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451307', 'tblTempUsageDetail_20' ) end [2025-02-11 11:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451307', 'tblTempVendorCDR_20' ) start [2025-02-11 11:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451307', 'tblTempVendorCDR_20' ) end [2025-02-11 11:04:26] Production.INFO: ProcessCDR(1,14451307,1,1,2) [2025-02-11 11:04:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:04:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:04:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:04:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451307', 'tblTempUsageDetail_20' ) start [2025-02-11 11:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451307', 'tblTempUsageDetail_20' ) end [2025-02-11 11:04:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:04:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:04:31] Production.INFO: ==5056== Releasing lock... [2025-02-11 11:04:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:04:31] Production.INFO: 58 MB #Memory Used# [2025-02-11 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:05:05 [end_date_ymd] => 2025-02-11 11:05:05 [RateCDR] => 1 ) [2025-02-11 11:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:05:05' and `end` < '2025-02-11 11:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:05:19] Production.INFO: count ==3992 [2025-02-11 11:05:21] Production.ERROR: pbx CDR StartTime 2025-02-11 08:05:05 - End Time 2025-02-11 11:05:05 [2025-02-11 11:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451312', 'tblTempUsageDetail_20' ) start [2025-02-11 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451312', 'tblTempUsageDetail_20' ) end [2025-02-11 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451312', 'tblTempVendorCDR_20' ) start [2025-02-11 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451312', 'tblTempVendorCDR_20' ) end [2025-02-11 11:05:21] Production.INFO: ProcessCDR(1,14451312,1,1,2) [2025-02-11 11:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451312', 'tblTempUsageDetail_20' ) start [2025-02-11 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451312', 'tblTempUsageDetail_20' ) end [2025-02-11 11:05:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:05:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:05:26] Production.INFO: ==5214== Releasing lock... [2025-02-11 11:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:05:26] Production.INFO: 58 MB #Memory Used# [2025-02-11 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:06:05 [end_date_ymd] => 2025-02-11 11:06:05 [RateCDR] => 1 ) [2025-02-11 11:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:06:05' and `end` < '2025-02-11 11:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:06:28] Production.INFO: count ==3997 [2025-02-11 11:06:30] Production.ERROR: pbx CDR StartTime 2025-02-11 08:06:05 - End Time 2025-02-11 11:06:05 [2025-02-11 11:06:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451317', 'tblTempUsageDetail_20' ) start [2025-02-11 11:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451317', 'tblTempUsageDetail_20' ) end [2025-02-11 11:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451317', 'tblTempVendorCDR_20' ) start [2025-02-11 11:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451317', 'tblTempVendorCDR_20' ) end [2025-02-11 11:06:30] Production.INFO: ProcessCDR(1,14451317,1,1,2) [2025-02-11 11:06:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:06:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:06:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:06:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:06:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451317', 'tblTempUsageDetail_20' ) start [2025-02-11 11:06:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451317', 'tblTempUsageDetail_20' ) end [2025-02-11 11:06:35] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:06:35] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:06:35] Production.INFO: ==5293== Releasing lock... [2025-02-11 11:06:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:06:35] Production.INFO: 57.75 MB #Memory Used# [2025-02-11 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:07:05 [end_date_ymd] => 2025-02-11 11:07:05 [RateCDR] => 1 ) [2025-02-11 11:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:07:05' and `end` < '2025-02-11 11:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:07:27] Production.INFO: count ==4011 [2025-02-11 11:07:28] Production.ERROR: pbx CDR StartTime 2025-02-11 08:07:05 - End Time 2025-02-11 11:07:05 [2025-02-11 11:07:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451322', 'tblTempUsageDetail_20' ) start [2025-02-11 11:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451322', 'tblTempUsageDetail_20' ) end [2025-02-11 11:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451322', 'tblTempVendorCDR_20' ) start [2025-02-11 11:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451322', 'tblTempVendorCDR_20' ) end [2025-02-11 11:07:29] Production.INFO: ProcessCDR(1,14451322,1,1,2) [2025-02-11 11:07:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:07:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:07:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:07:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451322', 'tblTempUsageDetail_20' ) start [2025-02-11 11:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451322', 'tblTempUsageDetail_20' ) end [2025-02-11 11:07:34] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:07:34] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:07:34] Production.INFO: ==5406== Releasing lock... [2025-02-11 11:07:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:07:34] Production.INFO: 58.25 MB #Memory Used# [2025-02-11 11:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:08:06 [end_date_ymd] => 2025-02-11 11:08:06 [RateCDR] => 1 ) [2025-02-11 11:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:08:06' and `end` < '2025-02-11 11:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:08:23] Production.INFO: count ==4017 [2025-02-11 11:08:25] Production.ERROR: pbx CDR StartTime 2025-02-11 08:08:06 - End Time 2025-02-11 11:08:06 [2025-02-11 11:08:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451327', 'tblTempUsageDetail_20' ) start [2025-02-11 11:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451327', 'tblTempUsageDetail_20' ) end [2025-02-11 11:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451327', 'tblTempVendorCDR_20' ) start [2025-02-11 11:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451327', 'tblTempVendorCDR_20' ) end [2025-02-11 11:08:25] Production.INFO: ProcessCDR(1,14451327,1,1,2) [2025-02-11 11:08:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:08:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:08:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:08:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451327', 'tblTempUsageDetail_20' ) start [2025-02-11 11:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451327', 'tblTempUsageDetail_20' ) end [2025-02-11 11:08:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:08:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:08:30] Production.INFO: ==5566== Releasing lock... [2025-02-11 11:08:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:08:30] Production.INFO: 58 MB #Memory Used# [2025-02-11 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:09:05 [end_date_ymd] => 2025-02-11 11:09:05 [RateCDR] => 1 ) [2025-02-11 11:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:09:05' and `end` < '2025-02-11 11:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:09:18] Production.INFO: count ==4026 [2025-02-11 11:09:20] Production.ERROR: pbx CDR StartTime 2025-02-11 08:09:05 - End Time 2025-02-11 11:09:05 [2025-02-11 11:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451332', 'tblTempUsageDetail_20' ) start [2025-02-11 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451332', 'tblTempUsageDetail_20' ) end [2025-02-11 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451332', 'tblTempVendorCDR_20' ) start [2025-02-11 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451332', 'tblTempVendorCDR_20' ) end [2025-02-11 11:09:20] Production.INFO: ProcessCDR(1,14451332,1,1,2) [2025-02-11 11:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451332', 'tblTempUsageDetail_20' ) start [2025-02-11 11:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451332', 'tblTempUsageDetail_20' ) end [2025-02-11 11:09:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:09:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:09:26] Production.INFO: ==5642== Releasing lock... [2025-02-11 11:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:09:26] Production.INFO: 58 MB #Memory Used# [2025-02-11 11:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:10:07 [end_date_ymd] => 2025-02-11 11:10:07 [RateCDR] => 1 ) [2025-02-11 11:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:10:07' and `end` < '2025-02-11 11:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:10:23] Production.INFO: count ==4025 [2025-02-11 11:10:25] Production.ERROR: pbx CDR StartTime 2025-02-11 08:10:07 - End Time 2025-02-11 11:10:07 [2025-02-11 11:10:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451338', 'tblTempUsageDetail_20' ) start [2025-02-11 11:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451338', 'tblTempUsageDetail_20' ) end [2025-02-11 11:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451338', 'tblTempVendorCDR_20' ) start [2025-02-11 11:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451338', 'tblTempVendorCDR_20' ) end [2025-02-11 11:10:25] Production.INFO: ProcessCDR(1,14451338,1,1,2) [2025-02-11 11:10:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:10:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:10:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:10:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451338', 'tblTempUsageDetail_20' ) start [2025-02-11 11:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451338', 'tblTempUsageDetail_20' ) end [2025-02-11 11:10:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:10:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:10:31] Production.INFO: ==5721== Releasing lock... [2025-02-11 11:10:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:10:31] Production.INFO: 58 MB #Memory Used# [2025-02-11 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:11:05 [end_date_ymd] => 2025-02-11 11:11:05 [RateCDR] => 1 ) [2025-02-11 11:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:11:05' and `end` < '2025-02-11 11:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:11:22] Production.INFO: count ==4084 [2025-02-11 11:11:24] Production.ERROR: pbx CDR StartTime 2025-02-11 08:11:05 - End Time 2025-02-11 11:11:05 [2025-02-11 11:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451343', 'tblTempUsageDetail_20' ) start [2025-02-11 11:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451343', 'tblTempUsageDetail_20' ) end [2025-02-11 11:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451343', 'tblTempVendorCDR_20' ) start [2025-02-11 11:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451343', 'tblTempVendorCDR_20' ) end [2025-02-11 11:11:24] Production.INFO: ProcessCDR(1,14451343,1,1,2) [2025-02-11 11:11:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451343', 'tblTempUsageDetail_20' ) start [2025-02-11 11:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451343', 'tblTempUsageDetail_20' ) end [2025-02-11 11:11:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:11:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:11:28] Production.INFO: ==5802== Releasing lock... [2025-02-11 11:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:11:28] Production.INFO: 58.5 MB #Memory Used# [2025-02-11 11:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:12:06 [end_date_ymd] => 2025-02-11 11:12:06 [RateCDR] => 1 ) [2025-02-11 11:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:12:06' and `end` < '2025-02-11 11:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:12:25] Production.INFO: count ==4079 [2025-02-11 11:12:27] Production.ERROR: pbx CDR StartTime 2025-02-11 08:12:06 - End Time 2025-02-11 11:12:06 [2025-02-11 11:12:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451348', 'tblTempUsageDetail_20' ) start [2025-02-11 11:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451348', 'tblTempUsageDetail_20' ) end [2025-02-11 11:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451348', 'tblTempVendorCDR_20' ) start [2025-02-11 11:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451348', 'tblTempVendorCDR_20' ) end [2025-02-11 11:12:27] Production.INFO: ProcessCDR(1,14451348,1,1,2) [2025-02-11 11:12:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:12:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:12:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:12:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451348', 'tblTempUsageDetail_20' ) start [2025-02-11 11:12:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451348', 'tblTempUsageDetail_20' ) end [2025-02-11 11:12:33] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:12:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:12:33] Production.INFO: ==5961== Releasing lock... [2025-02-11 11:12:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:12:33] Production.INFO: 58.5 MB #Memory Used# [2025-02-11 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:13:05 [end_date_ymd] => 2025-02-11 11:13:05 [RateCDR] => 1 ) [2025-02-11 11:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:13:05' and `end` < '2025-02-11 11:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:13:23] Production.INFO: count ==4088 [2025-02-11 11:13:24] Production.ERROR: pbx CDR StartTime 2025-02-11 08:13:05 - End Time 2025-02-11 11:13:05 [2025-02-11 11:13:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451353', 'tblTempUsageDetail_20' ) start [2025-02-11 11:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451353', 'tblTempUsageDetail_20' ) end [2025-02-11 11:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451353', 'tblTempVendorCDR_20' ) start [2025-02-11 11:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451353', 'tblTempVendorCDR_20' ) end [2025-02-11 11:13:25] Production.INFO: ProcessCDR(1,14451353,1,1,2) [2025-02-11 11:13:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:13:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:13:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:13:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451353', 'tblTempUsageDetail_20' ) start [2025-02-11 11:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451353', 'tblTempUsageDetail_20' ) end [2025-02-11 11:13:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:13:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:13:30] Production.INFO: ==6037== Releasing lock... [2025-02-11 11:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:13:30] Production.INFO: 58.5 MB #Memory Used# [2025-02-11 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:14:05 [end_date_ymd] => 2025-02-11 11:14:05 [RateCDR] => 1 ) [2025-02-11 11:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:14:05' and `end` < '2025-02-11 11:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:14:25] Production.INFO: count ==4078 [2025-02-11 11:14:26] Production.ERROR: pbx CDR StartTime 2025-02-11 08:14:05 - End Time 2025-02-11 11:14:05 [2025-02-11 11:14:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451358', 'tblTempUsageDetail_20' ) start [2025-02-11 11:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451358', 'tblTempUsageDetail_20' ) end [2025-02-11 11:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451358', 'tblTempVendorCDR_20' ) start [2025-02-11 11:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451358', 'tblTempVendorCDR_20' ) end [2025-02-11 11:14:27] Production.INFO: ProcessCDR(1,14451358,1,1,2) [2025-02-11 11:14:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:14:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:14:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:14:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:14:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451358', 'tblTempUsageDetail_20' ) start [2025-02-11 11:14:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451358', 'tblTempUsageDetail_20' ) end [2025-02-11 11:14:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:14:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:14:32] Production.INFO: ==6116== Releasing lock... [2025-02-11 11:14:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:14:32] Production.INFO: 58.5 MB #Memory Used# [2025-02-11 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:15:05 [end_date_ymd] => 2025-02-11 11:15:05 [RateCDR] => 1 ) [2025-02-11 11:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:15:05' and `end` < '2025-02-11 11:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:15:23] Production.INFO: count ==4071 [2025-02-11 11:15:25] Production.ERROR: pbx CDR StartTime 2025-02-11 08:15:05 - End Time 2025-02-11 11:15:05 [2025-02-11 11:15:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451363', 'tblTempUsageDetail_20' ) start [2025-02-11 11:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451363', 'tblTempUsageDetail_20' ) end [2025-02-11 11:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451363', 'tblTempVendorCDR_20' ) start [2025-02-11 11:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451363', 'tblTempVendorCDR_20' ) end [2025-02-11 11:15:25] Production.INFO: ProcessCDR(1,14451363,1,1,2) [2025-02-11 11:15:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:15:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:15:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:15:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451363', 'tblTempUsageDetail_20' ) start [2025-02-11 11:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451363', 'tblTempUsageDetail_20' ) end [2025-02-11 11:15:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:15:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:15:30] Production.INFO: ==6275== Releasing lock... [2025-02-11 11:15:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:15:30] Production.INFO: 58.5 MB #Memory Used# [2025-02-11 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:16:05 [end_date_ymd] => 2025-02-11 11:16:05 [RateCDR] => 1 ) [2025-02-11 11:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:16:05' and `end` < '2025-02-11 11:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:16:22] Production.INFO: count ==4064 [2025-02-11 11:16:24] Production.ERROR: pbx CDR StartTime 2025-02-11 08:16:05 - End Time 2025-02-11 11:16:05 [2025-02-11 11:16:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451368', 'tblTempUsageDetail_20' ) start [2025-02-11 11:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451368', 'tblTempUsageDetail_20' ) end [2025-02-11 11:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451368', 'tblTempVendorCDR_20' ) start [2025-02-11 11:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451368', 'tblTempVendorCDR_20' ) end [2025-02-11 11:16:24] Production.INFO: ProcessCDR(1,14451368,1,1,2) [2025-02-11 11:16:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:16:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451368', 'tblTempUsageDetail_20' ) start [2025-02-11 11:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451368', 'tblTempUsageDetail_20' ) end [2025-02-11 11:16:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:16:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:16:30] Production.INFO: ==6350== Releasing lock... [2025-02-11 11:16:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:16:30] Production.INFO: 58.25 MB #Memory Used# [2025-02-11 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:17:05 [end_date_ymd] => 2025-02-11 11:17:05 [RateCDR] => 1 ) [2025-02-11 11:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:17:05' and `end` < '2025-02-11 11:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:17:19] Production.INFO: count ==4064 [2025-02-11 11:17:21] Production.ERROR: pbx CDR StartTime 2025-02-11 08:17:05 - End Time 2025-02-11 11:17:05 [2025-02-11 11:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451373', 'tblTempUsageDetail_20' ) start [2025-02-11 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451373', 'tblTempUsageDetail_20' ) end [2025-02-11 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451373', 'tblTempVendorCDR_20' ) start [2025-02-11 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451373', 'tblTempVendorCDR_20' ) end [2025-02-11 11:17:21] Production.INFO: ProcessCDR(1,14451373,1,1,2) [2025-02-11 11:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451373', 'tblTempUsageDetail_20' ) start [2025-02-11 11:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451373', 'tblTempUsageDetail_20' ) end [2025-02-11 11:17:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:17:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:17:26] Production.INFO: ==6430== Releasing lock... [2025-02-11 11:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:17:26] Production.INFO: 58.25 MB #Memory Used# [2025-02-11 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:18:05 [end_date_ymd] => 2025-02-11 11:18:05 [RateCDR] => 1 ) [2025-02-11 11:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:18:05' and `end` < '2025-02-11 11:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:18:26] Production.INFO: count ==4060 [2025-02-11 11:18:27] Production.ERROR: pbx CDR StartTime 2025-02-11 08:18:05 - End Time 2025-02-11 11:18:05 [2025-02-11 11:18:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451378', 'tblTempUsageDetail_20' ) start [2025-02-11 11:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451378', 'tblTempUsageDetail_20' ) end [2025-02-11 11:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451378', 'tblTempVendorCDR_20' ) start [2025-02-11 11:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451378', 'tblTempVendorCDR_20' ) end [2025-02-11 11:18:27] Production.INFO: ProcessCDR(1,14451378,1,1,2) [2025-02-11 11:18:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:18:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:18:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:18:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451378', 'tblTempUsageDetail_20' ) start [2025-02-11 11:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451378', 'tblTempUsageDetail_20' ) end [2025-02-11 11:18:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:18:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:18:31] Production.INFO: ==6504== Releasing lock... [2025-02-11 11:18:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:18:31] Production.INFO: 58.25 MB #Memory Used# [2025-02-11 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:19:05 [end_date_ymd] => 2025-02-11 11:19:05 [RateCDR] => 1 ) [2025-02-11 11:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:19:05' and `end` < '2025-02-11 11:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:19:25] Production.INFO: count ==4068 [2025-02-11 11:19:26] Production.ERROR: pbx CDR StartTime 2025-02-11 08:19:05 - End Time 2025-02-11 11:19:05 [2025-02-11 11:19:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451383', 'tblTempUsageDetail_20' ) start [2025-02-11 11:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451383', 'tblTempUsageDetail_20' ) end [2025-02-11 11:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451383', 'tblTempVendorCDR_20' ) start [2025-02-11 11:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451383', 'tblTempVendorCDR_20' ) end [2025-02-11 11:19:27] Production.INFO: ProcessCDR(1,14451383,1,1,2) [2025-02-11 11:19:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:19:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:19:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:19:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451383', 'tblTempUsageDetail_20' ) start [2025-02-11 11:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451383', 'tblTempUsageDetail_20' ) end [2025-02-11 11:19:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:19:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:19:32] Production.INFO: ==6581== Releasing lock... [2025-02-11 11:19:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:19:32] Production.INFO: 58.5 MB #Memory Used# [2025-02-11 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:20:06 [end_date_ymd] => 2025-02-11 11:20:06 [RateCDR] => 1 ) [2025-02-11 11:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:20:06' and `end` < '2025-02-11 11:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:20:27] Production.INFO: count ==4067 [2025-02-11 11:20:29] Production.ERROR: pbx CDR StartTime 2025-02-11 08:20:06 - End Time 2025-02-11 11:20:06 [2025-02-11 11:20:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451388', 'tblTempUsageDetail_20' ) start [2025-02-11 11:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451388', 'tblTempUsageDetail_20' ) end [2025-02-11 11:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451388', 'tblTempVendorCDR_20' ) start [2025-02-11 11:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451388', 'tblTempVendorCDR_20' ) end [2025-02-11 11:20:29] Production.INFO: ProcessCDR(1,14451388,1,1,2) [2025-02-11 11:20:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:20:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:20:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:20:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:20:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451388', 'tblTempUsageDetail_20' ) start [2025-02-11 11:20:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451388', 'tblTempUsageDetail_20' ) end [2025-02-11 11:20:34] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:20:34] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:20:34] Production.INFO: ==6663== Releasing lock... [2025-02-11 11:20:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:20:34] Production.INFO: 58.5 MB #Memory Used# [2025-02-11 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:21:05 [end_date_ymd] => 2025-02-11 11:21:05 [RateCDR] => 1 ) [2025-02-11 11:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:21:05' and `end` < '2025-02-11 11:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:21:29] Production.INFO: count ==4152 [2025-02-11 11:21:31] Production.ERROR: pbx CDR StartTime 2025-02-11 08:21:05 - End Time 2025-02-11 11:21:05 [2025-02-11 11:21:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451394', 'tblTempUsageDetail_20' ) start [2025-02-11 11:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451394', 'tblTempUsageDetail_20' ) end [2025-02-11 11:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451394', 'tblTempVendorCDR_20' ) start [2025-02-11 11:21:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451394', 'tblTempVendorCDR_20' ) end [2025-02-11 11:21:31] Production.INFO: ProcessCDR(1,14451394,1,1,2) [2025-02-11 11:21:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:21:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:21:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:21:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:21:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451394', 'tblTempUsageDetail_20' ) start [2025-02-11 11:21:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451394', 'tblTempUsageDetail_20' ) end [2025-02-11 11:21:37] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:21:37] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:21:37] Production.INFO: ==6742== Releasing lock... [2025-02-11 11:21:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:21:37] Production.INFO: 59 MB #Memory Used# [2025-02-11 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:22:05 [end_date_ymd] => 2025-02-11 11:22:05 [RateCDR] => 1 ) [2025-02-11 11:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:22:05' and `end` < '2025-02-11 11:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:22:24] Production.INFO: count ==4184 [2025-02-11 11:22:26] Production.ERROR: pbx CDR StartTime 2025-02-11 08:22:05 - End Time 2025-02-11 11:22:05 [2025-02-11 11:22:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451399', 'tblTempUsageDetail_20' ) start [2025-02-11 11:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451399', 'tblTempUsageDetail_20' ) end [2025-02-11 11:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451399', 'tblTempVendorCDR_20' ) start [2025-02-11 11:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451399', 'tblTempVendorCDR_20' ) end [2025-02-11 11:22:27] Production.INFO: ProcessCDR(1,14451399,1,1,2) [2025-02-11 11:22:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:22:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:22:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:22:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:22:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451399', 'tblTempUsageDetail_20' ) start [2025-02-11 11:22:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451399', 'tblTempUsageDetail_20' ) end [2025-02-11 11:22:33] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:22:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:22:33] Production.INFO: ==6858== Releasing lock... [2025-02-11 11:22:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:22:33] Production.INFO: 59.25 MB #Memory Used# [2025-02-11 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:23:05 [end_date_ymd] => 2025-02-11 11:23:05 [RateCDR] => 1 ) [2025-02-11 11:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:23:05' and `end` < '2025-02-11 11:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:23:20] Production.INFO: count ==4206 [2025-02-11 11:23:22] Production.ERROR: pbx CDR StartTime 2025-02-11 08:23:05 - End Time 2025-02-11 11:23:05 [2025-02-11 11:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451404', 'tblTempUsageDetail_20' ) start [2025-02-11 11:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451404', 'tblTempUsageDetail_20' ) end [2025-02-11 11:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451404', 'tblTempVendorCDR_20' ) start [2025-02-11 11:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451404', 'tblTempVendorCDR_20' ) end [2025-02-11 11:23:22] Production.INFO: ProcessCDR(1,14451404,1,1,2) [2025-02-11 11:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451404', 'tblTempUsageDetail_20' ) start [2025-02-11 11:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451404', 'tblTempUsageDetail_20' ) end [2025-02-11 11:23:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:23:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:23:28] Production.INFO: ==6939== Releasing lock... [2025-02-11 11:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:23:28] Production.INFO: 59.5 MB #Memory Used# [2025-02-11 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:24:05 [end_date_ymd] => 2025-02-11 11:24:05 [RateCDR] => 1 ) [2025-02-11 11:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:24:05' and `end` < '2025-02-11 11:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:24:30] Production.INFO: count ==4222 [2025-02-11 11:24:32] Production.ERROR: pbx CDR StartTime 2025-02-11 08:24:05 - End Time 2025-02-11 11:24:05 [2025-02-11 11:24:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:24:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451409', 'tblTempUsageDetail_20' ) start [2025-02-11 11:24:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451409', 'tblTempUsageDetail_20' ) end [2025-02-11 11:24:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451409', 'tblTempVendorCDR_20' ) start [2025-02-11 11:24:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451409', 'tblTempVendorCDR_20' ) end [2025-02-11 11:24:32] Production.INFO: ProcessCDR(1,14451409,1,1,2) [2025-02-11 11:24:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:24:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:24:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:24:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:24:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451409', 'tblTempUsageDetail_20' ) start [2025-02-11 11:24:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451409', 'tblTempUsageDetail_20' ) end [2025-02-11 11:24:38] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:24:38] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:24:38] Production.INFO: ==7020== Releasing lock... [2025-02-11 11:24:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:24:38] Production.INFO: 59.5 MB #Memory Used# [2025-02-11 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:25:06 [end_date_ymd] => 2025-02-11 11:25:06 [RateCDR] => 1 ) [2025-02-11 11:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:25:06' and `end` < '2025-02-11 11:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:25:25] Production.INFO: count ==4245 [2025-02-11 11:25:27] Production.ERROR: pbx CDR StartTime 2025-02-11 08:25:06 - End Time 2025-02-11 11:25:06 [2025-02-11 11:25:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451414', 'tblTempUsageDetail_20' ) start [2025-02-11 11:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451414', 'tblTempUsageDetail_20' ) end [2025-02-11 11:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451414', 'tblTempVendorCDR_20' ) start [2025-02-11 11:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451414', 'tblTempVendorCDR_20' ) end [2025-02-11 11:25:27] Production.INFO: ProcessCDR(1,14451414,1,1,2) [2025-02-11 11:25:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451414', 'tblTempUsageDetail_20' ) start [2025-02-11 11:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451414', 'tblTempUsageDetail_20' ) end [2025-02-11 11:25:33] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:25:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:25:33] Production.INFO: ==7109== Releasing lock... [2025-02-11 11:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:25:33] Production.INFO: 60 MB #Memory Used# [2025-02-11 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:26:05 [end_date_ymd] => 2025-02-11 11:26:05 [RateCDR] => 1 ) [2025-02-11 11:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:26:05' and `end` < '2025-02-11 11:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:26:23] Production.INFO: count ==4263 [2025-02-11 11:26:25] Production.ERROR: pbx CDR StartTime 2025-02-11 08:26:05 - End Time 2025-02-11 11:26:05 [2025-02-11 11:26:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451419', 'tblTempUsageDetail_20' ) start [2025-02-11 11:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451419', 'tblTempUsageDetail_20' ) end [2025-02-11 11:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451419', 'tblTempVendorCDR_20' ) start [2025-02-11 11:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451419', 'tblTempVendorCDR_20' ) end [2025-02-11 11:26:26] Production.INFO: ProcessCDR(1,14451419,1,1,2) [2025-02-11 11:26:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:26:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:26:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:26:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451419', 'tblTempUsageDetail_20' ) start [2025-02-11 11:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451419', 'tblTempUsageDetail_20' ) end [2025-02-11 11:26:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:26:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:26:31] Production.INFO: ==7192== Releasing lock... [2025-02-11 11:26:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:26:31] Production.INFO: 60 MB #Memory Used# [2025-02-11 11:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:27:06 [end_date_ymd] => 2025-02-11 11:27:06 [RateCDR] => 1 ) [2025-02-11 11:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:27:06' and `end` < '2025-02-11 11:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:27:22] Production.INFO: count ==4264 [2025-02-11 11:27:24] Production.ERROR: pbx CDR StartTime 2025-02-11 08:27:06 - End Time 2025-02-11 11:27:06 [2025-02-11 11:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451424', 'tblTempUsageDetail_20' ) start [2025-02-11 11:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451424', 'tblTempUsageDetail_20' ) end [2025-02-11 11:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451424', 'tblTempVendorCDR_20' ) start [2025-02-11 11:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451424', 'tblTempVendorCDR_20' ) end [2025-02-11 11:27:24] Production.INFO: ProcessCDR(1,14451424,1,1,2) [2025-02-11 11:27:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:27:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:27:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:27:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451424', 'tblTempUsageDetail_20' ) start [2025-02-11 11:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451424', 'tblTempUsageDetail_20' ) end [2025-02-11 11:27:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:27:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:27:29] Production.INFO: ==7270== Releasing lock... [2025-02-11 11:27:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:27:29] Production.INFO: 60 MB #Memory Used# [2025-02-11 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:28:05 [end_date_ymd] => 2025-02-11 11:28:05 [RateCDR] => 1 ) [2025-02-11 11:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:28:05' and `end` < '2025-02-11 11:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:28:22] Production.INFO: count ==4262 [2025-02-11 11:28:24] Production.ERROR: pbx CDR StartTime 2025-02-11 08:28:05 - End Time 2025-02-11 11:28:05 [2025-02-11 11:28:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451429', 'tblTempUsageDetail_20' ) start [2025-02-11 11:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451429', 'tblTempUsageDetail_20' ) end [2025-02-11 11:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451429', 'tblTempVendorCDR_20' ) start [2025-02-11 11:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451429', 'tblTempVendorCDR_20' ) end [2025-02-11 11:28:24] Production.INFO: ProcessCDR(1,14451429,1,1,2) [2025-02-11 11:28:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:28:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:28:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451429', 'tblTempUsageDetail_20' ) start [2025-02-11 11:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451429', 'tblTempUsageDetail_20' ) end [2025-02-11 11:28:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:28:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:28:29] Production.INFO: ==7351== Releasing lock... [2025-02-11 11:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:28:29] Production.INFO: 60 MB #Memory Used# [2025-02-11 11:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:29:06 [end_date_ymd] => 2025-02-11 11:29:06 [RateCDR] => 1 ) [2025-02-11 11:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:29:06' and `end` < '2025-02-11 11:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:29:22] Production.INFO: count ==4255 [2025-02-11 11:29:24] Production.ERROR: pbx CDR StartTime 2025-02-11 08:29:06 - End Time 2025-02-11 11:29:06 [2025-02-11 11:29:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451434', 'tblTempUsageDetail_20' ) start [2025-02-11 11:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451434', 'tblTempUsageDetail_20' ) end [2025-02-11 11:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451434', 'tblTempVendorCDR_20' ) start [2025-02-11 11:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451434', 'tblTempVendorCDR_20' ) end [2025-02-11 11:29:24] Production.INFO: ProcessCDR(1,14451434,1,1,2) [2025-02-11 11:29:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:29:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:29:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:29:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451434', 'tblTempUsageDetail_20' ) start [2025-02-11 11:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451434', 'tblTempUsageDetail_20' ) end [2025-02-11 11:29:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:29:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:29:29] Production.INFO: ==7429== Releasing lock... [2025-02-11 11:29:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:29:29] Production.INFO: 59.75 MB #Memory Used# [2025-02-11 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:30:06 [end_date_ymd] => 2025-02-11 11:30:06 [RateCDR] => 1 ) [2025-02-11 11:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:30:06' and `end` < '2025-02-11 11:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:30:24] Production.INFO: count ==4271 [2025-02-11 11:30:26] Production.ERROR: pbx CDR StartTime 2025-02-11 08:30:06 - End Time 2025-02-11 11:30:06 [2025-02-11 11:30:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451440', 'tblTempUsageDetail_20' ) start [2025-02-11 11:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451440', 'tblTempUsageDetail_20' ) end [2025-02-11 11:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451440', 'tblTempVendorCDR_20' ) start [2025-02-11 11:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451440', 'tblTempVendorCDR_20' ) end [2025-02-11 11:30:26] Production.INFO: ProcessCDR(1,14451440,1,1,2) [2025-02-11 11:30:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:30:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:30:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:30:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:30:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451440', 'tblTempUsageDetail_20' ) start [2025-02-11 11:30:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451440', 'tblTempUsageDetail_20' ) end [2025-02-11 11:30:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:30:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:30:31] Production.INFO: ==7515== Releasing lock... [2025-02-11 11:30:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:30:31] Production.INFO: 60 MB #Memory Used# [2025-02-11 11:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:31:06 [end_date_ymd] => 2025-02-11 11:31:06 [RateCDR] => 1 ) [2025-02-11 11:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:31:06' and `end` < '2025-02-11 11:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:31:26] Production.INFO: count ==4345 [2025-02-11 11:31:27] Production.ERROR: pbx CDR StartTime 2025-02-11 08:31:06 - End Time 2025-02-11 11:31:06 [2025-02-11 11:31:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451445', 'tblTempUsageDetail_20' ) start [2025-02-11 11:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451445', 'tblTempUsageDetail_20' ) end [2025-02-11 11:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451445', 'tblTempVendorCDR_20' ) start [2025-02-11 11:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451445', 'tblTempVendorCDR_20' ) end [2025-02-11 11:31:28] Production.INFO: ProcessCDR(1,14451445,1,1,2) [2025-02-11 11:31:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:31:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:31:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:31:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:31:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451445', 'tblTempUsageDetail_20' ) start [2025-02-11 11:31:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451445', 'tblTempUsageDetail_20' ) end [2025-02-11 11:31:33] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:31:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:31:33] Production.INFO: ==7600== Releasing lock... [2025-02-11 11:31:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:31:33] Production.INFO: 60.5 MB #Memory Used# [2025-02-11 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:32:05 [end_date_ymd] => 2025-02-11 11:32:05 [RateCDR] => 1 ) [2025-02-11 11:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:32:05' and `end` < '2025-02-11 11:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:32:23] Production.INFO: count ==4350 [2025-02-11 11:32:25] Production.ERROR: pbx CDR StartTime 2025-02-11 08:32:05 - End Time 2025-02-11 11:32:05 [2025-02-11 11:32:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451450', 'tblTempUsageDetail_20' ) start [2025-02-11 11:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451450', 'tblTempUsageDetail_20' ) end [2025-02-11 11:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451450', 'tblTempVendorCDR_20' ) start [2025-02-11 11:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451450', 'tblTempVendorCDR_20' ) end [2025-02-11 11:32:25] Production.INFO: ProcessCDR(1,14451450,1,1,2) [2025-02-11 11:32:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:32:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:32:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:32:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451450', 'tblTempUsageDetail_20' ) start [2025-02-11 11:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451450', 'tblTempUsageDetail_20' ) end [2025-02-11 11:32:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:32:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:32:30] Production.INFO: ==7679== Releasing lock... [2025-02-11 11:32:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:32:30] Production.INFO: 60.75 MB #Memory Used# [2025-02-11 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:33:05 [end_date_ymd] => 2025-02-11 11:33:05 [RateCDR] => 1 ) [2025-02-11 11:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:33:05' and `end` < '2025-02-11 11:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:33:19] Production.INFO: count ==4354 [2025-02-11 11:33:21] Production.ERROR: pbx CDR StartTime 2025-02-11 08:33:05 - End Time 2025-02-11 11:33:05 [2025-02-11 11:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451455', 'tblTempUsageDetail_20' ) start [2025-02-11 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451455', 'tblTempUsageDetail_20' ) end [2025-02-11 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451455', 'tblTempVendorCDR_20' ) start [2025-02-11 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451455', 'tblTempVendorCDR_20' ) end [2025-02-11 11:33:21] Production.INFO: ProcessCDR(1,14451455,1,1,2) [2025-02-11 11:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451455', 'tblTempUsageDetail_20' ) start [2025-02-11 11:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451455', 'tblTempUsageDetail_20' ) end [2025-02-11 11:33:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:33:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:33:27] Production.INFO: ==7765== Releasing lock... [2025-02-11 11:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:33:27] Production.INFO: 60.5 MB #Memory Used# [2025-02-11 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:34:05 [end_date_ymd] => 2025-02-11 11:34:05 [RateCDR] => 1 ) [2025-02-11 11:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:34:05' and `end` < '2025-02-11 11:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:34:22] Production.INFO: count ==4359 [2025-02-11 11:34:24] Production.ERROR: pbx CDR StartTime 2025-02-11 08:34:05 - End Time 2025-02-11 11:34:05 [2025-02-11 11:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451460', 'tblTempUsageDetail_20' ) start [2025-02-11 11:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451460', 'tblTempUsageDetail_20' ) end [2025-02-11 11:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451460', 'tblTempVendorCDR_20' ) start [2025-02-11 11:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451460', 'tblTempVendorCDR_20' ) end [2025-02-11 11:34:25] Production.INFO: ProcessCDR(1,14451460,1,1,2) [2025-02-11 11:34:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:34:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:34:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:34:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451460', 'tblTempUsageDetail_20' ) start [2025-02-11 11:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451460', 'tblTempUsageDetail_20' ) end [2025-02-11 11:34:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:34:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:34:30] Production.INFO: ==7844== Releasing lock... [2025-02-11 11:34:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:34:30] Production.INFO: 60.5 MB #Memory Used# [2025-02-11 11:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:35:06 [end_date_ymd] => 2025-02-11 11:35:06 [RateCDR] => 1 ) [2025-02-11 11:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:35:06' and `end` < '2025-02-11 11:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:35:21] Production.INFO: count ==4369 [2025-02-11 11:35:23] Production.ERROR: pbx CDR StartTime 2025-02-11 08:35:06 - End Time 2025-02-11 11:35:06 [2025-02-11 11:35:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451465', 'tblTempUsageDetail_20' ) start [2025-02-11 11:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451465', 'tblTempUsageDetail_20' ) end [2025-02-11 11:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451465', 'tblTempVendorCDR_20' ) start [2025-02-11 11:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451465', 'tblTempVendorCDR_20' ) end [2025-02-11 11:35:23] Production.INFO: ProcessCDR(1,14451465,1,1,2) [2025-02-11 11:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451465', 'tblTempUsageDetail_20' ) start [2025-02-11 11:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451465', 'tblTempUsageDetail_20' ) end [2025-02-11 11:35:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:35:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:35:28] Production.INFO: ==7922== Releasing lock... [2025-02-11 11:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:35:28] Production.INFO: 60.75 MB #Memory Used# [2025-02-11 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:36:05 [end_date_ymd] => 2025-02-11 11:36:05 [RateCDR] => 1 ) [2025-02-11 11:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:36:05' and `end` < '2025-02-11 11:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:36:26] Production.INFO: count ==4396 [2025-02-11 11:36:28] Production.ERROR: pbx CDR StartTime 2025-02-11 08:36:05 - End Time 2025-02-11 11:36:05 [2025-02-11 11:36:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451470', 'tblTempUsageDetail_20' ) start [2025-02-11 11:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451470', 'tblTempUsageDetail_20' ) end [2025-02-11 11:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451470', 'tblTempVendorCDR_20' ) start [2025-02-11 11:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451470', 'tblTempVendorCDR_20' ) end [2025-02-11 11:36:28] Production.INFO: ProcessCDR(1,14451470,1,1,2) [2025-02-11 11:36:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:36:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:36:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:36:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:36:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451470', 'tblTempUsageDetail_20' ) start [2025-02-11 11:36:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451470', 'tblTempUsageDetail_20' ) end [2025-02-11 11:36:33] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:36:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:36:33] Production.INFO: ==8002== Releasing lock... [2025-02-11 11:36:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:36:33] Production.INFO: 61 MB #Memory Used# [2025-02-11 11:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:37:05 [end_date_ymd] => 2025-02-11 11:37:05 [RateCDR] => 1 ) [2025-02-11 11:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:37:05' and `end` < '2025-02-11 11:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:37:26] Production.INFO: count ==4403 [2025-02-11 11:37:28] Production.ERROR: pbx CDR StartTime 2025-02-11 08:37:05 - End Time 2025-02-11 11:37:05 [2025-02-11 11:37:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451475', 'tblTempUsageDetail_20' ) start [2025-02-11 11:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451475', 'tblTempUsageDetail_20' ) end [2025-02-11 11:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451475', 'tblTempVendorCDR_20' ) start [2025-02-11 11:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451475', 'tblTempVendorCDR_20' ) end [2025-02-11 11:37:28] Production.INFO: ProcessCDR(1,14451475,1,1,2) [2025-02-11 11:37:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:37:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:37:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:37:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:37:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451475', 'tblTempUsageDetail_20' ) start [2025-02-11 11:37:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451475', 'tblTempUsageDetail_20' ) end [2025-02-11 11:37:33] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:37:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:37:33] Production.INFO: ==8085== Releasing lock... [2025-02-11 11:37:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:37:33] Production.INFO: 61 MB #Memory Used# [2025-02-11 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:38:05 [end_date_ymd] => 2025-02-11 11:38:05 [RateCDR] => 1 ) [2025-02-11 11:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:38:05' and `end` < '2025-02-11 11:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:38:23] Production.INFO: count ==4414 [2025-02-11 11:38:25] Production.ERROR: pbx CDR StartTime 2025-02-11 08:38:05 - End Time 2025-02-11 11:38:05 [2025-02-11 11:38:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451480', 'tblTempUsageDetail_20' ) start [2025-02-11 11:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451480', 'tblTempUsageDetail_20' ) end [2025-02-11 11:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451480', 'tblTempVendorCDR_20' ) start [2025-02-11 11:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451480', 'tblTempVendorCDR_20' ) end [2025-02-11 11:38:25] Production.INFO: ProcessCDR(1,14451480,1,1,2) [2025-02-11 11:38:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:38:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:38:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:38:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451480', 'tblTempUsageDetail_20' ) start [2025-02-11 11:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451480', 'tblTempUsageDetail_20' ) end [2025-02-11 11:38:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:38:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:38:31] Production.INFO: ==8203== Releasing lock... [2025-02-11 11:38:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:38:31] Production.INFO: 61 MB #Memory Used# [2025-02-11 11:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:39:06 [end_date_ymd] => 2025-02-11 11:39:06 [RateCDR] => 1 ) [2025-02-11 11:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:39:06' and `end` < '2025-02-11 11:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:39:23] Production.INFO: count ==4406 [2025-02-11 11:39:24] Production.ERROR: pbx CDR StartTime 2025-02-11 08:39:06 - End Time 2025-02-11 11:39:06 [2025-02-11 11:39:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451485', 'tblTempUsageDetail_20' ) start [2025-02-11 11:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451485', 'tblTempUsageDetail_20' ) end [2025-02-11 11:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451485', 'tblTempVendorCDR_20' ) start [2025-02-11 11:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451485', 'tblTempVendorCDR_20' ) end [2025-02-11 11:39:25] Production.INFO: ProcessCDR(1,14451485,1,1,2) [2025-02-11 11:39:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:39:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:39:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:39:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451485', 'tblTempUsageDetail_20' ) start [2025-02-11 11:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451485', 'tblTempUsageDetail_20' ) end [2025-02-11 11:39:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:39:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:39:30] Production.INFO: ==8290== Releasing lock... [2025-02-11 11:39:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:39:30] Production.INFO: 61 MB #Memory Used# [2025-02-11 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:40:06 [end_date_ymd] => 2025-02-11 11:40:06 [RateCDR] => 1 ) [2025-02-11 11:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:40:06' and `end` < '2025-02-11 11:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:40:27] Production.INFO: count ==4423 [2025-02-11 11:40:30] Production.ERROR: pbx CDR StartTime 2025-02-11 08:40:06 - End Time 2025-02-11 11:40:06 [2025-02-11 11:40:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451491', 'tblTempUsageDetail_20' ) start [2025-02-11 11:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451491', 'tblTempUsageDetail_20' ) end [2025-02-11 11:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451491', 'tblTempVendorCDR_20' ) start [2025-02-11 11:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451491', 'tblTempVendorCDR_20' ) end [2025-02-11 11:40:30] Production.INFO: ProcessCDR(1,14451491,1,1,2) [2025-02-11 11:40:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:40:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:40:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:40:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:40:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451491', 'tblTempUsageDetail_20' ) start [2025-02-11 11:40:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451491', 'tblTempUsageDetail_20' ) end [2025-02-11 11:40:35] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:40:35] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:40:35] Production.INFO: ==8369== Releasing lock... [2025-02-11 11:40:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:40:35] Production.INFO: 61 MB #Memory Used# [2025-02-11 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:41:05 [end_date_ymd] => 2025-02-11 11:41:05 [RateCDR] => 1 ) [2025-02-11 11:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:41:05' and `end` < '2025-02-11 11:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:41:22] Production.INFO: count ==4470 [2025-02-11 11:41:24] Production.ERROR: pbx CDR StartTime 2025-02-11 08:41:05 - End Time 2025-02-11 11:41:05 [2025-02-11 11:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451496', 'tblTempUsageDetail_20' ) start [2025-02-11 11:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451496', 'tblTempUsageDetail_20' ) end [2025-02-11 11:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451496', 'tblTempVendorCDR_20' ) start [2025-02-11 11:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451496', 'tblTempVendorCDR_20' ) end [2025-02-11 11:41:25] Production.INFO: ProcessCDR(1,14451496,1,1,2) [2025-02-11 11:41:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:41:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:41:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:41:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451496', 'tblTempUsageDetail_20' ) start [2025-02-11 11:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451496', 'tblTempUsageDetail_20' ) end [2025-02-11 11:41:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:41:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:41:30] Production.INFO: ==8452== Releasing lock... [2025-02-11 11:41:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:41:30] Production.INFO: 61.5 MB #Memory Used# [2025-02-11 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:42:05 [end_date_ymd] => 2025-02-11 11:42:05 [RateCDR] => 1 ) [2025-02-11 11:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:42:05' and `end` < '2025-02-11 11:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:42:22] Production.INFO: count ==4474 [2025-02-11 11:42:24] Production.ERROR: pbx CDR StartTime 2025-02-11 08:42:05 - End Time 2025-02-11 11:42:05 [2025-02-11 11:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451501', 'tblTempUsageDetail_20' ) start [2025-02-11 11:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451501', 'tblTempUsageDetail_20' ) end [2025-02-11 11:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451501', 'tblTempVendorCDR_20' ) start [2025-02-11 11:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451501', 'tblTempVendorCDR_20' ) end [2025-02-11 11:42:24] Production.INFO: ProcessCDR(1,14451501,1,1,2) [2025-02-11 11:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:42:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451501', 'tblTempUsageDetail_20' ) start [2025-02-11 11:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451501', 'tblTempUsageDetail_20' ) end [2025-02-11 11:42:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:42:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:42:29] Production.INFO: ==8529== Releasing lock... [2025-02-11 11:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:42:29] Production.INFO: 61.5 MB #Memory Used# [2025-02-11 11:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:43:06 [end_date_ymd] => 2025-02-11 11:43:06 [RateCDR] => 1 ) [2025-02-11 11:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:43:06' and `end` < '2025-02-11 11:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:43:24] Production.INFO: count ==4497 [2025-02-11 11:43:26] Production.ERROR: pbx CDR StartTime 2025-02-11 08:43:06 - End Time 2025-02-11 11:43:06 [2025-02-11 11:43:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451506', 'tblTempUsageDetail_20' ) start [2025-02-11 11:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451506', 'tblTempUsageDetail_20' ) end [2025-02-11 11:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451506', 'tblTempVendorCDR_20' ) start [2025-02-11 11:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451506', 'tblTempVendorCDR_20' ) end [2025-02-11 11:43:26] Production.INFO: ProcessCDR(1,14451506,1,1,2) [2025-02-11 11:43:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:43:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:43:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:43:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451506', 'tblTempUsageDetail_20' ) start [2025-02-11 11:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451506', 'tblTempUsageDetail_20' ) end [2025-02-11 11:43:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:43:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:43:31] Production.INFO: ==8611== Releasing lock... [2025-02-11 11:43:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:43:31] Production.INFO: 61.75 MB #Memory Used# [2025-02-11 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:44:05 [end_date_ymd] => 2025-02-11 11:44:05 [RateCDR] => 1 ) [2025-02-11 11:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:44:05' and `end` < '2025-02-11 11:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:44:22] Production.INFO: count ==4500 [2025-02-11 11:44:24] Production.ERROR: pbx CDR StartTime 2025-02-11 08:44:05 - End Time 2025-02-11 11:44:05 [2025-02-11 11:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451511', 'tblTempUsageDetail_20' ) start [2025-02-11 11:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451511', 'tblTempUsageDetail_20' ) end [2025-02-11 11:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451511', 'tblTempVendorCDR_20' ) start [2025-02-11 11:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451511', 'tblTempVendorCDR_20' ) end [2025-02-11 11:44:24] Production.INFO: ProcessCDR(1,14451511,1,1,2) [2025-02-11 11:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:44:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:44:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451511', 'tblTempUsageDetail_20' ) start [2025-02-11 11:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451511', 'tblTempUsageDetail_20' ) end [2025-02-11 11:44:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:44:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:44:30] Production.INFO: ==8691== Releasing lock... [2025-02-11 11:44:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:44:30] Production.INFO: 61.75 MB #Memory Used# [2025-02-11 11:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:45:06 [end_date_ymd] => 2025-02-11 11:45:06 [RateCDR] => 1 ) [2025-02-11 11:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:45:06' and `end` < '2025-02-11 11:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:45:20] Production.INFO: count ==4487 [2025-02-11 11:45:22] Production.ERROR: pbx CDR StartTime 2025-02-11 08:45:06 - End Time 2025-02-11 11:45:06 [2025-02-11 11:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451516', 'tblTempUsageDetail_20' ) start [2025-02-11 11:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451516', 'tblTempUsageDetail_20' ) end [2025-02-11 11:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451516', 'tblTempVendorCDR_20' ) start [2025-02-11 11:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451516', 'tblTempVendorCDR_20' ) end [2025-02-11 11:45:23] Production.INFO: ProcessCDR(1,14451516,1,1,2) [2025-02-11 11:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451516', 'tblTempUsageDetail_20' ) start [2025-02-11 11:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451516', 'tblTempUsageDetail_20' ) end [2025-02-11 11:45:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:45:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:45:28] Production.INFO: ==8777== Releasing lock... [2025-02-11 11:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:45:28] Production.INFO: 61.5 MB #Memory Used# [2025-02-11 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:46:05 [end_date_ymd] => 2025-02-11 11:46:05 [RateCDR] => 1 ) [2025-02-11 11:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:46:05' and `end` < '2025-02-11 11:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:46:24] Production.INFO: count ==4472 [2025-02-11 11:46:26] Production.ERROR: pbx CDR StartTime 2025-02-11 08:46:05 - End Time 2025-02-11 11:46:05 [2025-02-11 11:46:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451521', 'tblTempUsageDetail_20' ) start [2025-02-11 11:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451521', 'tblTempUsageDetail_20' ) end [2025-02-11 11:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451521', 'tblTempVendorCDR_20' ) start [2025-02-11 11:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451521', 'tblTempVendorCDR_20' ) end [2025-02-11 11:46:26] Production.INFO: ProcessCDR(1,14451521,1,1,2) [2025-02-11 11:46:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:46:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:46:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:46:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451521', 'tblTempUsageDetail_20' ) start [2025-02-11 11:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451521', 'tblTempUsageDetail_20' ) end [2025-02-11 11:46:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:46:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:46:31] Production.INFO: ==8855== Releasing lock... [2025-02-11 11:46:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:46:31] Production.INFO: 61.5 MB #Memory Used# [2025-02-11 11:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:47:06 [end_date_ymd] => 2025-02-11 11:47:06 [RateCDR] => 1 ) [2025-02-11 11:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:47:06' and `end` < '2025-02-11 11:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:47:20] Production.INFO: count ==4480 [2025-02-11 11:47:22] Production.ERROR: pbx CDR StartTime 2025-02-11 08:47:06 - End Time 2025-02-11 11:47:06 [2025-02-11 11:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451526', 'tblTempUsageDetail_20' ) start [2025-02-11 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451526', 'tblTempUsageDetail_20' ) end [2025-02-11 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451526', 'tblTempVendorCDR_20' ) start [2025-02-11 11:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451526', 'tblTempVendorCDR_20' ) end [2025-02-11 11:47:22] Production.INFO: ProcessCDR(1,14451526,1,1,2) [2025-02-11 11:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451526', 'tblTempUsageDetail_20' ) start [2025-02-11 11:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451526', 'tblTempUsageDetail_20' ) end [2025-02-11 11:47:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:47:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:47:27] Production.INFO: ==8938== Releasing lock... [2025-02-11 11:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:47:27] Production.INFO: 61.5 MB #Memory Used# [2025-02-11 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:48:05 [end_date_ymd] => 2025-02-11 11:48:05 [RateCDR] => 1 ) [2025-02-11 11:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:48:05' and `end` < '2025-02-11 11:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:48:25] Production.INFO: count ==4515 [2025-02-11 11:48:27] Production.ERROR: pbx CDR StartTime 2025-02-11 08:48:05 - End Time 2025-02-11 11:48:05 [2025-02-11 11:48:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451531', 'tblTempUsageDetail_20' ) start [2025-02-11 11:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451531', 'tblTempUsageDetail_20' ) end [2025-02-11 11:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451531', 'tblTempVendorCDR_20' ) start [2025-02-11 11:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451531', 'tblTempVendorCDR_20' ) end [2025-02-11 11:48:27] Production.INFO: ProcessCDR(1,14451531,1,1,2) [2025-02-11 11:48:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:48:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:48:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:48:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:48:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451531', 'tblTempUsageDetail_20' ) start [2025-02-11 11:48:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451531', 'tblTempUsageDetail_20' ) end [2025-02-11 11:48:33] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:48:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:48:33] Production.INFO: ==9013== Releasing lock... [2025-02-11 11:48:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:48:33] Production.INFO: 61.75 MB #Memory Used# [2025-02-11 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:49:05 [end_date_ymd] => 2025-02-11 11:49:05 [RateCDR] => 1 ) [2025-02-11 11:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:49:05' and `end` < '2025-02-11 11:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:49:21] Production.INFO: count ==4516 [2025-02-11 11:49:23] Production.ERROR: pbx CDR StartTime 2025-02-11 08:49:05 - End Time 2025-02-11 11:49:05 [2025-02-11 11:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451536', 'tblTempUsageDetail_20' ) start [2025-02-11 11:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451536', 'tblTempUsageDetail_20' ) end [2025-02-11 11:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451536', 'tblTempVendorCDR_20' ) start [2025-02-11 11:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451536', 'tblTempVendorCDR_20' ) end [2025-02-11 11:49:24] Production.INFO: ProcessCDR(1,14451536,1,1,2) [2025-02-11 11:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451536', 'tblTempUsageDetail_20' ) start [2025-02-11 11:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451536', 'tblTempUsageDetail_20' ) end [2025-02-11 11:49:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:49:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:49:29] Production.INFO: ==9098== Releasing lock... [2025-02-11 11:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:49:29] Production.INFO: 61.75 MB #Memory Used# [2025-02-11 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:50:06 [end_date_ymd] => 2025-02-11 11:50:06 [RateCDR] => 1 ) [2025-02-11 11:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:50:06' and `end` < '2025-02-11 11:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:50:20] Production.INFO: count ==4527 [2025-02-11 11:50:22] Production.ERROR: pbx CDR StartTime 2025-02-11 08:50:06 - End Time 2025-02-11 11:50:06 [2025-02-11 11:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451541', 'tblTempUsageDetail_20' ) start [2025-02-11 11:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451541', 'tblTempUsageDetail_20' ) end [2025-02-11 11:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451541', 'tblTempVendorCDR_20' ) start [2025-02-11 11:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451541', 'tblTempVendorCDR_20' ) end [2025-02-11 11:50:23] Production.INFO: ProcessCDR(1,14451541,1,1,2) [2025-02-11 11:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451541', 'tblTempUsageDetail_20' ) start [2025-02-11 11:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451541', 'tblTempUsageDetail_20' ) end [2025-02-11 11:50:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:50:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:50:28] Production.INFO: ==9180== Releasing lock... [2025-02-11 11:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:50:28] Production.INFO: 62 MB #Memory Used# [2025-02-11 11:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:51:06 [end_date_ymd] => 2025-02-11 11:51:06 [RateCDR] => 1 ) [2025-02-11 11:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:51:06' and `end` < '2025-02-11 11:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:51:27] Production.INFO: count ==4626 [2025-02-11 11:51:29] Production.ERROR: pbx CDR StartTime 2025-02-11 08:51:06 - End Time 2025-02-11 11:51:06 [2025-02-11 11:51:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451547', 'tblTempUsageDetail_20' ) start [2025-02-11 11:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451547', 'tblTempUsageDetail_20' ) end [2025-02-11 11:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451547', 'tblTempVendorCDR_20' ) start [2025-02-11 11:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451547', 'tblTempVendorCDR_20' ) end [2025-02-11 11:51:29] Production.INFO: ProcessCDR(1,14451547,1,1,2) [2025-02-11 11:51:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:51:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:51:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:51:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:51:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451547', 'tblTempUsageDetail_20' ) start [2025-02-11 11:51:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451547', 'tblTempUsageDetail_20' ) end [2025-02-11 11:51:34] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:51:34] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:51:34] Production.INFO: ==9261== Releasing lock... [2025-02-11 11:51:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:51:34] Production.INFO: 62.75 MB #Memory Used# [2025-02-11 11:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:52:06 [end_date_ymd] => 2025-02-11 11:52:06 [RateCDR] => 1 ) [2025-02-11 11:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:52:06' and `end` < '2025-02-11 11:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:52:24] Production.INFO: count ==4658 [2025-02-11 11:52:26] Production.ERROR: pbx CDR StartTime 2025-02-11 08:52:06 - End Time 2025-02-11 11:52:06 [2025-02-11 11:52:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451552', 'tblTempUsageDetail_20' ) start [2025-02-11 11:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451552', 'tblTempUsageDetail_20' ) end [2025-02-11 11:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451552', 'tblTempVendorCDR_20' ) start [2025-02-11 11:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451552', 'tblTempVendorCDR_20' ) end [2025-02-11 11:52:27] Production.INFO: ProcessCDR(1,14451552,1,1,2) [2025-02-11 11:52:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:52:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:52:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:52:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451552', 'tblTempUsageDetail_20' ) start [2025-02-11 11:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451552', 'tblTempUsageDetail_20' ) end [2025-02-11 11:52:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:52:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:52:32] Production.INFO: ==9343== Releasing lock... [2025-02-11 11:52:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:52:32] Production.INFO: 62.75 MB #Memory Used# [2025-02-11 11:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:53:06 [end_date_ymd] => 2025-02-11 11:53:06 [RateCDR] => 1 ) [2025-02-11 11:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:53:06' and `end` < '2025-02-11 11:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:53:23] Production.INFO: count ==4662 [2025-02-11 11:53:25] Production.ERROR: pbx CDR StartTime 2025-02-11 08:53:06 - End Time 2025-02-11 11:53:06 [2025-02-11 11:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451557', 'tblTempUsageDetail_20' ) start [2025-02-11 11:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451557', 'tblTempUsageDetail_20' ) end [2025-02-11 11:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451557', 'tblTempVendorCDR_20' ) start [2025-02-11 11:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451557', 'tblTempVendorCDR_20' ) end [2025-02-11 11:53:25] Production.INFO: ProcessCDR(1,14451557,1,1,2) [2025-02-11 11:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:53:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:53:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:53:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451557', 'tblTempUsageDetail_20' ) start [2025-02-11 11:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451557', 'tblTempUsageDetail_20' ) end [2025-02-11 11:53:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:53:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:53:31] Production.INFO: ==9469== Releasing lock... [2025-02-11 11:53:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:53:31] Production.INFO: 63 MB #Memory Used# [2025-02-11 11:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:54:06 [end_date_ymd] => 2025-02-11 11:54:06 [RateCDR] => 1 ) [2025-02-11 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-02-11 08:54:06' and `end` < '2025-02-11 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-02-11 11:54:22] Production.INFO: count ==4667 [2025-02-11 11:54:24] Production.ERROR: pbx CDR StartTime 2025-02-11 08:54:06 - End Time 2025-02-11 11:54:06 [2025-02-11 11:54:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451562', 'tblTempUsageDetail_20' ) start [2025-02-11 11:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451562', 'tblTempUsageDetail_20' ) end [2025-02-11 11:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451562', 'tblTempVendorCDR_20' ) start [2025-02-11 11:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451562', 'tblTempVendorCDR_20' ) end [2025-02-11 11:54:25] Production.INFO: ProcessCDR(1,14451562,1,1,2) [2025-02-11 11:54:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:54:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:54:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:54:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451562', 'tblTempUsageDetail_20' ) start [2025-02-11 11:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451562', 'tblTempUsageDetail_20' ) end [2025-02-11 11:54:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:54:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:54:30] Production.INFO: ==9547== Releasing lock... [2025-02-11 11:54:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:54:30] Production.INFO: 63 MB #Memory Used# [2025-02-11 11:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:55:06 [end_date_ymd] => 2025-02-11 11:55:06 [RateCDR] => 1 ) [2025-02-11 11:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:55:06' and `end` < '2025-02-11 11:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:55:28] Production.INFO: count ==4674 [2025-02-11 11:55:31] Production.ERROR: pbx CDR StartTime 2025-02-11 08:55:06 - End Time 2025-02-11 11:55:06 [2025-02-11 11:55:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:55:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451567', 'tblTempUsageDetail_20' ) start [2025-02-11 11:55:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451567', 'tblTempUsageDetail_20' ) end [2025-02-11 11:55:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451567', 'tblTempVendorCDR_20' ) start [2025-02-11 11:55:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451567', 'tblTempVendorCDR_20' ) end [2025-02-11 11:55:31] Production.INFO: ProcessCDR(1,14451567,1,1,2) [2025-02-11 11:55:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:55:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:55:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:55:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:55:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451567', 'tblTempUsageDetail_20' ) start [2025-02-11 11:55:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451567', 'tblTempUsageDetail_20' ) end [2025-02-11 11:55:36] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:55:36] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:55:36] Production.INFO: ==9623== Releasing lock... [2025-02-11 11:55:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:55:36] Production.INFO: 63 MB #Memory Used# [2025-02-11 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:56:05 [end_date_ymd] => 2025-02-11 11:56:05 [RateCDR] => 1 ) [2025-02-11 11:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:56:05' and `end` < '2025-02-11 11:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:56:25] Production.INFO: count ==4710 [2025-02-11 11:56:27] Production.ERROR: pbx CDR StartTime 2025-02-11 08:56:05 - End Time 2025-02-11 11:56:05 [2025-02-11 11:56:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451568', 'tblTempUsageDetail_20' ) start [2025-02-11 11:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451568', 'tblTempUsageDetail_20' ) end [2025-02-11 11:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451568', 'tblTempVendorCDR_20' ) start [2025-02-11 11:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451568', 'tblTempVendorCDR_20' ) end [2025-02-11 11:56:27] Production.INFO: ProcessCDR(1,14451568,1,1,2) [2025-02-11 11:56:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:56:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:56:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:56:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451568', 'tblTempUsageDetail_20' ) start [2025-02-11 11:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451568', 'tblTempUsageDetail_20' ) end [2025-02-11 11:56:33] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:56:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:56:33] Production.INFO: ==9703== Releasing lock... [2025-02-11 11:56:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:56:33] Production.INFO: 63.25 MB #Memory Used# [2025-02-11 11:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:57:06 [end_date_ymd] => 2025-02-11 11:57:06 [RateCDR] => 1 ) [2025-02-11 11:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:57:06' and `end` < '2025-02-11 11:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:57:24] Production.INFO: count ==4716 [2025-02-11 11:57:26] Production.ERROR: pbx CDR StartTime 2025-02-11 08:57:06 - End Time 2025-02-11 11:57:06 [2025-02-11 11:57:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451577', 'tblTempUsageDetail_20' ) start [2025-02-11 11:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451577', 'tblTempUsageDetail_20' ) end [2025-02-11 11:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451577', 'tblTempVendorCDR_20' ) start [2025-02-11 11:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451577', 'tblTempVendorCDR_20' ) end [2025-02-11 11:57:27] Production.INFO: ProcessCDR(1,14451577,1,1,2) [2025-02-11 11:57:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:57:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:57:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:57:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:57:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451577', 'tblTempUsageDetail_20' ) start [2025-02-11 11:57:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451577', 'tblTempUsageDetail_20' ) end [2025-02-11 11:57:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:57:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:57:32] Production.INFO: ==9784== Releasing lock... [2025-02-11 11:57:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:57:32] Production.INFO: 63.25 MB #Memory Used# [2025-02-11 11:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:58:06 [end_date_ymd] => 2025-02-11 11:58:06 [RateCDR] => 1 ) [2025-02-11 11:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:58:06' and `end` < '2025-02-11 11:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:58:27] Production.INFO: count ==4735 [2025-02-11 11:58:29] Production.ERROR: pbx CDR StartTime 2025-02-11 08:58:06 - End Time 2025-02-11 11:58:06 [2025-02-11 11:58:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451582', 'tblTempUsageDetail_20' ) start [2025-02-11 11:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451582', 'tblTempUsageDetail_20' ) end [2025-02-11 11:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451582', 'tblTempVendorCDR_20' ) start [2025-02-11 11:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451582', 'tblTempVendorCDR_20' ) end [2025-02-11 11:58:29] Production.INFO: ProcessCDR(1,14451582,1,1,2) [2025-02-11 11:58:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:58:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:58:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:58:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:58:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451582', 'tblTempUsageDetail_20' ) start [2025-02-11 11:58:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451582', 'tblTempUsageDetail_20' ) end [2025-02-11 11:58:35] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:58:35] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:58:35] Production.INFO: ==9860== Releasing lock... [2025-02-11 11:58:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:58:35] Production.INFO: 63.5 MB #Memory Used# [2025-02-11 11:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 08:59:06 [end_date_ymd] => 2025-02-11 11:59:06 [RateCDR] => 1 ) [2025-02-11 11:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 08:59:06' and `end` < '2025-02-11 11:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 11:59:23] Production.INFO: count ==4741 [2025-02-11 11:59:25] Production.ERROR: pbx CDR StartTime 2025-02-11 08:59:06 - End Time 2025-02-11 11:59:06 [2025-02-11 11:59:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 11:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451587', 'tblTempUsageDetail_20' ) start [2025-02-11 11:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451587', 'tblTempUsageDetail_20' ) end [2025-02-11 11:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451587', 'tblTempVendorCDR_20' ) start [2025-02-11 11:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451587', 'tblTempVendorCDR_20' ) end [2025-02-11 11:59:25] Production.INFO: ProcessCDR(1,14451587,1,1,2) [2025-02-11 11:59:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:59:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 11:59:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:59:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 11:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451587', 'tblTempUsageDetail_20' ) start [2025-02-11 11:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451587', 'tblTempUsageDetail_20' ) end [2025-02-11 11:59:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 11:59:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 11:59:31] Production.INFO: ==9936== Releasing lock... [2025-02-11 11:59:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 11:59:31] Production.INFO: 63.5 MB #Memory Used# [2025-02-11 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:00:06 [end_date_ymd] => 2025-02-11 12:00:06 [RateCDR] => 1 ) [2025-02-11 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:00:06' and `end` < '2025-02-11 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:00:20] Production.INFO: count ==4743 [2025-02-11 12:00:23] Production.ERROR: pbx CDR StartTime 2025-02-11 09:00:06 - End Time 2025-02-11 12:00:06 [2025-02-11 12:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451593', 'tblTempUsageDetail_20' ) start [2025-02-11 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451593', 'tblTempUsageDetail_20' ) end [2025-02-11 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451593', 'tblTempVendorCDR_20' ) start [2025-02-11 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451593', 'tblTempVendorCDR_20' ) end [2025-02-11 12:00:23] Production.INFO: ProcessCDR(1,14451593,1,1,2) [2025-02-11 12:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451593', 'tblTempUsageDetail_20' ) start [2025-02-11 12:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451593', 'tblTempUsageDetail_20' ) end [2025-02-11 12:00:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:00:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:00:28] Production.INFO: ==10038== Releasing lock... [2025-02-11 12:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:00:28] Production.INFO: 63.5 MB #Memory Used# [2025-02-11 12:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:01:06 [end_date_ymd] => 2025-02-11 12:01:06 [RateCDR] => 1 ) [2025-02-11 12:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:01:06' and `end` < '2025-02-11 12:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:01:26] Production.INFO: count ==4832 [2025-02-11 12:01:28] Production.ERROR: pbx CDR StartTime 2025-02-11 09:01:06 - End Time 2025-02-11 12:01:06 [2025-02-11 12:01:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451598', 'tblTempUsageDetail_20' ) start [2025-02-11 12:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451598', 'tblTempUsageDetail_20' ) end [2025-02-11 12:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451598', 'tblTempVendorCDR_20' ) start [2025-02-11 12:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451598', 'tblTempVendorCDR_20' ) end [2025-02-11 12:01:28] Production.INFO: ProcessCDR(1,14451598,1,1,2) [2025-02-11 12:01:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:01:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:01:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:01:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451598', 'tblTempUsageDetail_20' ) start [2025-02-11 12:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451598', 'tblTempUsageDetail_20' ) end [2025-02-11 12:01:33] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:01:34] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:01:34] Production.INFO: ==10150== Releasing lock... [2025-02-11 12:01:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:01:34] Production.INFO: 64.25 MB #Memory Used# [2025-02-11 12:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:02:06 [end_date_ymd] => 2025-02-11 12:02:06 [RateCDR] => 1 ) [2025-02-11 12:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:02:06' and `end` < '2025-02-11 12:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:02:27] Production.INFO: count ==4833 [2025-02-11 12:02:29] Production.ERROR: pbx CDR StartTime 2025-02-11 09:02:06 - End Time 2025-02-11 12:02:06 [2025-02-11 12:02:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451603', 'tblTempUsageDetail_20' ) start [2025-02-11 12:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451603', 'tblTempUsageDetail_20' ) end [2025-02-11 12:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451603', 'tblTempVendorCDR_20' ) start [2025-02-11 12:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451603', 'tblTempVendorCDR_20' ) end [2025-02-11 12:02:29] Production.INFO: ProcessCDR(1,14451603,1,1,2) [2025-02-11 12:02:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:02:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:02:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:02:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:02:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451603', 'tblTempUsageDetail_20' ) start [2025-02-11 12:02:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451603', 'tblTempUsageDetail_20' ) end [2025-02-11 12:02:35] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:02:35] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:02:35] Production.INFO: ==10244== Releasing lock... [2025-02-11 12:02:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:02:35] Production.INFO: 64.25 MB #Memory Used# [2025-02-11 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:03:05 [end_date_ymd] => 2025-02-11 12:03:05 [RateCDR] => 1 ) [2025-02-11 12:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:03:05' and `end` < '2025-02-11 12:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:03:22] Production.INFO: count ==4850 [2025-02-11 12:03:24] Production.ERROR: pbx CDR StartTime 2025-02-11 09:03:05 - End Time 2025-02-11 12:03:05 [2025-02-11 12:03:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451608', 'tblTempUsageDetail_20' ) start [2025-02-11 12:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451608', 'tblTempUsageDetail_20' ) end [2025-02-11 12:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451608', 'tblTempVendorCDR_20' ) start [2025-02-11 12:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451608', 'tblTempVendorCDR_20' ) end [2025-02-11 12:03:24] Production.INFO: ProcessCDR(1,14451608,1,1,2) [2025-02-11 12:03:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:03:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451608', 'tblTempUsageDetail_20' ) start [2025-02-11 12:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451608', 'tblTempUsageDetail_20' ) end [2025-02-11 12:03:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:03:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:03:30] Production.INFO: ==10318== Releasing lock... [2025-02-11 12:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:03:30] Production.INFO: 64.25 MB #Memory Used# [2025-02-11 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:04:05 [end_date_ymd] => 2025-02-11 12:04:05 [RateCDR] => 1 ) [2025-02-11 12:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:04:05' and `end` < '2025-02-11 12:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:04:27] Production.INFO: count ==4848 [2025-02-11 12:04:29] Production.ERROR: pbx CDR StartTime 2025-02-11 09:04:05 - End Time 2025-02-11 12:04:05 [2025-02-11 12:04:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451613', 'tblTempUsageDetail_20' ) start [2025-02-11 12:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451613', 'tblTempUsageDetail_20' ) end [2025-02-11 12:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451613', 'tblTempVendorCDR_20' ) start [2025-02-11 12:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451613', 'tblTempVendorCDR_20' ) end [2025-02-11 12:04:29] Production.INFO: ProcessCDR(1,14451613,1,1,2) [2025-02-11 12:04:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:04:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:04:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:04:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:04:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451613', 'tblTempUsageDetail_20' ) start [2025-02-11 12:04:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451613', 'tblTempUsageDetail_20' ) end [2025-02-11 12:04:35] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:04:35] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:04:35] Production.INFO: ==10396== Releasing lock... [2025-02-11 12:04:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:04:35] Production.INFO: 64.25 MB #Memory Used# [2025-02-11 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:05:05 [end_date_ymd] => 2025-02-11 12:05:05 [RateCDR] => 1 ) [2025-02-11 12:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:05:05' and `end` < '2025-02-11 12:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:05:25] Production.INFO: count ==4855 [2025-02-11 12:05:27] Production.ERROR: pbx CDR StartTime 2025-02-11 09:05:05 - End Time 2025-02-11 12:05:05 [2025-02-11 12:05:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451618', 'tblTempUsageDetail_20' ) start [2025-02-11 12:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451618', 'tblTempUsageDetail_20' ) end [2025-02-11 12:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451618', 'tblTempVendorCDR_20' ) start [2025-02-11 12:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451618', 'tblTempVendorCDR_20' ) end [2025-02-11 12:05:27] Production.INFO: ProcessCDR(1,14451618,1,1,2) [2025-02-11 12:05:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:05:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:05:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:05:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451618', 'tblTempUsageDetail_20' ) start [2025-02-11 12:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451618', 'tblTempUsageDetail_20' ) end [2025-02-11 12:05:33] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:05:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:05:33] Production.INFO: ==10470== Releasing lock... [2025-02-11 12:05:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:05:33] Production.INFO: 64.25 MB #Memory Used# [2025-02-11 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:06:05 [end_date_ymd] => 2025-02-11 12:06:05 [RateCDR] => 1 ) [2025-02-11 12:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:06:05' and `end` < '2025-02-11 12:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:06:35] Production.INFO: count ==4901 [2025-02-11 12:06:37] Production.ERROR: pbx CDR StartTime 2025-02-11 09:06:05 - End Time 2025-02-11 12:06:05 [2025-02-11 12:06:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:06:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451623', 'tblTempUsageDetail_20' ) start [2025-02-11 12:06:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451623', 'tblTempUsageDetail_20' ) end [2025-02-11 12:06:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451623', 'tblTempVendorCDR_20' ) start [2025-02-11 12:06:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451623', 'tblTempVendorCDR_20' ) end [2025-02-11 12:06:38] Production.INFO: ProcessCDR(1,14451623,1,1,2) [2025-02-11 12:06:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:06:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:06:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:06:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:06:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451623', 'tblTempUsageDetail_20' ) start [2025-02-11 12:06:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451623', 'tblTempUsageDetail_20' ) end [2025-02-11 12:06:43] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:06:44] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:06:44] Production.INFO: ==10546== Releasing lock... [2025-02-11 12:06:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:06:44] Production.INFO: 64.75 MB #Memory Used# [2025-02-11 12:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:07:04 [end_date_ymd] => 2025-02-11 12:07:04 [RateCDR] => 1 ) [2025-02-11 12:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:07:04' and `end` < '2025-02-11 12:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:07:28] Production.INFO: count ==4949 [2025-02-11 12:07:30] Production.ERROR: pbx CDR StartTime 2025-02-11 09:07:04 - End Time 2025-02-11 12:07:04 [2025-02-11 12:07:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451628', 'tblTempUsageDetail_20' ) start [2025-02-11 12:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451628', 'tblTempUsageDetail_20' ) end [2025-02-11 12:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451628', 'tblTempVendorCDR_20' ) start [2025-02-11 12:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451628', 'tblTempVendorCDR_20' ) end [2025-02-11 12:07:30] Production.INFO: ProcessCDR(1,14451628,1,1,2) [2025-02-11 12:07:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:07:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:07:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:07:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:07:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451628', 'tblTempUsageDetail_20' ) start [2025-02-11 12:07:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451628', 'tblTempUsageDetail_20' ) end [2025-02-11 12:07:35] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:07:36] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:07:36] Production.INFO: ==10622== Releasing lock... [2025-02-11 12:07:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:07:36] Production.INFO: 65 MB #Memory Used# [2025-02-11 12:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:08:06 [end_date_ymd] => 2025-02-11 12:08:06 [RateCDR] => 1 ) [2025-02-11 12:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:08:06' and `end` < '2025-02-11 12:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:08:33] Production.INFO: count ==4979 [2025-02-11 12:08:35] Production.ERROR: pbx CDR StartTime 2025-02-11 09:08:06 - End Time 2025-02-11 12:08:06 [2025-02-11 12:08:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:08:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451633', 'tblTempUsageDetail_20' ) start [2025-02-11 12:08:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451633', 'tblTempUsageDetail_20' ) end [2025-02-11 12:08:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451633', 'tblTempVendorCDR_20' ) start [2025-02-11 12:08:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451633', 'tblTempVendorCDR_20' ) end [2025-02-11 12:08:35] Production.INFO: ProcessCDR(1,14451633,1,1,2) [2025-02-11 12:08:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:08:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:08:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:08:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:08:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451633', 'tblTempUsageDetail_20' ) start [2025-02-11 12:08:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451633', 'tblTempUsageDetail_20' ) end [2025-02-11 12:08:41] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:08:41] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:08:41] Production.INFO: ==10702== Releasing lock... [2025-02-11 12:08:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:08:41] Production.INFO: 65.25 MB #Memory Used# [2025-02-11 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:09:05 [end_date_ymd] => 2025-02-11 12:09:05 [RateCDR] => 1 ) [2025-02-11 12:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:09:05' and `end` < '2025-02-11 12:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:09:24] Production.INFO: count ==4979 [2025-02-11 12:09:26] Production.ERROR: pbx CDR StartTime 2025-02-11 09:09:05 - End Time 2025-02-11 12:09:05 [2025-02-11 12:09:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451638', 'tblTempUsageDetail_20' ) start [2025-02-11 12:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451638', 'tblTempUsageDetail_20' ) end [2025-02-11 12:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451638', 'tblTempVendorCDR_20' ) start [2025-02-11 12:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451638', 'tblTempVendorCDR_20' ) end [2025-02-11 12:09:26] Production.INFO: ProcessCDR(1,14451638,1,1,2) [2025-02-11 12:09:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:09:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:09:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:09:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451638', 'tblTempUsageDetail_20' ) start [2025-02-11 12:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451638', 'tblTempUsageDetail_20' ) end [2025-02-11 12:09:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:09:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:09:31] Production.INFO: ==10814== Releasing lock... [2025-02-11 12:09:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:09:31] Production.INFO: 65.25 MB #Memory Used# [2025-02-11 12:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:10:07 [end_date_ymd] => 2025-02-11 12:10:07 [RateCDR] => 1 ) [2025-02-11 12:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:10:07' and `end` < '2025-02-11 12:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:10:22] Production.INFO: count ==5046 [2025-02-11 12:10:24] Production.ERROR: pbx CDR StartTime 2025-02-11 09:10:07 - End Time 2025-02-11 12:10:07 [2025-02-11 12:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451644', 'tblTempUsageDetail_20' ) start [2025-02-11 12:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451644', 'tblTempUsageDetail_20' ) end [2025-02-11 12:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451644', 'tblTempVendorCDR_20' ) start [2025-02-11 12:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451644', 'tblTempVendorCDR_20' ) end [2025-02-11 12:10:24] Production.INFO: ProcessCDR(1,14451644,1,1,2) [2025-02-11 12:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:10:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:10:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451644', 'tblTempUsageDetail_20' ) start [2025-02-11 12:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451644', 'tblTempUsageDetail_20' ) end [2025-02-11 12:10:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:10:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:10:30] Production.INFO: ==10893== Releasing lock... [2025-02-11 12:10:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:10:30] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:11:05 [end_date_ymd] => 2025-02-11 12:11:05 [RateCDR] => 1 ) [2025-02-11 12:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:11:05' and `end` < '2025-02-11 12:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:11:19] Production.INFO: count ==5052 [2025-02-11 12:11:22] Production.ERROR: pbx CDR StartTime 2025-02-11 09:11:05 - End Time 2025-02-11 12:11:05 [2025-02-11 12:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451649', 'tblTempUsageDetail_20' ) start [2025-02-11 12:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451649', 'tblTempUsageDetail_20' ) end [2025-02-11 12:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451649', 'tblTempVendorCDR_20' ) start [2025-02-11 12:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451649', 'tblTempVendorCDR_20' ) end [2025-02-11 12:11:22] Production.INFO: ProcessCDR(1,14451649,1,1,2) [2025-02-11 12:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451649', 'tblTempUsageDetail_20' ) start [2025-02-11 12:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451649', 'tblTempUsageDetail_20' ) end [2025-02-11 12:11:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:11:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:11:27] Production.INFO: ==10967== Releasing lock... [2025-02-11 12:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:11:27] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:12:05 [end_date_ymd] => 2025-02-11 12:12:05 [RateCDR] => 1 ) [2025-02-11 12:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:12:05' and `end` < '2025-02-11 12:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:12:20] Production.INFO: count ==5079 [2025-02-11 12:12:23] Production.ERROR: pbx CDR StartTime 2025-02-11 09:12:05 - End Time 2025-02-11 12:12:05 [2025-02-11 12:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451654', 'tblTempUsageDetail_20' ) start [2025-02-11 12:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451654', 'tblTempUsageDetail_20' ) end [2025-02-11 12:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451654', 'tblTempVendorCDR_20' ) start [2025-02-11 12:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451654', 'tblTempVendorCDR_20' ) end [2025-02-11 12:12:23] Production.INFO: ProcessCDR(1,14451654,1,1,2) [2025-02-11 12:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451654', 'tblTempUsageDetail_20' ) start [2025-02-11 12:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451654', 'tblTempUsageDetail_20' ) end [2025-02-11 12:12:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:12:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:12:29] Production.INFO: ==11040== Releasing lock... [2025-02-11 12:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:12:29] Production.INFO: 66 MB #Memory Used# [2025-02-11 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:13:05 [end_date_ymd] => 2025-02-11 12:13:05 [RateCDR] => 1 ) [2025-02-11 12:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:13:05' and `end` < '2025-02-11 12:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:13:22] Production.INFO: count ==5097 [2025-02-11 12:13:25] Production.ERROR: pbx CDR StartTime 2025-02-11 09:13:05 - End Time 2025-02-11 12:13:05 [2025-02-11 12:13:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451659', 'tblTempUsageDetail_20' ) start [2025-02-11 12:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451659', 'tblTempUsageDetail_20' ) end [2025-02-11 12:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451659', 'tblTempVendorCDR_20' ) start [2025-02-11 12:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451659', 'tblTempVendorCDR_20' ) end [2025-02-11 12:13:25] Production.INFO: ProcessCDR(1,14451659,1,1,2) [2025-02-11 12:13:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:13:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:13:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:13:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451659', 'tblTempUsageDetail_20' ) start [2025-02-11 12:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451659', 'tblTempUsageDetail_20' ) end [2025-02-11 12:13:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:13:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:13:30] Production.INFO: ==11112== Releasing lock... [2025-02-11 12:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:13:30] Production.INFO: 66.25 MB #Memory Used# [2025-02-11 12:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:14:06 [end_date_ymd] => 2025-02-11 12:14:06 [RateCDR] => 1 ) [2025-02-11 12:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:14:06' and `end` < '2025-02-11 12:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:14:20] Production.INFO: count ==5103 [2025-02-11 12:14:23] Production.ERROR: pbx CDR StartTime 2025-02-11 09:14:06 - End Time 2025-02-11 12:14:06 [2025-02-11 12:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451664', 'tblTempUsageDetail_20' ) start [2025-02-11 12:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451664', 'tblTempUsageDetail_20' ) end [2025-02-11 12:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451664', 'tblTempVendorCDR_20' ) start [2025-02-11 12:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451664', 'tblTempVendorCDR_20' ) end [2025-02-11 12:14:23] Production.INFO: ProcessCDR(1,14451664,1,1,2) [2025-02-11 12:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451664', 'tblTempUsageDetail_20' ) start [2025-02-11 12:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451664', 'tblTempUsageDetail_20' ) end [2025-02-11 12:14:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:14:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:14:28] Production.INFO: ==11185== Releasing lock... [2025-02-11 12:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:14:28] Production.INFO: 66.25 MB #Memory Used# [2025-02-11 12:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:15:06 [end_date_ymd] => 2025-02-11 12:15:06 [RateCDR] => 1 ) [2025-02-11 12:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:15:06' and `end` < '2025-02-11 12:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:15:20] Production.INFO: count ==5123 [2025-02-11 12:15:23] Production.ERROR: pbx CDR StartTime 2025-02-11 09:15:06 - End Time 2025-02-11 12:15:06 [2025-02-11 12:15:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451669', 'tblTempUsageDetail_20' ) start [2025-02-11 12:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451669', 'tblTempUsageDetail_20' ) end [2025-02-11 12:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451669', 'tblTempVendorCDR_20' ) start [2025-02-11 12:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451669', 'tblTempVendorCDR_20' ) end [2025-02-11 12:15:23] Production.INFO: ProcessCDR(1,14451669,1,1,2) [2025-02-11 12:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:15:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:15:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451669', 'tblTempUsageDetail_20' ) start [2025-02-11 12:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451669', 'tblTempUsageDetail_20' ) end [2025-02-11 12:15:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:15:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:15:28] Production.INFO: ==11258== Releasing lock... [2025-02-11 12:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:15:28] Production.INFO: 66.25 MB #Memory Used# [2025-02-11 12:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:16:06 [end_date_ymd] => 2025-02-11 12:16:06 [RateCDR] => 1 ) [2025-02-11 12:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:16:06' and `end` < '2025-02-11 12:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:16:28] Production.INFO: count ==5134 [2025-02-11 12:16:31] Production.ERROR: pbx CDR StartTime 2025-02-11 09:16:06 - End Time 2025-02-11 12:16:06 [2025-02-11 12:16:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:16:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451674', 'tblTempUsageDetail_20' ) start [2025-02-11 12:16:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451674', 'tblTempUsageDetail_20' ) end [2025-02-11 12:16:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451674', 'tblTempVendorCDR_20' ) start [2025-02-11 12:16:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451674', 'tblTempVendorCDR_20' ) end [2025-02-11 12:16:31] Production.INFO: ProcessCDR(1,14451674,1,1,2) [2025-02-11 12:16:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:16:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:16:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:16:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:16:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451674', 'tblTempUsageDetail_20' ) start [2025-02-11 12:16:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451674', 'tblTempUsageDetail_20' ) end [2025-02-11 12:16:36] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:16:36] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:16:36] Production.INFO: ==11330== Releasing lock... [2025-02-11 12:16:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:16:36] Production.INFO: 66.5 MB #Memory Used# [2025-02-11 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:17:05 [end_date_ymd] => 2025-02-11 12:17:05 [RateCDR] => 1 ) [2025-02-11 12:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:17:05' and `end` < '2025-02-11 12:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:17:30] Production.INFO: count ==5134 [2025-02-11 12:17:32] Production.ERROR: pbx CDR StartTime 2025-02-11 09:17:05 - End Time 2025-02-11 12:17:05 [2025-02-11 12:17:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:17:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451679', 'tblTempUsageDetail_20' ) start [2025-02-11 12:17:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451679', 'tblTempUsageDetail_20' ) end [2025-02-11 12:17:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451679', 'tblTempVendorCDR_20' ) start [2025-02-11 12:17:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451679', 'tblTempVendorCDR_20' ) end [2025-02-11 12:17:32] Production.INFO: ProcessCDR(1,14451679,1,1,2) [2025-02-11 12:17:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:17:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:17:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:17:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:17:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451679', 'tblTempUsageDetail_20' ) start [2025-02-11 12:17:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451679', 'tblTempUsageDetail_20' ) end [2025-02-11 12:17:38] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:17:38] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:17:38] Production.INFO: ==11402== Releasing lock... [2025-02-11 12:17:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:17:38] Production.INFO: 66.5 MB #Memory Used# [2025-02-11 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:18:05 [end_date_ymd] => 2025-02-11 12:18:05 [RateCDR] => 1 ) [2025-02-11 12:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:18:05' and `end` < '2025-02-11 12:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:18:26] Production.INFO: count ==5111 [2025-02-11 12:18:29] Production.ERROR: pbx CDR StartTime 2025-02-11 09:18:05 - End Time 2025-02-11 12:18:05 [2025-02-11 12:18:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451684', 'tblTempUsageDetail_20' ) start [2025-02-11 12:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451684', 'tblTempUsageDetail_20' ) end [2025-02-11 12:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451684', 'tblTempVendorCDR_20' ) start [2025-02-11 12:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451684', 'tblTempVendorCDR_20' ) end [2025-02-11 12:18:29] Production.INFO: ProcessCDR(1,14451684,1,1,2) [2025-02-11 12:18:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:18:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:18:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:18:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:18:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451684', 'tblTempUsageDetail_20' ) start [2025-02-11 12:18:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451684', 'tblTempUsageDetail_20' ) end [2025-02-11 12:18:34] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:18:34] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:18:34] Production.INFO: ==11485== Releasing lock... [2025-02-11 12:18:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:18:34] Production.INFO: 66.25 MB #Memory Used# [2025-02-11 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:19:05 [end_date_ymd] => 2025-02-11 12:19:05 [RateCDR] => 1 ) [2025-02-11 12:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:19:05' and `end` < '2025-02-11 12:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:19:24] Production.INFO: count ==5136 [2025-02-11 12:19:26] Production.ERROR: pbx CDR StartTime 2025-02-11 09:19:05 - End Time 2025-02-11 12:19:05 [2025-02-11 12:19:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451689', 'tblTempUsageDetail_20' ) start [2025-02-11 12:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451689', 'tblTempUsageDetail_20' ) end [2025-02-11 12:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451689', 'tblTempVendorCDR_20' ) start [2025-02-11 12:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451689', 'tblTempVendorCDR_20' ) end [2025-02-11 12:19:26] Production.INFO: ProcessCDR(1,14451689,1,1,2) [2025-02-11 12:19:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:19:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:19:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:19:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451689', 'tblTempUsageDetail_20' ) start [2025-02-11 12:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451689', 'tblTempUsageDetail_20' ) end [2025-02-11 12:19:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:19:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:19:32] Production.INFO: ==11558== Releasing lock... [2025-02-11 12:19:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:19:32] Production.INFO: 66.5 MB #Memory Used# [2025-02-11 12:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:20:06 [end_date_ymd] => 2025-02-11 12:20:06 [RateCDR] => 1 ) [2025-02-11 12:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:20:06' and `end` < '2025-02-11 12:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:20:29] Production.INFO: count ==5128 [2025-02-11 12:20:32] Production.ERROR: pbx CDR StartTime 2025-02-11 09:20:06 - End Time 2025-02-11 12:20:06 [2025-02-11 12:20:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451695', 'tblTempUsageDetail_20' ) start [2025-02-11 12:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451695', 'tblTempUsageDetail_20' ) end [2025-02-11 12:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451695', 'tblTempVendorCDR_20' ) start [2025-02-11 12:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451695', 'tblTempVendorCDR_20' ) end [2025-02-11 12:20:32] Production.INFO: ProcessCDR(1,14451695,1,1,2) [2025-02-11 12:20:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:20:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:20:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:20:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:20:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451695', 'tblTempUsageDetail_20' ) start [2025-02-11 12:20:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451695', 'tblTempUsageDetail_20' ) end [2025-02-11 12:20:37] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:20:37] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:20:37] Production.INFO: ==11632== Releasing lock... [2025-02-11 12:20:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:20:37] Production.INFO: 66.5 MB #Memory Used# [2025-02-11 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:21:05 [end_date_ymd] => 2025-02-11 12:21:05 [RateCDR] => 1 ) [2025-02-11 12:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:21:05' and `end` < '2025-02-11 12:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:21:32] Production.INFO: count ==5126 [2025-02-11 12:21:34] Production.ERROR: pbx CDR StartTime 2025-02-11 09:21:05 - End Time 2025-02-11 12:21:05 [2025-02-11 12:21:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:21:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451700', 'tblTempUsageDetail_20' ) start [2025-02-11 12:21:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451700', 'tblTempUsageDetail_20' ) end [2025-02-11 12:21:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451700', 'tblTempVendorCDR_20' ) start [2025-02-11 12:21:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451700', 'tblTempVendorCDR_20' ) end [2025-02-11 12:21:34] Production.INFO: ProcessCDR(1,14451700,1,1,2) [2025-02-11 12:21:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:21:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:21:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:21:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:21:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451700', 'tblTempUsageDetail_20' ) start [2025-02-11 12:21:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451700', 'tblTempUsageDetail_20' ) end [2025-02-11 12:21:39] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:21:39] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:21:39] Production.INFO: ==11706== Releasing lock... [2025-02-11 12:21:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:21:39] Production.INFO: 66.5 MB #Memory Used# [2025-02-11 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:22:05 [end_date_ymd] => 2025-02-11 12:22:05 [RateCDR] => 1 ) [2025-02-11 12:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:22:05' and `end` < '2025-02-11 12:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:22:26] Production.INFO: count ==5157 [2025-02-11 12:22:29] Production.ERROR: pbx CDR StartTime 2025-02-11 09:22:05 - End Time 2025-02-11 12:22:05 [2025-02-11 12:22:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451705', 'tblTempUsageDetail_20' ) start [2025-02-11 12:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451705', 'tblTempUsageDetail_20' ) end [2025-02-11 12:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451705', 'tblTempVendorCDR_20' ) start [2025-02-11 12:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451705', 'tblTempVendorCDR_20' ) end [2025-02-11 12:22:29] Production.INFO: ProcessCDR(1,14451705,1,1,2) [2025-02-11 12:22:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:22:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:22:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:22:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:22:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451705', 'tblTempUsageDetail_20' ) start [2025-02-11 12:22:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451705', 'tblTempUsageDetail_20' ) end [2025-02-11 12:22:34] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:22:34] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:22:34] Production.INFO: ==11793== Releasing lock... [2025-02-11 12:22:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:22:34] Production.INFO: 66.5 MB #Memory Used# [2025-02-11 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:23:05 [end_date_ymd] => 2025-02-11 12:23:05 [RateCDR] => 1 ) [2025-02-11 12:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:23:05' and `end` < '2025-02-11 12:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:23:26] Production.INFO: count ==5143 [2025-02-11 12:23:28] Production.ERROR: pbx CDR StartTime 2025-02-11 09:23:05 - End Time 2025-02-11 12:23:05 [2025-02-11 12:23:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451710', 'tblTempUsageDetail_20' ) start [2025-02-11 12:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451710', 'tblTempUsageDetail_20' ) end [2025-02-11 12:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451710', 'tblTempVendorCDR_20' ) start [2025-02-11 12:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451710', 'tblTempVendorCDR_20' ) end [2025-02-11 12:23:28] Production.INFO: ProcessCDR(1,14451710,1,1,2) [2025-02-11 12:23:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:23:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:23:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:23:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:23:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451710', 'tblTempUsageDetail_20' ) start [2025-02-11 12:23:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451710', 'tblTempUsageDetail_20' ) end [2025-02-11 12:23:34] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:23:34] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:23:34] Production.INFO: ==11887== Releasing lock... [2025-02-11 12:23:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:23:34] Production.INFO: 66.5 MB #Memory Used# [2025-02-11 12:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:24:06 [end_date_ymd] => 2025-02-11 12:24:06 [RateCDR] => 1 ) [2025-02-11 12:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:24:06' and `end` < '2025-02-11 12:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:24:24] Production.INFO: count ==5134 [2025-02-11 12:24:27] Production.ERROR: pbx CDR StartTime 2025-02-11 09:24:06 - End Time 2025-02-11 12:24:06 [2025-02-11 12:24:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451715', 'tblTempUsageDetail_20' ) start [2025-02-11 12:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451715', 'tblTempUsageDetail_20' ) end [2025-02-11 12:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451715', 'tblTempVendorCDR_20' ) start [2025-02-11 12:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451715', 'tblTempVendorCDR_20' ) end [2025-02-11 12:24:27] Production.INFO: ProcessCDR(1,14451715,1,1,2) [2025-02-11 12:24:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:24:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:24:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:24:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451715', 'tblTempUsageDetail_20' ) start [2025-02-11 12:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451715', 'tblTempUsageDetail_20' ) end [2025-02-11 12:24:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:24:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:24:32] Production.INFO: ==12017== Releasing lock... [2025-02-11 12:24:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:24:32] Production.INFO: 66.5 MB #Memory Used# [2025-02-11 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:25:05 [end_date_ymd] => 2025-02-11 12:25:05 [RateCDR] => 1 ) [2025-02-11 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:25:05' and `end` < '2025-02-11 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:25:26] Production.INFO: count ==5139 [2025-02-11 12:25:29] Production.ERROR: pbx CDR StartTime 2025-02-11 09:25:05 - End Time 2025-02-11 12:25:05 [2025-02-11 12:25:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451720', 'tblTempUsageDetail_20' ) start [2025-02-11 12:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451720', 'tblTempUsageDetail_20' ) end [2025-02-11 12:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451720', 'tblTempVendorCDR_20' ) start [2025-02-11 12:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451720', 'tblTempVendorCDR_20' ) end [2025-02-11 12:25:29] Production.INFO: ProcessCDR(1,14451720,1,1,2) [2025-02-11 12:25:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:25:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:25:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451720', 'tblTempUsageDetail_20' ) start [2025-02-11 12:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451720', 'tblTempUsageDetail_20' ) end [2025-02-11 12:25:34] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:25:34] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:25:34] Production.INFO: ==12100== Releasing lock... [2025-02-11 12:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:25:34] Production.INFO: 66.5 MB #Memory Used# [2025-02-11 12:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:26:06 [end_date_ymd] => 2025-02-11 12:26:06 [RateCDR] => 1 ) [2025-02-11 12:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:26:06' and `end` < '2025-02-11 12:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:26:23] Production.INFO: count ==5147 [2025-02-11 12:26:26] Production.ERROR: pbx CDR StartTime 2025-02-11 09:26:06 - End Time 2025-02-11 12:26:06 [2025-02-11 12:26:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451725', 'tblTempUsageDetail_20' ) start [2025-02-11 12:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451725', 'tblTempUsageDetail_20' ) end [2025-02-11 12:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451725', 'tblTempVendorCDR_20' ) start [2025-02-11 12:26:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451725', 'tblTempVendorCDR_20' ) end [2025-02-11 12:26:26] Production.INFO: ProcessCDR(1,14451725,1,1,2) [2025-02-11 12:26:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:26:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:26:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:26:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451725', 'tblTempUsageDetail_20' ) start [2025-02-11 12:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451725', 'tblTempUsageDetail_20' ) end [2025-02-11 12:26:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:26:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:26:31] Production.INFO: ==12183== Releasing lock... [2025-02-11 12:26:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:26:31] Production.INFO: 66.5 MB #Memory Used# [2025-02-11 12:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:27:06 [end_date_ymd] => 2025-02-11 12:27:06 [RateCDR] => 1 ) [2025-02-11 12:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:27:06' and `end` < '2025-02-11 12:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:27:26] Production.INFO: count ==5181 [2025-02-11 12:27:28] Production.ERROR: pbx CDR StartTime 2025-02-11 09:27:06 - End Time 2025-02-11 12:27:06 [2025-02-11 12:27:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451730', 'tblTempUsageDetail_20' ) start [2025-02-11 12:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451730', 'tblTempUsageDetail_20' ) end [2025-02-11 12:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451730', 'tblTempVendorCDR_20' ) start [2025-02-11 12:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451730', 'tblTempVendorCDR_20' ) end [2025-02-11 12:27:29] Production.INFO: ProcessCDR(1,14451730,1,1,2) [2025-02-11 12:27:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:27:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:27:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:27:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:27:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451730', 'tblTempUsageDetail_20' ) start [2025-02-11 12:27:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451730', 'tblTempUsageDetail_20' ) end [2025-02-11 12:27:35] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:27:35] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:27:35] Production.INFO: ==12263== Releasing lock... [2025-02-11 12:27:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:27:35] Production.INFO: 66.75 MB #Memory Used# [2025-02-11 12:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:28:06 [end_date_ymd] => 2025-02-11 12:28:06 [RateCDR] => 1 ) [2025-02-11 12:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:28:06' and `end` < '2025-02-11 12:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:28:27] Production.INFO: count ==5209 [2025-02-11 12:28:30] Production.ERROR: pbx CDR StartTime 2025-02-11 09:28:06 - End Time 2025-02-11 12:28:06 [2025-02-11 12:28:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:28:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451735', 'tblTempUsageDetail_20' ) start [2025-02-11 12:28:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451735', 'tblTempUsageDetail_20' ) end [2025-02-11 12:28:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451735', 'tblTempVendorCDR_20' ) start [2025-02-11 12:28:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451735', 'tblTempVendorCDR_20' ) end [2025-02-11 12:28:30] Production.INFO: ProcessCDR(1,14451735,1,1,2) [2025-02-11 12:28:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:28:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:28:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:28:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:28:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451735', 'tblTempUsageDetail_20' ) start [2025-02-11 12:28:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451735', 'tblTempUsageDetail_20' ) end [2025-02-11 12:28:35] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:28:35] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:28:35] Production.INFO: ==12340== Releasing lock... [2025-02-11 12:28:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:28:35] Production.INFO: 67 MB #Memory Used# [2025-02-11 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:29:05 [end_date_ymd] => 2025-02-11 12:29:05 [RateCDR] => 1 ) [2025-02-11 12:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:29:05' and `end` < '2025-02-11 12:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:29:23] Production.INFO: count ==5214 [2025-02-11 12:29:26] Production.ERROR: pbx CDR StartTime 2025-02-11 09:29:05 - End Time 2025-02-11 12:29:05 [2025-02-11 12:29:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451740', 'tblTempUsageDetail_20' ) start [2025-02-11 12:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451740', 'tblTempUsageDetail_20' ) end [2025-02-11 12:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451740', 'tblTempVendorCDR_20' ) start [2025-02-11 12:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451740', 'tblTempVendorCDR_20' ) end [2025-02-11 12:29:26] Production.INFO: ProcessCDR(1,14451740,1,1,2) [2025-02-11 12:29:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:29:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:29:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:29:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451740', 'tblTempUsageDetail_20' ) start [2025-02-11 12:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451740', 'tblTempUsageDetail_20' ) end [2025-02-11 12:29:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:29:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:29:31] Production.INFO: ==12422== Releasing lock... [2025-02-11 12:29:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:29:31] Production.INFO: 67 MB #Memory Used# [2025-02-11 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:30:06 [end_date_ymd] => 2025-02-11 12:30:06 [RateCDR] => 1 ) [2025-02-11 12:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:30:06' and `end` < '2025-02-11 12:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:30:25] Production.INFO: count ==5245 [2025-02-11 12:30:28] Production.ERROR: pbx CDR StartTime 2025-02-11 09:30:06 - End Time 2025-02-11 12:30:06 [2025-02-11 12:30:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451745', 'tblTempUsageDetail_20' ) start [2025-02-11 12:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451745', 'tblTempUsageDetail_20' ) end [2025-02-11 12:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451745', 'tblTempVendorCDR_20' ) start [2025-02-11 12:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451745', 'tblTempVendorCDR_20' ) end [2025-02-11 12:30:28] Production.INFO: ProcessCDR(1,14451745,1,1,2) [2025-02-11 12:30:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:30:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:30:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:30:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451745', 'tblTempUsageDetail_20' ) start [2025-02-11 12:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451745', 'tblTempUsageDetail_20' ) end [2025-02-11 12:30:33] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:30:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:30:34] Production.INFO: ==12505== Releasing lock... [2025-02-11 12:30:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:30:34] Production.INFO: 67.25 MB #Memory Used# [2025-02-11 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:31:05 [end_date_ymd] => 2025-02-11 12:31:05 [RateCDR] => 1 ) [2025-02-11 12:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:31:05' and `end` < '2025-02-11 12:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:31:24] Production.INFO: count ==5296 [2025-02-11 12:31:26] Production.ERROR: pbx CDR StartTime 2025-02-11 09:31:05 - End Time 2025-02-11 12:31:05 [2025-02-11 12:31:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451751', 'tblTempUsageDetail_20' ) start [2025-02-11 12:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451751', 'tblTempUsageDetail_20' ) end [2025-02-11 12:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451751', 'tblTempVendorCDR_20' ) start [2025-02-11 12:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451751', 'tblTempVendorCDR_20' ) end [2025-02-11 12:31:26] Production.INFO: ProcessCDR(1,14451751,1,1,2) [2025-02-11 12:31:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:31:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:31:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:31:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451751', 'tblTempUsageDetail_20' ) start [2025-02-11 12:31:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451751', 'tblTempUsageDetail_20' ) end [2025-02-11 12:31:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:31:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:31:32] Production.INFO: ==12584== Releasing lock... [2025-02-11 12:31:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:31:32] Production.INFO: 67.75 MB #Memory Used# [2025-02-11 12:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:32:06 [end_date_ymd] => 2025-02-11 12:32:06 [RateCDR] => 1 ) [2025-02-11 12:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:32:06' and `end` < '2025-02-11 12:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:32:29] Production.INFO: count ==5287 [2025-02-11 12:32:31] Production.ERROR: pbx CDR StartTime 2025-02-11 09:32:06 - End Time 2025-02-11 12:32:06 [2025-02-11 12:32:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451756', 'tblTempUsageDetail_20' ) start [2025-02-11 12:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451756', 'tblTempUsageDetail_20' ) end [2025-02-11 12:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451756', 'tblTempVendorCDR_20' ) start [2025-02-11 12:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451756', 'tblTempVendorCDR_20' ) end [2025-02-11 12:32:31] Production.INFO: ProcessCDR(1,14451756,1,1,2) [2025-02-11 12:32:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:32:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:32:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:32:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:32:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451756', 'tblTempUsageDetail_20' ) start [2025-02-11 12:32:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451756', 'tblTempUsageDetail_20' ) end [2025-02-11 12:32:37] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:32:37] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:32:37] Production.INFO: ==12664== Releasing lock... [2025-02-11 12:32:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:32:37] Production.INFO: 67.75 MB #Memory Used# [2025-02-11 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:33:05 [end_date_ymd] => 2025-02-11 12:33:05 [RateCDR] => 1 ) [2025-02-11 12:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:33:05' and `end` < '2025-02-11 12:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:33:22] Production.INFO: count ==5290 [2025-02-11 12:33:25] Production.ERROR: pbx CDR StartTime 2025-02-11 09:33:05 - End Time 2025-02-11 12:33:05 [2025-02-11 12:33:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451761', 'tblTempUsageDetail_20' ) start [2025-02-11 12:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451761', 'tblTempUsageDetail_20' ) end [2025-02-11 12:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451761', 'tblTempVendorCDR_20' ) start [2025-02-11 12:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451761', 'tblTempVendorCDR_20' ) end [2025-02-11 12:33:25] Production.INFO: ProcessCDR(1,14451761,1,1,2) [2025-02-11 12:33:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:33:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:33:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:33:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451761', 'tblTempUsageDetail_20' ) start [2025-02-11 12:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451761', 'tblTempUsageDetail_20' ) end [2025-02-11 12:33:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:33:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:33:31] Production.INFO: ==12744== Releasing lock... [2025-02-11 12:33:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:33:31] Production.INFO: 67.5 MB #Memory Used# [2025-02-11 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:34:05 [end_date_ymd] => 2025-02-11 12:34:05 [RateCDR] => 1 ) [2025-02-11 12:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:34:05' and `end` < '2025-02-11 12:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:34:25] Production.INFO: count ==5302 [2025-02-11 12:34:28] Production.ERROR: pbx CDR StartTime 2025-02-11 09:34:05 - End Time 2025-02-11 12:34:05 [2025-02-11 12:34:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451766', 'tblTempUsageDetail_20' ) start [2025-02-11 12:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451766', 'tblTempUsageDetail_20' ) end [2025-02-11 12:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451766', 'tblTempVendorCDR_20' ) start [2025-02-11 12:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451766', 'tblTempVendorCDR_20' ) end [2025-02-11 12:34:28] Production.INFO: ProcessCDR(1,14451766,1,1,2) [2025-02-11 12:34:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:34:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:34:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:34:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:34:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451766', 'tblTempUsageDetail_20' ) start [2025-02-11 12:34:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451766', 'tblTempUsageDetail_20' ) end [2025-02-11 12:34:33] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:34:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:34:33] Production.INFO: ==12830== Releasing lock... [2025-02-11 12:34:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:34:33] Production.INFO: 67.75 MB #Memory Used# [2025-02-11 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:35:05 [end_date_ymd] => 2025-02-11 12:35:05 [RateCDR] => 1 ) [2025-02-11 12:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:35:05' and `end` < '2025-02-11 12:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:35:24] Production.INFO: count ==5297 [2025-02-11 12:35:26] Production.ERROR: pbx CDR StartTime 2025-02-11 09:35:05 - End Time 2025-02-11 12:35:05 [2025-02-11 12:35:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451771', 'tblTempUsageDetail_20' ) start [2025-02-11 12:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451771', 'tblTempUsageDetail_20' ) end [2025-02-11 12:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451771', 'tblTempVendorCDR_20' ) start [2025-02-11 12:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451771', 'tblTempVendorCDR_20' ) end [2025-02-11 12:35:26] Production.INFO: ProcessCDR(1,14451771,1,1,2) [2025-02-11 12:35:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:35:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:35:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:35:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451771', 'tblTempUsageDetail_20' ) start [2025-02-11 12:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451771', 'tblTempUsageDetail_20' ) end [2025-02-11 12:35:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:35:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:35:32] Production.INFO: ==12909== Releasing lock... [2025-02-11 12:35:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:35:32] Production.INFO: 67.75 MB #Memory Used# [2025-02-11 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:36:05 [end_date_ymd] => 2025-02-11 12:36:05 [RateCDR] => 1 ) [2025-02-11 12:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:36:05' and `end` < '2025-02-11 12:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:36:21] Production.INFO: count ==5313 [2025-02-11 12:36:24] Production.ERROR: pbx CDR StartTime 2025-02-11 09:36:05 - End Time 2025-02-11 12:36:05 [2025-02-11 12:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451772', 'tblTempUsageDetail_20' ) start [2025-02-11 12:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451772', 'tblTempUsageDetail_20' ) end [2025-02-11 12:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451772', 'tblTempVendorCDR_20' ) start [2025-02-11 12:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451772', 'tblTempVendorCDR_20' ) end [2025-02-11 12:36:24] Production.INFO: ProcessCDR(1,14451772,1,1,2) [2025-02-11 12:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:36:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:36:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:36:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451772', 'tblTempUsageDetail_20' ) start [2025-02-11 12:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451772', 'tblTempUsageDetail_20' ) end [2025-02-11 12:36:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:36:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:36:29] Production.INFO: ==12984== Releasing lock... [2025-02-11 12:36:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:36:29] Production.INFO: 67.75 MB #Memory Used# [2025-02-11 12:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:37:06 [end_date_ymd] => 2025-02-11 12:37:06 [RateCDR] => 1 ) [2025-02-11 12:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:37:06' and `end` < '2025-02-11 12:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:37:21] Production.INFO: count ==5300 [2025-02-11 12:37:24] Production.ERROR: pbx CDR StartTime 2025-02-11 09:37:06 - End Time 2025-02-11 12:37:06 [2025-02-11 12:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451781', 'tblTempUsageDetail_20' ) start [2025-02-11 12:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451781', 'tblTempUsageDetail_20' ) end [2025-02-11 12:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451781', 'tblTempVendorCDR_20' ) start [2025-02-11 12:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451781', 'tblTempVendorCDR_20' ) end [2025-02-11 12:37:24] Production.INFO: ProcessCDR(1,14451781,1,1,2) [2025-02-11 12:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451781', 'tblTempUsageDetail_20' ) start [2025-02-11 12:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451781', 'tblTempUsageDetail_20' ) end [2025-02-11 12:37:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:37:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:37:30] Production.INFO: ==13059== Releasing lock... [2025-02-11 12:37:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:37:30] Production.INFO: 67.75 MB #Memory Used# [2025-02-11 12:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:38:06 [end_date_ymd] => 2025-02-11 12:38:06 [RateCDR] => 1 ) [2025-02-11 12:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:38:06' and `end` < '2025-02-11 12:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:38:22] Production.INFO: count ==5311 [2025-02-11 12:38:25] Production.ERROR: pbx CDR StartTime 2025-02-11 09:38:06 - End Time 2025-02-11 12:38:06 [2025-02-11 12:38:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451786', 'tblTempUsageDetail_20' ) start [2025-02-11 12:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451786', 'tblTempUsageDetail_20' ) end [2025-02-11 12:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451786', 'tblTempVendorCDR_20' ) start [2025-02-11 12:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451786', 'tblTempVendorCDR_20' ) end [2025-02-11 12:38:25] Production.INFO: ProcessCDR(1,14451786,1,1,2) [2025-02-11 12:38:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:38:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:38:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:38:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451786', 'tblTempUsageDetail_20' ) start [2025-02-11 12:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451786', 'tblTempUsageDetail_20' ) end [2025-02-11 12:38:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:38:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:38:31] Production.INFO: ==13140== Releasing lock... [2025-02-11 12:38:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:38:31] Production.INFO: 67.75 MB #Memory Used# [2025-02-11 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:39:05 [end_date_ymd] => 2025-02-11 12:39:05 [RateCDR] => 1 ) [2025-02-11 12:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:39:05' and `end` < '2025-02-11 12:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:39:20] Production.INFO: count ==5329 [2025-02-11 12:39:22] Production.ERROR: pbx CDR StartTime 2025-02-11 09:39:05 - End Time 2025-02-11 12:39:05 [2025-02-11 12:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451791', 'tblTempUsageDetail_20' ) start [2025-02-11 12:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451791', 'tblTempUsageDetail_20' ) end [2025-02-11 12:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451791', 'tblTempVendorCDR_20' ) start [2025-02-11 12:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451791', 'tblTempVendorCDR_20' ) end [2025-02-11 12:39:23] Production.INFO: ProcessCDR(1,14451791,1,1,2) [2025-02-11 12:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451791', 'tblTempUsageDetail_20' ) start [2025-02-11 12:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451791', 'tblTempUsageDetail_20' ) end [2025-02-11 12:39:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:39:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:39:29] Production.INFO: ==13215== Releasing lock... [2025-02-11 12:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:39:29] Production.INFO: 68 MB #Memory Used# [2025-02-11 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:40:06 [end_date_ymd] => 2025-02-11 12:40:06 [RateCDR] => 1 ) [2025-02-11 12:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:40:06' and `end` < '2025-02-11 12:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:40:35] Production.INFO: count ==5351 [2025-02-11 12:40:38] Production.ERROR: pbx CDR StartTime 2025-02-11 09:40:06 - End Time 2025-02-11 12:40:06 [2025-02-11 12:40:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:40:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451797', 'tblTempUsageDetail_20' ) start [2025-02-11 12:40:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451797', 'tblTempUsageDetail_20' ) end [2025-02-11 12:40:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451797', 'tblTempVendorCDR_20' ) start [2025-02-11 12:40:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451797', 'tblTempVendorCDR_20' ) end [2025-02-11 12:40:38] Production.INFO: ProcessCDR(1,14451797,1,1,2) [2025-02-11 12:40:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:40:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:40:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:40:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:40:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451797', 'tblTempUsageDetail_20' ) start [2025-02-11 12:40:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451797', 'tblTempUsageDetail_20' ) end [2025-02-11 12:40:43] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:40:43] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:40:43] Production.INFO: ==13333== Releasing lock... [2025-02-11 12:40:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:40:43] Production.INFO: 68 MB #Memory Used# [2025-02-11 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:41:05 [end_date_ymd] => 2025-02-11 12:41:05 [RateCDR] => 1 ) [2025-02-11 12:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:41:05' and `end` < '2025-02-11 12:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:41:23] Production.INFO: count ==5380 [2025-02-11 12:41:26] Production.ERROR: pbx CDR StartTime 2025-02-11 09:41:05 - End Time 2025-02-11 12:41:05 [2025-02-11 12:41:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451802', 'tblTempUsageDetail_20' ) start [2025-02-11 12:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451802', 'tblTempUsageDetail_20' ) end [2025-02-11 12:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451802', 'tblTempVendorCDR_20' ) start [2025-02-11 12:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451802', 'tblTempVendorCDR_20' ) end [2025-02-11 12:41:26] Production.INFO: ProcessCDR(1,14451802,1,1,2) [2025-02-11 12:41:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:41:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:41:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:41:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451802', 'tblTempUsageDetail_20' ) start [2025-02-11 12:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451802', 'tblTempUsageDetail_20' ) end [2025-02-11 12:41:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:41:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:41:31] Production.INFO: ==13422== Releasing lock... [2025-02-11 12:41:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:41:31] Production.INFO: 68.25 MB #Memory Used# [2025-02-11 12:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:42:06 [end_date_ymd] => 2025-02-11 12:42:06 [RateCDR] => 1 ) [2025-02-11 12:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:42:06' and `end` < '2025-02-11 12:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:42:23] Production.INFO: count ==5396 [2025-02-11 12:42:26] Production.ERROR: pbx CDR StartTime 2025-02-11 09:42:06 - End Time 2025-02-11 12:42:06 [2025-02-11 12:42:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451807', 'tblTempUsageDetail_20' ) start [2025-02-11 12:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451807', 'tblTempUsageDetail_20' ) end [2025-02-11 12:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451807', 'tblTempVendorCDR_20' ) start [2025-02-11 12:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451807', 'tblTempVendorCDR_20' ) end [2025-02-11 12:42:26] Production.INFO: ProcessCDR(1,14451807,1,1,2) [2025-02-11 12:42:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:42:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:42:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:42:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451807', 'tblTempUsageDetail_20' ) start [2025-02-11 12:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451807', 'tblTempUsageDetail_20' ) end [2025-02-11 12:42:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:42:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:42:31] Production.INFO: ==13515== Releasing lock... [2025-02-11 12:42:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:42:31] Production.INFO: 68.5 MB #Memory Used# [2025-02-11 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:43:05 [end_date_ymd] => 2025-02-11 12:43:05 [RateCDR] => 1 ) [2025-02-11 12:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:43:05' and `end` < '2025-02-11 12:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:43:23] Production.INFO: count ==5411 [2025-02-11 12:43:26] Production.ERROR: pbx CDR StartTime 2025-02-11 09:43:05 - End Time 2025-02-11 12:43:05 [2025-02-11 12:43:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451812', 'tblTempUsageDetail_20' ) start [2025-02-11 12:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451812', 'tblTempUsageDetail_20' ) end [2025-02-11 12:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451812', 'tblTempVendorCDR_20' ) start [2025-02-11 12:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451812', 'tblTempVendorCDR_20' ) end [2025-02-11 12:43:26] Production.INFO: ProcessCDR(1,14451812,1,1,2) [2025-02-11 12:43:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:43:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:43:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:43:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451812', 'tblTempUsageDetail_20' ) start [2025-02-11 12:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451812', 'tblTempUsageDetail_20' ) end [2025-02-11 12:43:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:43:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:43:31] Production.INFO: ==13600== Releasing lock... [2025-02-11 12:43:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:43:31] Production.INFO: 68.5 MB #Memory Used# [2025-02-11 12:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:44:06 [end_date_ymd] => 2025-02-11 12:44:06 [RateCDR] => 1 ) [2025-02-11 12:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:44:06' and `end` < '2025-02-11 12:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:44:23] Production.INFO: count ==5414 [2025-02-11 12:44:26] Production.ERROR: pbx CDR StartTime 2025-02-11 09:44:06 - End Time 2025-02-11 12:44:06 [2025-02-11 12:44:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451817', 'tblTempUsageDetail_20' ) start [2025-02-11 12:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451817', 'tblTempUsageDetail_20' ) end [2025-02-11 12:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451817', 'tblTempVendorCDR_20' ) start [2025-02-11 12:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451817', 'tblTempVendorCDR_20' ) end [2025-02-11 12:44:26] Production.INFO: ProcessCDR(1,14451817,1,1,2) [2025-02-11 12:44:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:44:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:44:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:44:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451817', 'tblTempUsageDetail_20' ) start [2025-02-11 12:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451817', 'tblTempUsageDetail_20' ) end [2025-02-11 12:44:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:44:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:44:31] Production.INFO: ==13693== Releasing lock... [2025-02-11 12:44:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:44:31] Production.INFO: 68.5 MB #Memory Used# [2025-02-11 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:45:05 [end_date_ymd] => 2025-02-11 12:45:05 [RateCDR] => 1 ) [2025-02-11 12:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:45:05' and `end` < '2025-02-11 12:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:45:24] Production.INFO: count ==5412 [2025-02-11 12:45:27] Production.ERROR: pbx CDR StartTime 2025-02-11 09:45:05 - End Time 2025-02-11 12:45:05 [2025-02-11 12:45:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451822', 'tblTempUsageDetail_20' ) start [2025-02-11 12:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451822', 'tblTempUsageDetail_20' ) end [2025-02-11 12:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451822', 'tblTempVendorCDR_20' ) start [2025-02-11 12:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451822', 'tblTempVendorCDR_20' ) end [2025-02-11 12:45:27] Production.INFO: ProcessCDR(1,14451822,1,1,2) [2025-02-11 12:45:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:45:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:45:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:45:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451822', 'tblTempUsageDetail_20' ) start [2025-02-11 12:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451822', 'tblTempUsageDetail_20' ) end [2025-02-11 12:45:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:45:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:45:32] Production.INFO: ==13777== Releasing lock... [2025-02-11 12:45:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:45:32] Production.INFO: 68.5 MB #Memory Used# [2025-02-11 12:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:46:06 [end_date_ymd] => 2025-02-11 12:46:06 [RateCDR] => 1 ) [2025-02-11 12:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:46:06' and `end` < '2025-02-11 12:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:46:21] Production.INFO: count ==5414 [2025-02-11 12:46:24] Production.ERROR: pbx CDR StartTime 2025-02-11 09:46:06 - End Time 2025-02-11 12:46:06 [2025-02-11 12:46:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451827', 'tblTempUsageDetail_20' ) start [2025-02-11 12:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451827', 'tblTempUsageDetail_20' ) end [2025-02-11 12:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451827', 'tblTempVendorCDR_20' ) start [2025-02-11 12:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451827', 'tblTempVendorCDR_20' ) end [2025-02-11 12:46:24] Production.INFO: ProcessCDR(1,14451827,1,1,2) [2025-02-11 12:46:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:46:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:46:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451827', 'tblTempUsageDetail_20' ) start [2025-02-11 12:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451827', 'tblTempUsageDetail_20' ) end [2025-02-11 12:46:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:46:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:46:30] Production.INFO: ==13863== Releasing lock... [2025-02-11 12:46:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:46:30] Production.INFO: 68.5 MB #Memory Used# [2025-02-11 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:47:05 [end_date_ymd] => 2025-02-11 12:47:05 [RateCDR] => 1 ) [2025-02-11 12:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:47:05' and `end` < '2025-02-11 12:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:47:22] Production.INFO: count ==5411 [2025-02-11 12:47:25] Production.ERROR: pbx CDR StartTime 2025-02-11 09:47:05 - End Time 2025-02-11 12:47:05 [2025-02-11 12:47:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451832', 'tblTempUsageDetail_20' ) start [2025-02-11 12:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451832', 'tblTempUsageDetail_20' ) end [2025-02-11 12:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451832', 'tblTempVendorCDR_20' ) start [2025-02-11 12:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451832', 'tblTempVendorCDR_20' ) end [2025-02-11 12:47:25] Production.INFO: ProcessCDR(1,14451832,1,1,2) [2025-02-11 12:47:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:47:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451832', 'tblTempUsageDetail_20' ) start [2025-02-11 12:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451832', 'tblTempUsageDetail_20' ) end [2025-02-11 12:47:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:47:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:47:30] Production.INFO: ==13947== Releasing lock... [2025-02-11 12:47:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:47:30] Production.INFO: 68.5 MB #Memory Used# [2025-02-11 12:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:48:06 [end_date_ymd] => 2025-02-11 12:48:06 [RateCDR] => 1 ) [2025-02-11 12:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:48:06' and `end` < '2025-02-11 12:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:48:23] Production.INFO: count ==5398 [2025-02-11 12:48:25] Production.ERROR: pbx CDR StartTime 2025-02-11 09:48:06 - End Time 2025-02-11 12:48:06 [2025-02-11 12:48:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451837', 'tblTempUsageDetail_20' ) start [2025-02-11 12:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451837', 'tblTempUsageDetail_20' ) end [2025-02-11 12:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451837', 'tblTempVendorCDR_20' ) start [2025-02-11 12:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451837', 'tblTempVendorCDR_20' ) end [2025-02-11 12:48:26] Production.INFO: ProcessCDR(1,14451837,1,1,2) [2025-02-11 12:48:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:48:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:48:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:48:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451837', 'tblTempUsageDetail_20' ) start [2025-02-11 12:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451837', 'tblTempUsageDetail_20' ) end [2025-02-11 12:48:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:48:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:48:31] Production.INFO: ==14032== Releasing lock... [2025-02-11 12:48:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:48:31] Production.INFO: 68.5 MB #Memory Used# [2025-02-11 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:49:05 [end_date_ymd] => 2025-02-11 12:49:05 [RateCDR] => 1 ) [2025-02-11 12:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:49:05' and `end` < '2025-02-11 12:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:49:21] Production.INFO: count ==5381 [2025-02-11 12:49:24] Production.ERROR: pbx CDR StartTime 2025-02-11 09:49:05 - End Time 2025-02-11 12:49:05 [2025-02-11 12:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451842', 'tblTempUsageDetail_20' ) start [2025-02-11 12:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451842', 'tblTempUsageDetail_20' ) end [2025-02-11 12:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451842', 'tblTempVendorCDR_20' ) start [2025-02-11 12:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451842', 'tblTempVendorCDR_20' ) end [2025-02-11 12:49:24] Production.INFO: ProcessCDR(1,14451842,1,1,2) [2025-02-11 12:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:49:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:49:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451842', 'tblTempUsageDetail_20' ) start [2025-02-11 12:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451842', 'tblTempUsageDetail_20' ) end [2025-02-11 12:49:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:49:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:49:30] Production.INFO: ==14121== Releasing lock... [2025-02-11 12:49:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:49:30] Production.INFO: 68.25 MB #Memory Used# [2025-02-11 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:50:06 [end_date_ymd] => 2025-02-11 12:50:06 [RateCDR] => 1 ) [2025-02-11 12:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:50:06' and `end` < '2025-02-11 12:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:50:28] Production.INFO: count ==5396 [2025-02-11 12:50:31] Production.ERROR: pbx CDR StartTime 2025-02-11 09:50:06 - End Time 2025-02-11 12:50:06 [2025-02-11 12:50:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451848', 'tblTempUsageDetail_20' ) start [2025-02-11 12:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451848', 'tblTempUsageDetail_20' ) end [2025-02-11 12:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451848', 'tblTempVendorCDR_20' ) start [2025-02-11 12:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451848', 'tblTempVendorCDR_20' ) end [2025-02-11 12:50:31] Production.INFO: ProcessCDR(1,14451848,1,1,2) [2025-02-11 12:50:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:50:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:50:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:50:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:50:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451848', 'tblTempUsageDetail_20' ) start [2025-02-11 12:50:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451848', 'tblTempUsageDetail_20' ) end [2025-02-11 12:50:37] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:50:37] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:50:37] Production.INFO: ==14213== Releasing lock... [2025-02-11 12:50:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:50:37] Production.INFO: 68.5 MB #Memory Used# [2025-02-11 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:51:05 [end_date_ymd] => 2025-02-11 12:51:05 [RateCDR] => 1 ) [2025-02-11 12:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:51:05' and `end` < '2025-02-11 12:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:51:28] Production.INFO: count ==5435 [2025-02-11 12:51:30] Production.ERROR: pbx CDR StartTime 2025-02-11 09:51:05 - End Time 2025-02-11 12:51:05 [2025-02-11 12:51:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:51:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451853', 'tblTempUsageDetail_20' ) start [2025-02-11 12:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451853', 'tblTempUsageDetail_20' ) end [2025-02-11 12:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451853', 'tblTempVendorCDR_20' ) start [2025-02-11 12:51:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451853', 'tblTempVendorCDR_20' ) end [2025-02-11 12:51:31] Production.INFO: ProcessCDR(1,14451853,1,1,2) [2025-02-11 12:51:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:51:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:51:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:51:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:51:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451853', 'tblTempUsageDetail_20' ) start [2025-02-11 12:51:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451853', 'tblTempUsageDetail_20' ) end [2025-02-11 12:51:36] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:51:36] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:51:36] Production.INFO: ==14330== Releasing lock... [2025-02-11 12:51:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:51:36] Production.INFO: 68.75 MB #Memory Used# [2025-02-11 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:52:05 [end_date_ymd] => 2025-02-11 12:52:05 [RateCDR] => 1 ) [2025-02-11 12:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:52:05' and `end` < '2025-02-11 12:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:52:26] Production.INFO: count ==5415 [2025-02-11 12:52:29] Production.ERROR: pbx CDR StartTime 2025-02-11 09:52:05 - End Time 2025-02-11 12:52:05 [2025-02-11 12:52:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451858', 'tblTempUsageDetail_20' ) start [2025-02-11 12:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451858', 'tblTempUsageDetail_20' ) end [2025-02-11 12:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451858', 'tblTempVendorCDR_20' ) start [2025-02-11 12:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451858', 'tblTempVendorCDR_20' ) end [2025-02-11 12:52:29] Production.INFO: ProcessCDR(1,14451858,1,1,2) [2025-02-11 12:52:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:52:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:52:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:52:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:52:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451858', 'tblTempUsageDetail_20' ) start [2025-02-11 12:52:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451858', 'tblTempUsageDetail_20' ) end [2025-02-11 12:52:34] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:52:35] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:52:35] Production.INFO: ==14469== Releasing lock... [2025-02-11 12:52:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:52:35] Production.INFO: 68.5 MB #Memory Used# [2025-02-11 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:53:05 [end_date_ymd] => 2025-02-11 12:53:05 [RateCDR] => 1 ) [2025-02-11 12:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:53:05' and `end` < '2025-02-11 12:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:53:25] Production.INFO: count ==5411 [2025-02-11 12:53:28] Production.ERROR: pbx CDR StartTime 2025-02-11 09:53:05 - End Time 2025-02-11 12:53:05 [2025-02-11 12:53:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451863', 'tblTempUsageDetail_20' ) start [2025-02-11 12:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451863', 'tblTempUsageDetail_20' ) end [2025-02-11 12:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451863', 'tblTempVendorCDR_20' ) start [2025-02-11 12:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451863', 'tblTempVendorCDR_20' ) end [2025-02-11 12:53:28] Production.INFO: ProcessCDR(1,14451863,1,1,2) [2025-02-11 12:53:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:53:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:53:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:53:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:53:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451863', 'tblTempUsageDetail_20' ) start [2025-02-11 12:53:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451863', 'tblTempUsageDetail_20' ) end [2025-02-11 12:53:33] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:53:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:53:33] Production.INFO: ==14561== Releasing lock... [2025-02-11 12:53:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:53:33] Production.INFO: 68.5 MB #Memory Used# [2025-02-11 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:54:05 [end_date_ymd] => 2025-02-11 12:54:05 [RateCDR] => 1 ) [2025-02-11 12:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:54:05' and `end` < '2025-02-11 12:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:54:25] Production.INFO: count ==5412 [2025-02-11 12:54:28] Production.ERROR: pbx CDR StartTime 2025-02-11 09:54:05 - End Time 2025-02-11 12:54:05 [2025-02-11 12:54:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451868', 'tblTempUsageDetail_20' ) start [2025-02-11 12:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451868', 'tblTempUsageDetail_20' ) end [2025-02-11 12:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451868', 'tblTempVendorCDR_20' ) start [2025-02-11 12:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451868', 'tblTempVendorCDR_20' ) end [2025-02-11 12:54:28] Production.INFO: ProcessCDR(1,14451868,1,1,2) [2025-02-11 12:54:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:54:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:54:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:54:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451868', 'tblTempUsageDetail_20' ) start [2025-02-11 12:54:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451868', 'tblTempUsageDetail_20' ) end [2025-02-11 12:54:34] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:54:34] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:54:34] Production.INFO: ==14670== Releasing lock... [2025-02-11 12:54:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:54:34] Production.INFO: 68.5 MB #Memory Used# [2025-02-11 12:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:55:06 [end_date_ymd] => 2025-02-11 12:55:06 [RateCDR] => 1 ) [2025-02-11 12:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:55:06' and `end` < '2025-02-11 12:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:55:34] Production.INFO: count ==5425 [2025-02-11 12:55:37] Production.ERROR: pbx CDR StartTime 2025-02-11 09:55:06 - End Time 2025-02-11 12:55:06 [2025-02-11 12:55:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:55:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451873', 'tblTempUsageDetail_20' ) start [2025-02-11 12:55:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451873', 'tblTempUsageDetail_20' ) end [2025-02-11 12:55:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451873', 'tblTempVendorCDR_20' ) start [2025-02-11 12:55:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451873', 'tblTempVendorCDR_20' ) end [2025-02-11 12:55:37] Production.INFO: ProcessCDR(1,14451873,1,1,2) [2025-02-11 12:55:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:55:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:55:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:55:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:55:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451873', 'tblTempUsageDetail_20' ) start [2025-02-11 12:55:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451873', 'tblTempUsageDetail_20' ) end [2025-02-11 12:55:43] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:55:43] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:55:43] Production.INFO: ==14798== Releasing lock... [2025-02-11 12:55:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:55:43] Production.INFO: 68.75 MB #Memory Used# [2025-02-11 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:56:05 [end_date_ymd] => 2025-02-11 12:56:05 [RateCDR] => 1 ) [2025-02-11 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-02-11 09:56:05' and `end` < '2025-02-11 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-02-11 12:56:29] Production.INFO: count ==5416 [2025-02-11 12:56:32] Production.ERROR: pbx CDR StartTime 2025-02-11 09:56:05 - End Time 2025-02-11 12:56:05 [2025-02-11 12:56:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:56:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451878', 'tblTempUsageDetail_20' ) start [2025-02-11 12:56:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451878', 'tblTempUsageDetail_20' ) end [2025-02-11 12:56:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451878', 'tblTempVendorCDR_20' ) start [2025-02-11 12:56:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451878', 'tblTempVendorCDR_20' ) end [2025-02-11 12:56:32] Production.INFO: ProcessCDR(1,14451878,1,1,2) [2025-02-11 12:56:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:56:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:56:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:56:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:56:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451878', 'tblTempUsageDetail_20' ) start [2025-02-11 12:56:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451878', 'tblTempUsageDetail_20' ) end [2025-02-11 12:56:37] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:56:37] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:56:37] Production.INFO: ==14871== Releasing lock... [2025-02-11 12:56:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:56:37] Production.INFO: 68.5 MB #Memory Used# [2025-02-11 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:57:05 [end_date_ymd] => 2025-02-11 12:57:05 [RateCDR] => 1 ) [2025-02-11 12:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:57:05' and `end` < '2025-02-11 12:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:57:24] Production.INFO: count ==5414 [2025-02-11 12:57:27] Production.ERROR: pbx CDR StartTime 2025-02-11 09:57:05 - End Time 2025-02-11 12:57:05 [2025-02-11 12:57:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451883', 'tblTempUsageDetail_20' ) start [2025-02-11 12:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451883', 'tblTempUsageDetail_20' ) end [2025-02-11 12:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451883', 'tblTempVendorCDR_20' ) start [2025-02-11 12:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451883', 'tblTempVendorCDR_20' ) end [2025-02-11 12:57:27] Production.INFO: ProcessCDR(1,14451883,1,1,2) [2025-02-11 12:57:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:57:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:57:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:57:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:57:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451883', 'tblTempUsageDetail_20' ) start [2025-02-11 12:57:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451883', 'tblTempUsageDetail_20' ) end [2025-02-11 12:57:33] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:57:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:57:33] Production.INFO: ==14941== Releasing lock... [2025-02-11 12:57:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:57:33] Production.INFO: 68.5 MB #Memory Used# [2025-02-11 12:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:58:06 [end_date_ymd] => 2025-02-11 12:58:06 [RateCDR] => 1 ) [2025-02-11 12:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 09:58:06' and `end` < '2025-02-11 12:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 12:58:34] Production.INFO: count ==5402 [2025-02-11 12:58:37] Production.ERROR: pbx CDR StartTime 2025-02-11 09:58:06 - End Time 2025-02-11 12:58:06 [2025-02-11 12:58:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:58:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451888', 'tblTempUsageDetail_20' ) start [2025-02-11 12:58:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451888', 'tblTempUsageDetail_20' ) end [2025-02-11 12:58:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451888', 'tblTempVendorCDR_20' ) start [2025-02-11 12:58:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451888', 'tblTempVendorCDR_20' ) end [2025-02-11 12:58:37] Production.INFO: ProcessCDR(1,14451888,1,1,2) [2025-02-11 12:58:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:58:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:58:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:58:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:58:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451888', 'tblTempUsageDetail_20' ) start [2025-02-11 12:58:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451888', 'tblTempUsageDetail_20' ) end [2025-02-11 12:58:43] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:58:43] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:58:43] Production.INFO: ==15012== Releasing lock... [2025-02-11 12:58:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:58:43] Production.INFO: 68.5 MB #Memory Used# [2025-02-11 12:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 09:59:06 [end_date_ymd] => 2025-02-11 12:59:06 [RateCDR] => 1 ) [2025-02-11 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-02-11 09:59:06' and `end` < '2025-02-11 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-02-11 12:59:27] Production.INFO: count ==5370 [2025-02-11 12:59:30] Production.ERROR: pbx CDR StartTime 2025-02-11 09:59:06 - End Time 2025-02-11 12:59:06 [2025-02-11 12:59:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 12:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451893', 'tblTempUsageDetail_20' ) start [2025-02-11 12:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451893', 'tblTempUsageDetail_20' ) end [2025-02-11 12:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451893', 'tblTempVendorCDR_20' ) start [2025-02-11 12:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451893', 'tblTempVendorCDR_20' ) end [2025-02-11 12:59:30] Production.INFO: ProcessCDR(1,14451893,1,1,2) [2025-02-11 12:59:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:59:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 12:59:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:59:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 12:59:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451893', 'tblTempUsageDetail_20' ) start [2025-02-11 12:59:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451893', 'tblTempUsageDetail_20' ) end [2025-02-11 12:59:36] Production.ERROR: pbx prc_insertCDR start [2025-02-11 12:59:36] Production.ERROR: pbx prc_insertCDR end [2025-02-11 12:59:36] Production.INFO: ==15084== Releasing lock... [2025-02-11 12:59:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 12:59:36] Production.INFO: 68.25 MB #Memory Used# [2025-02-11 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:00:06 [end_date_ymd] => 2025-02-11 13:00:06 [RateCDR] => 1 ) [2025-02-11 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:00:06' and `end` < '2025-02-11 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:00:22] Production.INFO: count ==5376 [2025-02-11 13:00:25] Production.ERROR: pbx CDR StartTime 2025-02-11 10:00:06 - End Time 2025-02-11 13:00:06 [2025-02-11 13:00:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451899', 'tblTempUsageDetail_20' ) start [2025-02-11 13:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451899', 'tblTempUsageDetail_20' ) end [2025-02-11 13:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451899', 'tblTempVendorCDR_20' ) start [2025-02-11 13:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451899', 'tblTempVendorCDR_20' ) end [2025-02-11 13:00:25] Production.INFO: ProcessCDR(1,14451899,1,1,2) [2025-02-11 13:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451899', 'tblTempUsageDetail_20' ) start [2025-02-11 13:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451899', 'tblTempUsageDetail_20' ) end [2025-02-11 13:00:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:00:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:00:31] Production.INFO: ==15159== Releasing lock... [2025-02-11 13:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:00:31] Production.INFO: 68.25 MB #Memory Used# [2025-02-11 13:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:01:06 [end_date_ymd] => 2025-02-11 13:01:06 [RateCDR] => 1 ) [2025-02-11 13:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:01:06' and `end` < '2025-02-11 13:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:01:21] Production.INFO: count ==5327 [2025-02-11 13:01:23] Production.ERROR: pbx CDR StartTime 2025-02-11 10:01:06 - End Time 2025-02-11 13:01:06 [2025-02-11 13:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451904', 'tblTempUsageDetail_20' ) start [2025-02-11 13:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451904', 'tblTempUsageDetail_20' ) end [2025-02-11 13:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451904', 'tblTempVendorCDR_20' ) start [2025-02-11 13:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451904', 'tblTempVendorCDR_20' ) end [2025-02-11 13:01:24] Production.INFO: ProcessCDR(1,14451904,1,1,2) [2025-02-11 13:01:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451904', 'tblTempUsageDetail_20' ) start [2025-02-11 13:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451904', 'tblTempUsageDetail_20' ) end [2025-02-11 13:01:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:01:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:01:30] Production.INFO: ==15252== Releasing lock... [2025-02-11 13:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:01:30] Production.INFO: 68 MB #Memory Used# [2025-02-11 13:02:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:02:07 [end_date_ymd] => 2025-02-11 13:02:07 [RateCDR] => 1 ) [2025-02-11 13:02:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:02:07' and `end` < '2025-02-11 13:02:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:02:23] Production.INFO: count ==5310 [2025-02-11 13:02:26] Production.ERROR: pbx CDR StartTime 2025-02-11 10:02:07 - End Time 2025-02-11 13:02:07 [2025-02-11 13:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451909', 'tblTempUsageDetail_20' ) start [2025-02-11 13:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451909', 'tblTempUsageDetail_20' ) end [2025-02-11 13:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451909', 'tblTempVendorCDR_20' ) start [2025-02-11 13:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451909', 'tblTempVendorCDR_20' ) end [2025-02-11 13:02:26] Production.INFO: ProcessCDR(1,14451909,1,1,2) [2025-02-11 13:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:02:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:02:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:02:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451909', 'tblTempUsageDetail_20' ) start [2025-02-11 13:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451909', 'tblTempUsageDetail_20' ) end [2025-02-11 13:02:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:02:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:02:31] Production.INFO: ==15324== Releasing lock... [2025-02-11 13:02:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:02:31] Production.INFO: 67.75 MB #Memory Used# [2025-02-11 13:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:03:05 [end_date_ymd] => 2025-02-11 13:03:05 [RateCDR] => 1 ) [2025-02-11 13:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:03:05' and `end` < '2025-02-11 13:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:03:23] Production.INFO: count ==5316 [2025-02-11 13:03:26] Production.ERROR: pbx CDR StartTime 2025-02-11 10:03:05 - End Time 2025-02-11 13:03:05 [2025-02-11 13:03:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451914', 'tblTempUsageDetail_20' ) start [2025-02-11 13:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451914', 'tblTempUsageDetail_20' ) end [2025-02-11 13:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451914', 'tblTempVendorCDR_20' ) start [2025-02-11 13:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451914', 'tblTempVendorCDR_20' ) end [2025-02-11 13:03:26] Production.INFO: ProcessCDR(1,14451914,1,1,2) [2025-02-11 13:03:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:03:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451914', 'tblTempUsageDetail_20' ) start [2025-02-11 13:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451914', 'tblTempUsageDetail_20' ) end [2025-02-11 13:03:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:03:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:03:32] Production.INFO: ==15398== Releasing lock... [2025-02-11 13:03:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:03:32] Production.INFO: 67.75 MB #Memory Used# [2025-02-11 13:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:04:06 [end_date_ymd] => 2025-02-11 13:04:06 [RateCDR] => 1 ) [2025-02-11 13:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:04:06' and `end` < '2025-02-11 13:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:04:24] Production.INFO: count ==5323 [2025-02-11 13:04:26] Production.ERROR: pbx CDR StartTime 2025-02-11 10:04:06 - End Time 2025-02-11 13:04:06 [2025-02-11 13:04:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451919', 'tblTempUsageDetail_20' ) start [2025-02-11 13:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451919', 'tblTempUsageDetail_20' ) end [2025-02-11 13:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451919', 'tblTempVendorCDR_20' ) start [2025-02-11 13:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451919', 'tblTempVendorCDR_20' ) end [2025-02-11 13:04:26] Production.INFO: ProcessCDR(1,14451919,1,1,2) [2025-02-11 13:04:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:04:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:04:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:04:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451919', 'tblTempUsageDetail_20' ) start [2025-02-11 13:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451919', 'tblTempUsageDetail_20' ) end [2025-02-11 13:04:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:04:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:04:32] Production.INFO: ==15471== Releasing lock... [2025-02-11 13:04:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:04:32] Production.INFO: 68 MB #Memory Used# [2025-02-11 13:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:05:06 [end_date_ymd] => 2025-02-11 13:05:06 [RateCDR] => 1 ) [2025-02-11 13:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:05:06' and `end` < '2025-02-11 13:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:05:21] Production.INFO: count ==5337 [2025-02-11 13:05:23] Production.ERROR: pbx CDR StartTime 2025-02-11 10:05:06 - End Time 2025-02-11 13:05:06 [2025-02-11 13:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451924', 'tblTempUsageDetail_20' ) start [2025-02-11 13:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451924', 'tblTempUsageDetail_20' ) end [2025-02-11 13:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451924', 'tblTempVendorCDR_20' ) start [2025-02-11 13:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451924', 'tblTempVendorCDR_20' ) end [2025-02-11 13:05:24] Production.INFO: ProcessCDR(1,14451924,1,1,2) [2025-02-11 13:05:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:05:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451924', 'tblTempUsageDetail_20' ) start [2025-02-11 13:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451924', 'tblTempUsageDetail_20' ) end [2025-02-11 13:05:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:05:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:05:29] Production.INFO: ==15542== Releasing lock... [2025-02-11 13:05:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:05:29] Production.INFO: 68 MB #Memory Used# [2025-02-11 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:06:05 [end_date_ymd] => 2025-02-11 13:06:05 [RateCDR] => 1 ) [2025-02-11 13:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:06:05' and `end` < '2025-02-11 13:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:06:23] Production.INFO: count ==5341 [2025-02-11 13:06:26] Production.ERROR: pbx CDR StartTime 2025-02-11 10:06:05 - End Time 2025-02-11 13:06:05 [2025-02-11 13:06:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451929', 'tblTempUsageDetail_20' ) start [2025-02-11 13:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451929', 'tblTempUsageDetail_20' ) end [2025-02-11 13:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451929', 'tblTempVendorCDR_20' ) start [2025-02-11 13:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451929', 'tblTempVendorCDR_20' ) end [2025-02-11 13:06:26] Production.INFO: ProcessCDR(1,14451929,1,1,2) [2025-02-11 13:06:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:06:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:06:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:06:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451929', 'tblTempUsageDetail_20' ) start [2025-02-11 13:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451929', 'tblTempUsageDetail_20' ) end [2025-02-11 13:06:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:06:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:06:32] Production.INFO: ==15612== Releasing lock... [2025-02-11 13:06:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:06:32] Production.INFO: 68 MB #Memory Used# [2025-02-11 13:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:07:06 [end_date_ymd] => 2025-02-11 13:07:06 [RateCDR] => 1 ) [2025-02-11 13:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:07:06' and `end` < '2025-02-11 13:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:07:24] Production.INFO: count ==5324 [2025-02-11 13:07:27] Production.ERROR: pbx CDR StartTime 2025-02-11 10:07:06 - End Time 2025-02-11 13:07:06 [2025-02-11 13:07:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451934', 'tblTempUsageDetail_20' ) start [2025-02-11 13:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451934', 'tblTempUsageDetail_20' ) end [2025-02-11 13:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451934', 'tblTempVendorCDR_20' ) start [2025-02-11 13:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451934', 'tblTempVendorCDR_20' ) end [2025-02-11 13:07:27] Production.INFO: ProcessCDR(1,14451934,1,1,2) [2025-02-11 13:07:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:07:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:07:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:07:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451934', 'tblTempUsageDetail_20' ) start [2025-02-11 13:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451934', 'tblTempUsageDetail_20' ) end [2025-02-11 13:07:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:07:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:07:32] Production.INFO: ==15685== Releasing lock... [2025-02-11 13:07:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:07:32] Production.INFO: 68 MB #Memory Used# [2025-02-11 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:08:05 [end_date_ymd] => 2025-02-11 13:08:05 [RateCDR] => 1 ) [2025-02-11 13:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:08:05' and `end` < '2025-02-11 13:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:08:19] Production.INFO: count ==5330 [2025-02-11 13:08:22] Production.ERROR: pbx CDR StartTime 2025-02-11 10:08:05 - End Time 2025-02-11 13:08:05 [2025-02-11 13:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451939', 'tblTempUsageDetail_20' ) start [2025-02-11 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451939', 'tblTempUsageDetail_20' ) end [2025-02-11 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451939', 'tblTempVendorCDR_20' ) start [2025-02-11 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451939', 'tblTempVendorCDR_20' ) end [2025-02-11 13:08:22] Production.INFO: ProcessCDR(1,14451939,1,1,2) [2025-02-11 13:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451939', 'tblTempUsageDetail_20' ) start [2025-02-11 13:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451939', 'tblTempUsageDetail_20' ) end [2025-02-11 13:08:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:08:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:08:28] Production.INFO: ==15757== Releasing lock... [2025-02-11 13:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:08:28] Production.INFO: 68 MB #Memory Used# [2025-02-11 13:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:09:06 [end_date_ymd] => 2025-02-11 13:09:06 [RateCDR] => 1 ) [2025-02-11 13:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:09:06' and `end` < '2025-02-11 13:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:09:24] Production.INFO: count ==5328 [2025-02-11 13:09:26] Production.ERROR: pbx CDR StartTime 2025-02-11 10:09:06 - End Time 2025-02-11 13:09:06 [2025-02-11 13:09:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451944', 'tblTempUsageDetail_20' ) start [2025-02-11 13:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451944', 'tblTempUsageDetail_20' ) end [2025-02-11 13:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451944', 'tblTempVendorCDR_20' ) start [2025-02-11 13:09:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451944', 'tblTempVendorCDR_20' ) end [2025-02-11 13:09:27] Production.INFO: ProcessCDR(1,14451944,1,1,2) [2025-02-11 13:09:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:09:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:09:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:09:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:09:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451944', 'tblTempUsageDetail_20' ) start [2025-02-11 13:09:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451944', 'tblTempUsageDetail_20' ) end [2025-02-11 13:09:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:09:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:09:32] Production.INFO: ==15830== Releasing lock... [2025-02-11 13:09:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:09:32] Production.INFO: 68 MB #Memory Used# [2025-02-11 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:10:06 [end_date_ymd] => 2025-02-11 13:10:06 [RateCDR] => 1 ) [2025-02-11 13:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:10:06' and `end` < '2025-02-11 13:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:10:27] Production.INFO: count ==5320 [2025-02-11 13:10:30] Production.ERROR: pbx CDR StartTime 2025-02-11 10:10:06 - End Time 2025-02-11 13:10:06 [2025-02-11 13:10:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451950', 'tblTempUsageDetail_20' ) start [2025-02-11 13:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451950', 'tblTempUsageDetail_20' ) end [2025-02-11 13:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451950', 'tblTempVendorCDR_20' ) start [2025-02-11 13:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451950', 'tblTempVendorCDR_20' ) end [2025-02-11 13:10:30] Production.INFO: ProcessCDR(1,14451950,1,1,2) [2025-02-11 13:10:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:10:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:10:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:10:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:10:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451950', 'tblTempUsageDetail_20' ) start [2025-02-11 13:10:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451950', 'tblTempUsageDetail_20' ) end [2025-02-11 13:10:35] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:10:35] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:10:35] Production.INFO: ==15941== Releasing lock... [2025-02-11 13:10:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:10:35] Production.INFO: 67.75 MB #Memory Used# [2025-02-11 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:11:05 [end_date_ymd] => 2025-02-11 13:11:05 [RateCDR] => 1 ) [2025-02-11 13:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:11:05' and `end` < '2025-02-11 13:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:11:21] Production.INFO: count ==5319 [2025-02-11 13:11:24] Production.ERROR: pbx CDR StartTime 2025-02-11 10:11:05 - End Time 2025-02-11 13:11:05 [2025-02-11 13:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451955', 'tblTempUsageDetail_20' ) start [2025-02-11 13:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451955', 'tblTempUsageDetail_20' ) end [2025-02-11 13:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451955', 'tblTempVendorCDR_20' ) start [2025-02-11 13:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451955', 'tblTempVendorCDR_20' ) end [2025-02-11 13:11:24] Production.INFO: ProcessCDR(1,14451955,1,1,2) [2025-02-11 13:11:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:11:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451955', 'tblTempUsageDetail_20' ) start [2025-02-11 13:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451955', 'tblTempUsageDetail_20' ) end [2025-02-11 13:11:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:11:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:11:29] Production.INFO: ==16024== Releasing lock... [2025-02-11 13:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:11:29] Production.INFO: 67.75 MB #Memory Used# [2025-02-11 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:12:05 [end_date_ymd] => 2025-02-11 13:12:05 [RateCDR] => 1 ) [2025-02-11 13:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:12:05' and `end` < '2025-02-11 13:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:12:22] Production.INFO: count ==5289 [2025-02-11 13:12:25] Production.ERROR: pbx CDR StartTime 2025-02-11 10:12:05 - End Time 2025-02-11 13:12:05 [2025-02-11 13:12:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451960', 'tblTempUsageDetail_20' ) start [2025-02-11 13:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451960', 'tblTempUsageDetail_20' ) end [2025-02-11 13:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451960', 'tblTempVendorCDR_20' ) start [2025-02-11 13:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451960', 'tblTempVendorCDR_20' ) end [2025-02-11 13:12:25] Production.INFO: ProcessCDR(1,14451960,1,1,2) [2025-02-11 13:12:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:12:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:12:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:12:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451960', 'tblTempUsageDetail_20' ) start [2025-02-11 13:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451960', 'tblTempUsageDetail_20' ) end [2025-02-11 13:12:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:12:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:12:30] Production.INFO: ==16098== Releasing lock... [2025-02-11 13:12:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:12:30] Production.INFO: 67.75 MB #Memory Used# [2025-02-11 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:13:05 [end_date_ymd] => 2025-02-11 13:13:05 [RateCDR] => 1 ) [2025-02-11 13:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:13:05' and `end` < '2025-02-11 13:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:13:22] Production.INFO: count ==5294 [2025-02-11 13:13:25] Production.ERROR: pbx CDR StartTime 2025-02-11 10:13:05 - End Time 2025-02-11 13:13:05 [2025-02-11 13:13:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451965', 'tblTempUsageDetail_20' ) start [2025-02-11 13:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451965', 'tblTempUsageDetail_20' ) end [2025-02-11 13:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451965', 'tblTempVendorCDR_20' ) start [2025-02-11 13:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451965', 'tblTempVendorCDR_20' ) end [2025-02-11 13:13:25] Production.INFO: ProcessCDR(1,14451965,1,1,2) [2025-02-11 13:13:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:13:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:13:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:13:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451965', 'tblTempUsageDetail_20' ) start [2025-02-11 13:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451965', 'tblTempUsageDetail_20' ) end [2025-02-11 13:13:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:13:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:13:30] Production.INFO: ==16169== Releasing lock... [2025-02-11 13:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:13:30] Production.INFO: 67.75 MB #Memory Used# [2025-02-11 13:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:14:06 [end_date_ymd] => 2025-02-11 13:14:06 [RateCDR] => 1 ) [2025-02-11 13:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:14:06' and `end` < '2025-02-11 13:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:14:24] Production.INFO: count ==5300 [2025-02-11 13:14:26] Production.ERROR: pbx CDR StartTime 2025-02-11 10:14:06 - End Time 2025-02-11 13:14:06 [2025-02-11 13:14:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451970', 'tblTempUsageDetail_20' ) start [2025-02-11 13:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451970', 'tblTempUsageDetail_20' ) end [2025-02-11 13:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451970', 'tblTempVendorCDR_20' ) start [2025-02-11 13:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451970', 'tblTempVendorCDR_20' ) end [2025-02-11 13:14:27] Production.INFO: ProcessCDR(1,14451970,1,1,2) [2025-02-11 13:14:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:14:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:14:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:14:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:14:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451970', 'tblTempUsageDetail_20' ) start [2025-02-11 13:14:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451970', 'tblTempUsageDetail_20' ) end [2025-02-11 13:14:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:14:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:14:32] Production.INFO: ==16240== Releasing lock... [2025-02-11 13:14:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:14:32] Production.INFO: 67.75 MB #Memory Used# [2025-02-11 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:15:05 [end_date_ymd] => 2025-02-11 13:15:05 [RateCDR] => 1 ) [2025-02-11 13:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:15:05' and `end` < '2025-02-11 13:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:15:19] Production.INFO: count ==5323 [2025-02-11 13:15:21] Production.ERROR: pbx CDR StartTime 2025-02-11 10:15:05 - End Time 2025-02-11 13:15:05 [2025-02-11 13:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451975', 'tblTempUsageDetail_20' ) start [2025-02-11 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451975', 'tblTempUsageDetail_20' ) end [2025-02-11 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451975', 'tblTempVendorCDR_20' ) start [2025-02-11 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451975', 'tblTempVendorCDR_20' ) end [2025-02-11 13:15:21] Production.INFO: ProcessCDR(1,14451975,1,1,2) [2025-02-11 13:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451975', 'tblTempUsageDetail_20' ) start [2025-02-11 13:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451975', 'tblTempUsageDetail_20' ) end [2025-02-11 13:15:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:15:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:15:27] Production.INFO: ==16311== Releasing lock... [2025-02-11 13:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:15:27] Production.INFO: 68 MB #Memory Used# [2025-02-11 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:16:05 [end_date_ymd] => 2025-02-11 13:16:05 [RateCDR] => 1 ) [2025-02-11 13:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:16:05' and `end` < '2025-02-11 13:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:16:22] Production.INFO: count ==5297 [2025-02-11 13:16:24] Production.ERROR: pbx CDR StartTime 2025-02-11 10:16:05 - End Time 2025-02-11 13:16:05 [2025-02-11 13:16:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451980', 'tblTempUsageDetail_20' ) start [2025-02-11 13:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451980', 'tblTempUsageDetail_20' ) end [2025-02-11 13:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451980', 'tblTempVendorCDR_20' ) start [2025-02-11 13:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451980', 'tblTempVendorCDR_20' ) end [2025-02-11 13:16:24] Production.INFO: ProcessCDR(1,14451980,1,1,2) [2025-02-11 13:16:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:16:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451980', 'tblTempUsageDetail_20' ) start [2025-02-11 13:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451980', 'tblTempUsageDetail_20' ) end [2025-02-11 13:16:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:16:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:16:29] Production.INFO: ==16384== Releasing lock... [2025-02-11 13:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:16:29] Production.INFO: 67.75 MB #Memory Used# [2025-02-11 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:17:05 [end_date_ymd] => 2025-02-11 13:17:05 [RateCDR] => 1 ) [2025-02-11 13:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:17:05' and `end` < '2025-02-11 13:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:17:26] Production.INFO: count ==5291 [2025-02-11 13:17:29] Production.ERROR: pbx CDR StartTime 2025-02-11 10:17:05 - End Time 2025-02-11 13:17:05 [2025-02-11 13:17:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451985', 'tblTempUsageDetail_20' ) start [2025-02-11 13:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451985', 'tblTempUsageDetail_20' ) end [2025-02-11 13:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451985', 'tblTempVendorCDR_20' ) start [2025-02-11 13:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451985', 'tblTempVendorCDR_20' ) end [2025-02-11 13:17:29] Production.INFO: ProcessCDR(1,14451985,1,1,2) [2025-02-11 13:17:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:17:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:17:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:17:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:17:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451985', 'tblTempUsageDetail_20' ) start [2025-02-11 13:17:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451985', 'tblTempUsageDetail_20' ) end [2025-02-11 13:17:34] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:17:34] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:17:34] Production.INFO: ==16455== Releasing lock... [2025-02-11 13:17:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:17:34] Production.INFO: 67.75 MB #Memory Used# [2025-02-11 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:18:05 [end_date_ymd] => 2025-02-11 13:18:05 [RateCDR] => 1 ) [2025-02-11 13:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:18:05' and `end` < '2025-02-11 13:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:18:24] Production.INFO: count ==5267 [2025-02-11 13:18:27] Production.ERROR: pbx CDR StartTime 2025-02-11 10:18:05 - End Time 2025-02-11 13:18:05 [2025-02-11 13:18:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451990', 'tblTempUsageDetail_20' ) start [2025-02-11 13:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451990', 'tblTempUsageDetail_20' ) end [2025-02-11 13:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451990', 'tblTempVendorCDR_20' ) start [2025-02-11 13:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451990', 'tblTempVendorCDR_20' ) end [2025-02-11 13:18:27] Production.INFO: ProcessCDR(1,14451990,1,1,2) [2025-02-11 13:18:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:18:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:18:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:18:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:18:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451990', 'tblTempUsageDetail_20' ) start [2025-02-11 13:18:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451990', 'tblTempUsageDetail_20' ) end [2025-02-11 13:18:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:18:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:18:32] Production.INFO: ==16526== Releasing lock... [2025-02-11 13:18:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:18:32] Production.INFO: 67.5 MB #Memory Used# [2025-02-11 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:19:05 [end_date_ymd] => 2025-02-11 13:19:05 [RateCDR] => 1 ) [2025-02-11 13:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:19:05' and `end` < '2025-02-11 13:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:19:24] Production.INFO: count ==5254 [2025-02-11 13:19:27] Production.ERROR: pbx CDR StartTime 2025-02-11 10:19:05 - End Time 2025-02-11 13:19:05 [2025-02-11 13:19:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451995', 'tblTempUsageDetail_20' ) start [2025-02-11 13:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14451995', 'tblTempUsageDetail_20' ) end [2025-02-11 13:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451995', 'tblTempVendorCDR_20' ) start [2025-02-11 13:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14451995', 'tblTempVendorCDR_20' ) end [2025-02-11 13:19:27] Production.INFO: ProcessCDR(1,14451995,1,1,2) [2025-02-11 13:19:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14451995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:19:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14451995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:19:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14451995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:19:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14451995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451995', 'tblTempUsageDetail_20' ) start [2025-02-11 13:19:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14451995', 'tblTempUsageDetail_20' ) end [2025-02-11 13:19:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:19:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:19:32] Production.INFO: ==16601== Releasing lock... [2025-02-11 13:19:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:19:32] Production.INFO: 67.25 MB #Memory Used# [2025-02-11 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:20:06 [end_date_ymd] => 2025-02-11 13:20:06 [RateCDR] => 1 ) [2025-02-11 13:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:20:06' and `end` < '2025-02-11 13:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:20:26] Production.INFO: count ==5269 [2025-02-11 13:20:28] Production.ERROR: pbx CDR StartTime 2025-02-11 10:20:06 - End Time 2025-02-11 13:20:06 [2025-02-11 13:20:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452000', 'tblTempUsageDetail_20' ) start [2025-02-11 13:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452000', 'tblTempUsageDetail_20' ) end [2025-02-11 13:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452000', 'tblTempVendorCDR_20' ) start [2025-02-11 13:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452000', 'tblTempVendorCDR_20' ) end [2025-02-11 13:20:29] Production.INFO: ProcessCDR(1,14452000,1,1,2) [2025-02-11 13:20:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:20:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:20:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:20:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:20:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452000', 'tblTempUsageDetail_20' ) start [2025-02-11 13:20:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452000', 'tblTempUsageDetail_20' ) end [2025-02-11 13:20:34] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:20:34] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:20:34] Production.INFO: ==16680== Releasing lock... [2025-02-11 13:20:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:20:34] Production.INFO: 67.5 MB #Memory Used# [2025-02-11 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:21:05 [end_date_ymd] => 2025-02-11 13:21:05 [RateCDR] => 1 ) [2025-02-11 13:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:21:05' and `end` < '2025-02-11 13:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:21:27] Production.INFO: count ==5264 [2025-02-11 13:21:29] Production.ERROR: pbx CDR StartTime 2025-02-11 10:21:05 - End Time 2025-02-11 13:21:05 [2025-02-11 13:21:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452006', 'tblTempUsageDetail_20' ) start [2025-02-11 13:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452006', 'tblTempUsageDetail_20' ) end [2025-02-11 13:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452006', 'tblTempVendorCDR_20' ) start [2025-02-11 13:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452006', 'tblTempVendorCDR_20' ) end [2025-02-11 13:21:29] Production.INFO: ProcessCDR(1,14452006,1,1,2) [2025-02-11 13:21:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:21:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:21:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:21:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:21:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452006', 'tblTempUsageDetail_20' ) start [2025-02-11 13:21:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452006', 'tblTempUsageDetail_20' ) end [2025-02-11 13:21:34] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:21:34] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:21:34] Production.INFO: ==16752== Releasing lock... [2025-02-11 13:21:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:21:34] Production.INFO: 67.5 MB #Memory Used# [2025-02-11 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:22:05 [end_date_ymd] => 2025-02-11 13:22:05 [RateCDR] => 1 ) [2025-02-11 13:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:22:05' and `end` < '2025-02-11 13:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:22:23] Production.INFO: count ==5255 [2025-02-11 13:22:26] Production.ERROR: pbx CDR StartTime 2025-02-11 10:22:05 - End Time 2025-02-11 13:22:05 [2025-02-11 13:22:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452011', 'tblTempUsageDetail_20' ) start [2025-02-11 13:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452011', 'tblTempUsageDetail_20' ) end [2025-02-11 13:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452011', 'tblTempVendorCDR_20' ) start [2025-02-11 13:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452011', 'tblTempVendorCDR_20' ) end [2025-02-11 13:22:26] Production.INFO: ProcessCDR(1,14452011,1,1,2) [2025-02-11 13:22:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:22:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:22:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:22:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452011', 'tblTempUsageDetail_20' ) start [2025-02-11 13:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452011', 'tblTempUsageDetail_20' ) end [2025-02-11 13:22:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:22:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:22:32] Production.INFO: ==16821== Releasing lock... [2025-02-11 13:22:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:22:32] Production.INFO: 67.25 MB #Memory Used# [2025-02-11 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:23:05 [end_date_ymd] => 2025-02-11 13:23:05 [RateCDR] => 1 ) [2025-02-11 13:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:23:05' and `end` < '2025-02-11 13:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:23:26] Production.INFO: count ==5259 [2025-02-11 13:23:28] Production.ERROR: pbx CDR StartTime 2025-02-11 10:23:05 - End Time 2025-02-11 13:23:05 [2025-02-11 13:23:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452016', 'tblTempUsageDetail_20' ) start [2025-02-11 13:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452016', 'tblTempUsageDetail_20' ) end [2025-02-11 13:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452016', 'tblTempVendorCDR_20' ) start [2025-02-11 13:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452016', 'tblTempVendorCDR_20' ) end [2025-02-11 13:23:28] Production.INFO: ProcessCDR(1,14452016,1,1,2) [2025-02-11 13:23:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:23:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:23:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:23:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:23:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452016', 'tblTempUsageDetail_20' ) start [2025-02-11 13:23:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452016', 'tblTempUsageDetail_20' ) end [2025-02-11 13:23:34] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:23:34] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:23:34] Production.INFO: ==16894== Releasing lock... [2025-02-11 13:23:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:23:34] Production.INFO: 67.5 MB #Memory Used# [2025-02-11 13:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:24:06 [end_date_ymd] => 2025-02-11 13:24:06 [RateCDR] => 1 ) [2025-02-11 13:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:24:06' and `end` < '2025-02-11 13:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:24:31] Production.INFO: count ==5264 [2025-02-11 13:24:33] Production.ERROR: pbx CDR StartTime 2025-02-11 10:24:06 - End Time 2025-02-11 13:24:06 [2025-02-11 13:24:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:24:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452021', 'tblTempUsageDetail_20' ) start [2025-02-11 13:24:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452021', 'tblTempUsageDetail_20' ) end [2025-02-11 13:24:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452021', 'tblTempVendorCDR_20' ) start [2025-02-11 13:24:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452021', 'tblTempVendorCDR_20' ) end [2025-02-11 13:24:34] Production.INFO: ProcessCDR(1,14452021,1,1,2) [2025-02-11 13:24:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:24:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:24:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:24:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:24:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452021', 'tblTempUsageDetail_20' ) start [2025-02-11 13:24:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452021', 'tblTempUsageDetail_20' ) end [2025-02-11 13:24:39] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:24:39] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:24:39] Production.INFO: ==16965== Releasing lock... [2025-02-11 13:24:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:24:39] Production.INFO: 67.5 MB #Memory Used# [2025-02-11 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:25:05 [end_date_ymd] => 2025-02-11 13:25:05 [RateCDR] => 1 ) [2025-02-11 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:25:05' and `end` < '2025-02-11 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:25:26] Production.INFO: count ==5261 [2025-02-11 13:25:28] Production.ERROR: pbx CDR StartTime 2025-02-11 10:25:05 - End Time 2025-02-11 13:25:05 [2025-02-11 13:25:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452026', 'tblTempUsageDetail_20' ) start [2025-02-11 13:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452026', 'tblTempUsageDetail_20' ) end [2025-02-11 13:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452026', 'tblTempVendorCDR_20' ) start [2025-02-11 13:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452026', 'tblTempVendorCDR_20' ) end [2025-02-11 13:25:28] Production.INFO: ProcessCDR(1,14452026,1,1,2) [2025-02-11 13:25:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:25:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:25:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452026', 'tblTempUsageDetail_20' ) start [2025-02-11 13:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452026', 'tblTempUsageDetail_20' ) end [2025-02-11 13:25:34] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:25:34] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:25:34] Production.INFO: ==17041== Releasing lock... [2025-02-11 13:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:25:34] Production.INFO: 67.5 MB #Memory Used# [2025-02-11 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:26:05 [end_date_ymd] => 2025-02-11 13:26:05 [RateCDR] => 1 ) [2025-02-11 13:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:26:05' and `end` < '2025-02-11 13:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:26:19] Production.INFO: count ==5260 [2025-02-11 13:26:22] Production.ERROR: pbx CDR StartTime 2025-02-11 10:26:05 - End Time 2025-02-11 13:26:05 [2025-02-11 13:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452031', 'tblTempUsageDetail_20' ) start [2025-02-11 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452031', 'tblTempUsageDetail_20' ) end [2025-02-11 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452031', 'tblTempVendorCDR_20' ) start [2025-02-11 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452031', 'tblTempVendorCDR_20' ) end [2025-02-11 13:26:22] Production.INFO: ProcessCDR(1,14452031,1,1,2) [2025-02-11 13:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452031', 'tblTempUsageDetail_20' ) start [2025-02-11 13:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452031', 'tblTempUsageDetail_20' ) end [2025-02-11 13:26:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:26:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:26:26] Production.INFO: ==17153== Releasing lock... [2025-02-11 13:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:26:26] Production.INFO: 67.5 MB #Memory Used# [2025-02-11 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:27:05 [end_date_ymd] => 2025-02-11 13:27:05 [RateCDR] => 1 ) [2025-02-11 13:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:27:05' and `end` < '2025-02-11 13:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:27:21] Production.INFO: count ==5265 [2025-02-11 13:27:23] Production.ERROR: pbx CDR StartTime 2025-02-11 10:27:05 - End Time 2025-02-11 13:27:05 [2025-02-11 13:27:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452036', 'tblTempUsageDetail_20' ) start [2025-02-11 13:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452036', 'tblTempUsageDetail_20' ) end [2025-02-11 13:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452036', 'tblTempVendorCDR_20' ) start [2025-02-11 13:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452036', 'tblTempVendorCDR_20' ) end [2025-02-11 13:27:23] Production.INFO: ProcessCDR(1,14452036,1,1,2) [2025-02-11 13:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452036', 'tblTempUsageDetail_20' ) start [2025-02-11 13:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452036', 'tblTempUsageDetail_20' ) end [2025-02-11 13:27:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:27:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:27:28] Production.INFO: ==17226== Releasing lock... [2025-02-11 13:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:27:28] Production.INFO: 67.5 MB #Memory Used# [2025-02-11 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:28:05 [end_date_ymd] => 2025-02-11 13:28:05 [RateCDR] => 1 ) [2025-02-11 13:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:28:05' and `end` < '2025-02-11 13:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:28:23] Production.INFO: count ==5265 [2025-02-11 13:28:25] Production.ERROR: pbx CDR StartTime 2025-02-11 10:28:05 - End Time 2025-02-11 13:28:05 [2025-02-11 13:28:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452041', 'tblTempUsageDetail_20' ) start [2025-02-11 13:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452041', 'tblTempUsageDetail_20' ) end [2025-02-11 13:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452041', 'tblTempVendorCDR_20' ) start [2025-02-11 13:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452041', 'tblTempVendorCDR_20' ) end [2025-02-11 13:28:25] Production.INFO: ProcessCDR(1,14452041,1,1,2) [2025-02-11 13:28:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:28:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:28:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:28:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452041', 'tblTempUsageDetail_20' ) start [2025-02-11 13:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452041', 'tblTempUsageDetail_20' ) end [2025-02-11 13:28:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:28:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:28:31] Production.INFO: ==17296== Releasing lock... [2025-02-11 13:28:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:28:31] Production.INFO: 67.5 MB #Memory Used# [2025-02-11 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:29:05 [end_date_ymd] => 2025-02-11 13:29:05 [RateCDR] => 1 ) [2025-02-11 13:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:29:05' and `end` < '2025-02-11 13:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:29:26] Production.INFO: count ==5260 [2025-02-11 13:29:29] Production.ERROR: pbx CDR StartTime 2025-02-11 10:29:05 - End Time 2025-02-11 13:29:05 [2025-02-11 13:29:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452046', 'tblTempUsageDetail_20' ) start [2025-02-11 13:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452046', 'tblTempUsageDetail_20' ) end [2025-02-11 13:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452046', 'tblTempVendorCDR_20' ) start [2025-02-11 13:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452046', 'tblTempVendorCDR_20' ) end [2025-02-11 13:29:29] Production.INFO: ProcessCDR(1,14452046,1,1,2) [2025-02-11 13:29:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:29:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:29:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:29:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:29:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452046', 'tblTempUsageDetail_20' ) start [2025-02-11 13:29:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452046', 'tblTempUsageDetail_20' ) end [2025-02-11 13:29:34] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:29:34] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:29:34] Production.INFO: ==17367== Releasing lock... [2025-02-11 13:29:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:29:34] Production.INFO: 67.5 MB #Memory Used# [2025-02-11 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:30:06 [end_date_ymd] => 2025-02-11 13:30:06 [RateCDR] => 1 ) [2025-02-11 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-02-11 10:30:06' and `end` < '2025-02-11 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-02-11 13:30:29] Production.INFO: count ==5247 [2025-02-11 13:30:32] Production.ERROR: pbx CDR StartTime 2025-02-11 10:30:06 - End Time 2025-02-11 13:30:06 [2025-02-11 13:30:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452052', 'tblTempUsageDetail_20' ) start [2025-02-11 13:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452052', 'tblTempUsageDetail_20' ) end [2025-02-11 13:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452052', 'tblTempVendorCDR_20' ) start [2025-02-11 13:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452052', 'tblTempVendorCDR_20' ) end [2025-02-11 13:30:32] Production.INFO: ProcessCDR(1,14452052,1,1,2) [2025-02-11 13:30:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:30:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:30:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:30:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:30:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452052', 'tblTempUsageDetail_20' ) start [2025-02-11 13:30:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452052', 'tblTempUsageDetail_20' ) end [2025-02-11 13:30:38] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:30:38] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:30:38] Production.INFO: ==17443== Releasing lock... [2025-02-11 13:30:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:30:38] Production.INFO: 67.25 MB #Memory Used# [2025-02-11 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:31:05 [end_date_ymd] => 2025-02-11 13:31:05 [RateCDR] => 1 ) [2025-02-11 13:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:31:05' and `end` < '2025-02-11 13:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:31:26] Production.INFO: count ==5278 [2025-02-11 13:31:28] Production.ERROR: pbx CDR StartTime 2025-02-11 10:31:05 - End Time 2025-02-11 13:31:05 [2025-02-11 13:31:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452057', 'tblTempUsageDetail_20' ) start [2025-02-11 13:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452057', 'tblTempUsageDetail_20' ) end [2025-02-11 13:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452057', 'tblTempVendorCDR_20' ) start [2025-02-11 13:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452057', 'tblTempVendorCDR_20' ) end [2025-02-11 13:31:28] Production.INFO: ProcessCDR(1,14452057,1,1,2) [2025-02-11 13:31:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:31:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:31:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:31:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:31:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452057', 'tblTempUsageDetail_20' ) start [2025-02-11 13:31:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452057', 'tblTempUsageDetail_20' ) end [2025-02-11 13:31:34] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:31:34] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:31:34] Production.INFO: ==17516== Releasing lock... [2025-02-11 13:31:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:31:34] Production.INFO: 67.5 MB #Memory Used# [2025-02-11 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:32:05 [end_date_ymd] => 2025-02-11 13:32:05 [RateCDR] => 1 ) [2025-02-11 13:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:32:05' and `end` < '2025-02-11 13:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:32:27] Production.INFO: count ==5290 [2025-02-11 13:32:29] Production.ERROR: pbx CDR StartTime 2025-02-11 10:32:05 - End Time 2025-02-11 13:32:05 [2025-02-11 13:32:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452062', 'tblTempUsageDetail_20' ) start [2025-02-11 13:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452062', 'tblTempUsageDetail_20' ) end [2025-02-11 13:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452062', 'tblTempVendorCDR_20' ) start [2025-02-11 13:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452062', 'tblTempVendorCDR_20' ) end [2025-02-11 13:32:30] Production.INFO: ProcessCDR(1,14452062,1,1,2) [2025-02-11 13:32:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:32:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:32:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:32:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:32:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452062', 'tblTempUsageDetail_20' ) start [2025-02-11 13:32:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452062', 'tblTempUsageDetail_20' ) end [2025-02-11 13:32:36] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:32:36] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:32:36] Production.INFO: ==17589== Releasing lock... [2025-02-11 13:32:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:32:36] Production.INFO: 67.75 MB #Memory Used# [2025-02-11 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:33:05 [end_date_ymd] => 2025-02-11 13:33:05 [RateCDR] => 1 ) [2025-02-11 13:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:33:05' and `end` < '2025-02-11 13:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:33:30] Production.INFO: count ==5285 [2025-02-11 13:33:33] Production.ERROR: pbx CDR StartTime 2025-02-11 10:33:05 - End Time 2025-02-11 13:33:05 [2025-02-11 13:33:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:33:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452067', 'tblTempUsageDetail_20' ) start [2025-02-11 13:33:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452067', 'tblTempUsageDetail_20' ) end [2025-02-11 13:33:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452067', 'tblTempVendorCDR_20' ) start [2025-02-11 13:33:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452067', 'tblTempVendorCDR_20' ) end [2025-02-11 13:33:33] Production.INFO: ProcessCDR(1,14452067,1,1,2) [2025-02-11 13:33:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:33:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:33:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:33:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:33:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452067', 'tblTempUsageDetail_20' ) start [2025-02-11 13:33:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452067', 'tblTempUsageDetail_20' ) end [2025-02-11 13:33:38] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:33:38] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:33:38] Production.INFO: ==17659== Releasing lock... [2025-02-11 13:33:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:33:38] Production.INFO: 67.5 MB #Memory Used# [2025-02-11 13:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:34:06 [end_date_ymd] => 2025-02-11 13:34:06 [RateCDR] => 1 ) [2025-02-11 13:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:34:06' and `end` < '2025-02-11 13:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:34:24] Production.INFO: count ==5277 [2025-02-11 13:34:27] Production.ERROR: pbx CDR StartTime 2025-02-11 10:34:06 - End Time 2025-02-11 13:34:06 [2025-02-11 13:34:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452072', 'tblTempUsageDetail_20' ) start [2025-02-11 13:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452072', 'tblTempUsageDetail_20' ) end [2025-02-11 13:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452072', 'tblTempVendorCDR_20' ) start [2025-02-11 13:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452072', 'tblTempVendorCDR_20' ) end [2025-02-11 13:34:27] Production.INFO: ProcessCDR(1,14452072,1,1,2) [2025-02-11 13:34:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:34:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:34:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:34:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452072', 'tblTempUsageDetail_20' ) start [2025-02-11 13:34:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452072', 'tblTempUsageDetail_20' ) end [2025-02-11 13:34:33] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:34:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:34:33] Production.INFO: ==17729== Releasing lock... [2025-02-11 13:34:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:34:33] Production.INFO: 67.5 MB #Memory Used# [2025-02-11 13:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:35:04 [end_date_ymd] => 2025-02-11 13:35:04 [RateCDR] => 1 ) [2025-02-11 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-02-11 10:35:04' and `end` < '2025-02-11 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-02-11 13:35:24] Production.INFO: count ==5282 [2025-02-11 13:35:27] Production.ERROR: pbx CDR StartTime 2025-02-11 10:35:04 - End Time 2025-02-11 13:35:04 [2025-02-11 13:35:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452077', 'tblTempUsageDetail_20' ) start [2025-02-11 13:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452077', 'tblTempUsageDetail_20' ) end [2025-02-11 13:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452077', 'tblTempVendorCDR_20' ) start [2025-02-11 13:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452077', 'tblTempVendorCDR_20' ) end [2025-02-11 13:35:27] Production.INFO: ProcessCDR(1,14452077,1,1,2) [2025-02-11 13:35:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:35:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:35:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:35:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452077', 'tblTempUsageDetail_20' ) start [2025-02-11 13:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452077', 'tblTempUsageDetail_20' ) end [2025-02-11 13:35:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:35:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:35:31] Production.INFO: ==17801== Releasing lock... [2025-02-11 13:35:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:35:31] Production.INFO: 67.5 MB #Memory Used# [2025-02-11 13:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:36:06 [end_date_ymd] => 2025-02-11 13:36:06 [RateCDR] => 1 ) [2025-02-11 13:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:36:06' and `end` < '2025-02-11 13:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:36:23] Production.INFO: count ==5292 [2025-02-11 13:36:25] Production.ERROR: pbx CDR StartTime 2025-02-11 10:36:06 - End Time 2025-02-11 13:36:06 [2025-02-11 13:36:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452082', 'tblTempUsageDetail_20' ) start [2025-02-11 13:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452082', 'tblTempUsageDetail_20' ) end [2025-02-11 13:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452082', 'tblTempVendorCDR_20' ) start [2025-02-11 13:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452082', 'tblTempVendorCDR_20' ) end [2025-02-11 13:36:26] Production.INFO: ProcessCDR(1,14452082,1,1,2) [2025-02-11 13:36:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:36:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:36:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:36:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452082', 'tblTempUsageDetail_20' ) start [2025-02-11 13:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452082', 'tblTempUsageDetail_20' ) end [2025-02-11 13:36:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:36:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:36:31] Production.INFO: ==17873== Releasing lock... [2025-02-11 13:36:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:36:31] Production.INFO: 67.75 MB #Memory Used# [2025-02-11 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:37:05 [end_date_ymd] => 2025-02-11 13:37:05 [RateCDR] => 1 ) [2025-02-11 13:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:37:05' and `end` < '2025-02-11 13:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:37:21] Production.INFO: count ==5270 [2025-02-11 13:37:24] Production.ERROR: pbx CDR StartTime 2025-02-11 10:37:05 - End Time 2025-02-11 13:37:05 [2025-02-11 13:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452087', 'tblTempUsageDetail_20' ) start [2025-02-11 13:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452087', 'tblTempUsageDetail_20' ) end [2025-02-11 13:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452087', 'tblTempVendorCDR_20' ) start [2025-02-11 13:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452087', 'tblTempVendorCDR_20' ) end [2025-02-11 13:37:24] Production.INFO: ProcessCDR(1,14452087,1,1,2) [2025-02-11 13:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452087', 'tblTempUsageDetail_20' ) start [2025-02-11 13:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452087', 'tblTempUsageDetail_20' ) end [2025-02-11 13:37:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:37:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:37:29] Production.INFO: ==17943== Releasing lock... [2025-02-11 13:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:37:29] Production.INFO: 67.5 MB #Memory Used# [2025-02-11 13:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:38:06 [end_date_ymd] => 2025-02-11 13:38:06 [RateCDR] => 1 ) [2025-02-11 13:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:38:06' and `end` < '2025-02-11 13:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:38:24] Production.INFO: count ==5286 [2025-02-11 13:38:27] Production.ERROR: pbx CDR StartTime 2025-02-11 10:38:06 - End Time 2025-02-11 13:38:06 [2025-02-11 13:38:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452092', 'tblTempUsageDetail_20' ) start [2025-02-11 13:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452092', 'tblTempUsageDetail_20' ) end [2025-02-11 13:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452092', 'tblTempVendorCDR_20' ) start [2025-02-11 13:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452092', 'tblTempVendorCDR_20' ) end [2025-02-11 13:38:27] Production.INFO: ProcessCDR(1,14452092,1,1,2) [2025-02-11 13:38:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:38:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:38:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:38:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452092', 'tblTempUsageDetail_20' ) start [2025-02-11 13:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452092', 'tblTempUsageDetail_20' ) end [2025-02-11 13:38:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:38:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:38:32] Production.INFO: ==18021== Releasing lock... [2025-02-11 13:38:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:38:32] Production.INFO: 67.5 MB #Memory Used# [2025-02-11 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:39:05 [end_date_ymd] => 2025-02-11 13:39:05 [RateCDR] => 1 ) [2025-02-11 13:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:39:05' and `end` < '2025-02-11 13:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:39:20] Production.INFO: count ==5270 [2025-02-11 13:39:22] Production.ERROR: pbx CDR StartTime 2025-02-11 10:39:05 - End Time 2025-02-11 13:39:05 [2025-02-11 13:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452097', 'tblTempUsageDetail_20' ) start [2025-02-11 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452097', 'tblTempUsageDetail_20' ) end [2025-02-11 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452097', 'tblTempVendorCDR_20' ) start [2025-02-11 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452097', 'tblTempVendorCDR_20' ) end [2025-02-11 13:39:22] Production.INFO: ProcessCDR(1,14452097,1,1,2) [2025-02-11 13:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452097', 'tblTempUsageDetail_20' ) start [2025-02-11 13:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452097', 'tblTempUsageDetail_20' ) end [2025-02-11 13:39:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:39:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:39:28] Production.INFO: ==18096== Releasing lock... [2025-02-11 13:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:39:28] Production.INFO: 67.5 MB #Memory Used# [2025-02-11 13:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:40:07 [end_date_ymd] => 2025-02-11 13:40:07 [RateCDR] => 1 ) [2025-02-11 13:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:40:07' and `end` < '2025-02-11 13:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:40:21] Production.INFO: count ==5262 [2025-02-11 13:40:23] Production.ERROR: pbx CDR StartTime 2025-02-11 10:40:07 - End Time 2025-02-11 13:40:07 [2025-02-11 13:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452103', 'tblTempUsageDetail_20' ) start [2025-02-11 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452103', 'tblTempUsageDetail_20' ) end [2025-02-11 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452103', 'tblTempVendorCDR_20' ) start [2025-02-11 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452103', 'tblTempVendorCDR_20' ) end [2025-02-11 13:40:23] Production.INFO: ProcessCDR(1,14452103,1,1,2) [2025-02-11 13:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452103', 'tblTempUsageDetail_20' ) start [2025-02-11 13:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452103', 'tblTempUsageDetail_20' ) end [2025-02-11 13:40:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:40:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:40:29] Production.INFO: ==18174== Releasing lock... [2025-02-11 13:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:40:29] Production.INFO: 67.5 MB #Memory Used# [2025-02-11 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:41:05 [end_date_ymd] => 2025-02-11 13:41:05 [RateCDR] => 1 ) [2025-02-11 13:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:41:05' and `end` < '2025-02-11 13:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:41:21] Production.INFO: count ==5265 [2025-02-11 13:41:24] Production.ERROR: pbx CDR StartTime 2025-02-11 10:41:05 - End Time 2025-02-11 13:41:05 [2025-02-11 13:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452108', 'tblTempUsageDetail_20' ) start [2025-02-11 13:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452108', 'tblTempUsageDetail_20' ) end [2025-02-11 13:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452108', 'tblTempVendorCDR_20' ) start [2025-02-11 13:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452108', 'tblTempVendorCDR_20' ) end [2025-02-11 13:41:24] Production.INFO: ProcessCDR(1,14452108,1,1,2) [2025-02-11 13:41:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:41:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:41:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:41:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452108', 'tblTempUsageDetail_20' ) start [2025-02-11 13:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452108', 'tblTempUsageDetail_20' ) end [2025-02-11 13:41:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:41:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:41:30] Production.INFO: ==18288== Releasing lock... [2025-02-11 13:41:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:41:30] Production.INFO: 67.5 MB #Memory Used# [2025-02-11 13:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:42:06 [end_date_ymd] => 2025-02-11 13:42:06 [RateCDR] => 1 ) [2025-02-11 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-02-11 10:42:06' and `end` < '2025-02-11 13:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:42:19] Production.INFO: count ==5271 [2025-02-11 13:42:22] Production.ERROR: pbx CDR StartTime 2025-02-11 10:42:06 - End Time 2025-02-11 13:42:06 [2025-02-11 13:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452113', 'tblTempUsageDetail_20' ) start [2025-02-11 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452113', 'tblTempUsageDetail_20' ) end [2025-02-11 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452113', 'tblTempVendorCDR_20' ) start [2025-02-11 13:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452113', 'tblTempVendorCDR_20' ) end [2025-02-11 13:42:22] Production.INFO: ProcessCDR(1,14452113,1,1,2) [2025-02-11 13:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452113', 'tblTempUsageDetail_20' ) start [2025-02-11 13:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452113', 'tblTempUsageDetail_20' ) end [2025-02-11 13:42:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:42:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:42:28] Production.INFO: ==18360== Releasing lock... [2025-02-11 13:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:42:28] Production.INFO: 67.5 MB #Memory Used# [2025-02-11 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:43:05 [end_date_ymd] => 2025-02-11 13:43:05 [RateCDR] => 1 ) [2025-02-11 13:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:43:05' and `end` < '2025-02-11 13:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:43:19] Production.INFO: count ==5281 [2025-02-11 13:43:21] Production.ERROR: pbx CDR StartTime 2025-02-11 10:43:05 - End Time 2025-02-11 13:43:05 [2025-02-11 13:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452118', 'tblTempUsageDetail_20' ) start [2025-02-11 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452118', 'tblTempUsageDetail_20' ) end [2025-02-11 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452118', 'tblTempVendorCDR_20' ) start [2025-02-11 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452118', 'tblTempVendorCDR_20' ) end [2025-02-11 13:43:22] Production.INFO: ProcessCDR(1,14452118,1,1,2) [2025-02-11 13:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452118', 'tblTempUsageDetail_20' ) start [2025-02-11 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452118', 'tblTempUsageDetail_20' ) end [2025-02-11 13:43:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:43:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:43:27] Production.INFO: ==18431== Releasing lock... [2025-02-11 13:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:43:27] Production.INFO: 67.5 MB #Memory Used# [2025-02-11 13:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:44:06 [end_date_ymd] => 2025-02-11 13:44:06 [RateCDR] => 1 ) [2025-02-11 13:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:44:06' and `end` < '2025-02-11 13:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:44:22] Production.INFO: count ==5281 [2025-02-11 13:44:24] Production.ERROR: pbx CDR StartTime 2025-02-11 10:44:06 - End Time 2025-02-11 13:44:06 [2025-02-11 13:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452123', 'tblTempUsageDetail_20' ) start [2025-02-11 13:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452123', 'tblTempUsageDetail_20' ) end [2025-02-11 13:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452123', 'tblTempVendorCDR_20' ) start [2025-02-11 13:44:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452123', 'tblTempVendorCDR_20' ) end [2025-02-11 13:44:25] Production.INFO: ProcessCDR(1,14452123,1,1,2) [2025-02-11 13:44:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:44:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:44:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:44:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452123', 'tblTempUsageDetail_20' ) start [2025-02-11 13:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452123', 'tblTempUsageDetail_20' ) end [2025-02-11 13:44:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:44:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:44:30] Production.INFO: ==18504== Releasing lock... [2025-02-11 13:44:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:44:30] Production.INFO: 67.5 MB #Memory Used# [2025-02-11 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:45:05 [end_date_ymd] => 2025-02-11 13:45:05 [RateCDR] => 1 ) [2025-02-11 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-02-11 10:45:05' and `end` < '2025-02-11 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-02-11 13:45:27] Production.INFO: count ==5278 [2025-02-11 13:45:29] Production.ERROR: pbx CDR StartTime 2025-02-11 10:45:05 - End Time 2025-02-11 13:45:05 [2025-02-11 13:45:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452128', 'tblTempUsageDetail_20' ) start [2025-02-11 13:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452128', 'tblTempUsageDetail_20' ) end [2025-02-11 13:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452128', 'tblTempVendorCDR_20' ) start [2025-02-11 13:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452128', 'tblTempVendorCDR_20' ) end [2025-02-11 13:45:29] Production.INFO: ProcessCDR(1,14452128,1,1,2) [2025-02-11 13:45:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:45:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:45:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:45:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:45:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452128', 'tblTempUsageDetail_20' ) start [2025-02-11 13:45:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452128', 'tblTempUsageDetail_20' ) end [2025-02-11 13:45:34] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:45:34] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:45:34] Production.INFO: ==18578== Releasing lock... [2025-02-11 13:45:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:45:34] Production.INFO: 67.5 MB #Memory Used# [2025-02-11 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:46:05 [end_date_ymd] => 2025-02-11 13:46:05 [RateCDR] => 1 ) [2025-02-11 13:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:46:05' and `end` < '2025-02-11 13:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:46:24] Production.INFO: count ==5279 [2025-02-11 13:46:27] Production.ERROR: pbx CDR StartTime 2025-02-11 10:46:05 - End Time 2025-02-11 13:46:05 [2025-02-11 13:46:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452133', 'tblTempUsageDetail_20' ) start [2025-02-11 13:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452133', 'tblTempUsageDetail_20' ) end [2025-02-11 13:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452133', 'tblTempVendorCDR_20' ) start [2025-02-11 13:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452133', 'tblTempVendorCDR_20' ) end [2025-02-11 13:46:27] Production.INFO: ProcessCDR(1,14452133,1,1,2) [2025-02-11 13:46:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:46:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:46:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:46:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:46:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452133', 'tblTempUsageDetail_20' ) start [2025-02-11 13:46:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452133', 'tblTempUsageDetail_20' ) end [2025-02-11 13:46:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:46:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:46:32] Production.INFO: ==18650== Releasing lock... [2025-02-11 13:46:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:46:32] Production.INFO: 67.5 MB #Memory Used# [2025-02-11 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:47:05 [end_date_ymd] => 2025-02-11 13:47:05 [RateCDR] => 1 ) [2025-02-11 13:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:47:05' and `end` < '2025-02-11 13:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:47:20] Production.INFO: count ==5299 [2025-02-11 13:47:23] Production.ERROR: pbx CDR StartTime 2025-02-11 10:47:05 - End Time 2025-02-11 13:47:05 [2025-02-11 13:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452138', 'tblTempUsageDetail_20' ) start [2025-02-11 13:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452138', 'tblTempUsageDetail_20' ) end [2025-02-11 13:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452138', 'tblTempVendorCDR_20' ) start [2025-02-11 13:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452138', 'tblTempVendorCDR_20' ) end [2025-02-11 13:47:23] Production.INFO: ProcessCDR(1,14452138,1,1,2) [2025-02-11 13:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452138', 'tblTempUsageDetail_20' ) start [2025-02-11 13:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452138', 'tblTempUsageDetail_20' ) end [2025-02-11 13:47:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:47:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:47:28] Production.INFO: ==18720== Releasing lock... [2025-02-11 13:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:47:28] Production.INFO: 67.75 MB #Memory Used# [2025-02-11 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:48:05 [end_date_ymd] => 2025-02-11 13:48:05 [RateCDR] => 1 ) [2025-02-11 13:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:48:05' and `end` < '2025-02-11 13:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:48:20] Production.INFO: count ==5305 [2025-02-11 13:48:23] Production.ERROR: pbx CDR StartTime 2025-02-11 10:48:05 - End Time 2025-02-11 13:48:05 [2025-02-11 13:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452143', 'tblTempUsageDetail_20' ) start [2025-02-11 13:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452143', 'tblTempUsageDetail_20' ) end [2025-02-11 13:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452143', 'tblTempVendorCDR_20' ) start [2025-02-11 13:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452143', 'tblTempVendorCDR_20' ) end [2025-02-11 13:48:23] Production.INFO: ProcessCDR(1,14452143,1,1,2) [2025-02-11 13:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452143', 'tblTempUsageDetail_20' ) start [2025-02-11 13:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452143', 'tblTempUsageDetail_20' ) end [2025-02-11 13:48:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:48:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:48:28] Production.INFO: ==18793== Releasing lock... [2025-02-11 13:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:48:28] Production.INFO: 67.75 MB #Memory Used# [2025-02-11 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:49:05 [end_date_ymd] => 2025-02-11 13:49:05 [RateCDR] => 1 ) [2025-02-11 13:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:49:05' and `end` < '2025-02-11 13:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:49:21] Production.INFO: count ==5310 [2025-02-11 13:49:23] Production.ERROR: pbx CDR StartTime 2025-02-11 10:49:05 - End Time 2025-02-11 13:49:05 [2025-02-11 13:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452148', 'tblTempUsageDetail_20' ) start [2025-02-11 13:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452148', 'tblTempUsageDetail_20' ) end [2025-02-11 13:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452148', 'tblTempVendorCDR_20' ) start [2025-02-11 13:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452148', 'tblTempVendorCDR_20' ) end [2025-02-11 13:49:23] Production.INFO: ProcessCDR(1,14452148,1,1,2) [2025-02-11 13:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452148', 'tblTempUsageDetail_20' ) start [2025-02-11 13:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452148', 'tblTempUsageDetail_20' ) end [2025-02-11 13:49:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:49:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:49:28] Production.INFO: ==18864== Releasing lock... [2025-02-11 13:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:49:28] Production.INFO: 67.75 MB #Memory Used# [2025-02-11 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:50:06 [end_date_ymd] => 2025-02-11 13:50:06 [RateCDR] => 1 ) [2025-02-11 13:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:50:06' and `end` < '2025-02-11 13:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:50:22] Production.INFO: count ==5291 [2025-02-11 13:50:24] Production.ERROR: pbx CDR StartTime 2025-02-11 10:50:06 - End Time 2025-02-11 13:50:06 [2025-02-11 13:50:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452154', 'tblTempUsageDetail_20' ) start [2025-02-11 13:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452154', 'tblTempUsageDetail_20' ) end [2025-02-11 13:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452154', 'tblTempVendorCDR_20' ) start [2025-02-11 13:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452154', 'tblTempVendorCDR_20' ) end [2025-02-11 13:50:25] Production.INFO: ProcessCDR(1,14452154,1,1,2) [2025-02-11 13:50:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:50:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:50:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452154', 'tblTempUsageDetail_20' ) start [2025-02-11 13:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452154', 'tblTempUsageDetail_20' ) end [2025-02-11 13:50:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:50:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:50:30] Production.INFO: ==18936== Releasing lock... [2025-02-11 13:50:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:50:30] Production.INFO: 67.5 MB #Memory Used# [2025-02-11 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:51:05 [end_date_ymd] => 2025-02-11 13:51:05 [RateCDR] => 1 ) [2025-02-11 13:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:51:05' and `end` < '2025-02-11 13:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:51:24] Production.INFO: count ==5241 [2025-02-11 13:51:27] Production.ERROR: pbx CDR StartTime 2025-02-11 10:51:05 - End Time 2025-02-11 13:51:05 [2025-02-11 13:51:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452159', 'tblTempUsageDetail_20' ) start [2025-02-11 13:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452159', 'tblTempUsageDetail_20' ) end [2025-02-11 13:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452159', 'tblTempVendorCDR_20' ) start [2025-02-11 13:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452159', 'tblTempVendorCDR_20' ) end [2025-02-11 13:51:27] Production.INFO: ProcessCDR(1,14452159,1,1,2) [2025-02-11 13:51:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:51:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:51:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:51:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:51:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452159', 'tblTempUsageDetail_20' ) start [2025-02-11 13:51:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452159', 'tblTempUsageDetail_20' ) end [2025-02-11 13:51:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:51:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:51:32] Production.INFO: ==19012== Releasing lock... [2025-02-11 13:51:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:51:32] Production.INFO: 67.25 MB #Memory Used# [2025-02-11 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:52:05 [end_date_ymd] => 2025-02-11 13:52:05 [RateCDR] => 1 ) [2025-02-11 13:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:52:05' and `end` < '2025-02-11 13:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:52:28] Production.INFO: count ==5230 [2025-02-11 13:52:31] Production.ERROR: pbx CDR StartTime 2025-02-11 10:52:05 - End Time 2025-02-11 13:52:05 [2025-02-11 13:52:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:52:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452164', 'tblTempUsageDetail_20' ) start [2025-02-11 13:52:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452164', 'tblTempUsageDetail_20' ) end [2025-02-11 13:52:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452164', 'tblTempVendorCDR_20' ) start [2025-02-11 13:52:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452164', 'tblTempVendorCDR_20' ) end [2025-02-11 13:52:31] Production.INFO: ProcessCDR(1,14452164,1,1,2) [2025-02-11 13:52:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:52:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:52:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:52:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:52:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452164', 'tblTempUsageDetail_20' ) start [2025-02-11 13:52:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452164', 'tblTempUsageDetail_20' ) end [2025-02-11 13:52:36] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:52:36] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:52:36] Production.INFO: ==19095== Releasing lock... [2025-02-11 13:52:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:52:36] Production.INFO: 67.25 MB #Memory Used# [2025-02-11 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:53:05 [end_date_ymd] => 2025-02-11 13:53:05 [RateCDR] => 1 ) [2025-02-11 13:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:53:05' and `end` < '2025-02-11 13:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:53:26] Production.INFO: count ==5209 [2025-02-11 13:53:28] Production.ERROR: pbx CDR StartTime 2025-02-11 10:53:05 - End Time 2025-02-11 13:53:05 [2025-02-11 13:53:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452169', 'tblTempUsageDetail_20' ) start [2025-02-11 13:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452169', 'tblTempUsageDetail_20' ) end [2025-02-11 13:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452169', 'tblTempVendorCDR_20' ) start [2025-02-11 13:53:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452169', 'tblTempVendorCDR_20' ) end [2025-02-11 13:53:28] Production.INFO: ProcessCDR(1,14452169,1,1,2) [2025-02-11 13:53:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:53:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:53:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:53:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:53:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452169', 'tblTempUsageDetail_20' ) start [2025-02-11 13:53:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452169', 'tblTempUsageDetail_20' ) end [2025-02-11 13:53:33] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:53:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:53:33] Production.INFO: ==19169== Releasing lock... [2025-02-11 13:53:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:53:33] Production.INFO: 67 MB #Memory Used# [2025-02-11 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:54:05 [end_date_ymd] => 2025-02-11 13:54:05 [RateCDR] => 1 ) [2025-02-11 13:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:54:05' and `end` < '2025-02-11 13:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:54:21] Production.INFO: count ==5194 [2025-02-11 13:54:23] Production.ERROR: pbx CDR StartTime 2025-02-11 10:54:05 - End Time 2025-02-11 13:54:05 [2025-02-11 13:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452174', 'tblTempUsageDetail_20' ) start [2025-02-11 13:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452174', 'tblTempUsageDetail_20' ) end [2025-02-11 13:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452174', 'tblTempVendorCDR_20' ) start [2025-02-11 13:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452174', 'tblTempVendorCDR_20' ) end [2025-02-11 13:54:24] Production.INFO: ProcessCDR(1,14452174,1,1,2) [2025-02-11 13:54:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452174', 'tblTempUsageDetail_20' ) start [2025-02-11 13:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452174', 'tblTempUsageDetail_20' ) end [2025-02-11 13:54:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:54:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:54:29] Production.INFO: ==19238== Releasing lock... [2025-02-11 13:54:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:54:29] Production.INFO: 67 MB #Memory Used# [2025-02-11 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:55:05 [end_date_ymd] => 2025-02-11 13:55:05 [RateCDR] => 1 ) [2025-02-11 13:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:55:05' and `end` < '2025-02-11 13:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:55:20] Production.INFO: count ==5164 [2025-02-11 13:55:23] Production.ERROR: pbx CDR StartTime 2025-02-11 10:55:05 - End Time 2025-02-11 13:55:05 [2025-02-11 13:55:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452179', 'tblTempUsageDetail_20' ) start [2025-02-11 13:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452179', 'tblTempUsageDetail_20' ) end [2025-02-11 13:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452179', 'tblTempVendorCDR_20' ) start [2025-02-11 13:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452179', 'tblTempVendorCDR_20' ) end [2025-02-11 13:55:23] Production.INFO: ProcessCDR(1,14452179,1,1,2) [2025-02-11 13:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452179', 'tblTempUsageDetail_20' ) start [2025-02-11 13:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452179', 'tblTempUsageDetail_20' ) end [2025-02-11 13:55:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:55:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:55:28] Production.INFO: ==19307== Releasing lock... [2025-02-11 13:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:55:28] Production.INFO: 66.75 MB #Memory Used# [2025-02-11 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:56:05 [end_date_ymd] => 2025-02-11 13:56:05 [RateCDR] => 1 ) [2025-02-11 13:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:56:05' and `end` < '2025-02-11 13:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:56:24] Production.INFO: count ==5150 [2025-02-11 13:56:26] Production.ERROR: pbx CDR StartTime 2025-02-11 10:56:05 - End Time 2025-02-11 13:56:05 [2025-02-11 13:56:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452184', 'tblTempUsageDetail_20' ) start [2025-02-11 13:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452184', 'tblTempUsageDetail_20' ) end [2025-02-11 13:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452184', 'tblTempVendorCDR_20' ) start [2025-02-11 13:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452184', 'tblTempVendorCDR_20' ) end [2025-02-11 13:56:26] Production.INFO: ProcessCDR(1,14452184,1,1,2) [2025-02-11 13:56:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:56:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:56:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:56:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452184', 'tblTempUsageDetail_20' ) start [2025-02-11 13:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452184', 'tblTempUsageDetail_20' ) end [2025-02-11 13:56:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:56:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:56:31] Production.INFO: ==19382== Releasing lock... [2025-02-11 13:56:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:56:31] Production.INFO: 66.5 MB #Memory Used# [2025-02-11 13:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:57:06 [end_date_ymd] => 2025-02-11 13:57:06 [RateCDR] => 1 ) [2025-02-11 13:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:57:06' and `end` < '2025-02-11 13:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:57:21] Production.INFO: count ==5146 [2025-02-11 13:57:23] Production.ERROR: pbx CDR StartTime 2025-02-11 10:57:06 - End Time 2025-02-11 13:57:06 [2025-02-11 13:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452189', 'tblTempUsageDetail_20' ) start [2025-02-11 13:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452189', 'tblTempUsageDetail_20' ) end [2025-02-11 13:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452189', 'tblTempVendorCDR_20' ) start [2025-02-11 13:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452189', 'tblTempVendorCDR_20' ) end [2025-02-11 13:57:23] Production.INFO: ProcessCDR(1,14452189,1,1,2) [2025-02-11 13:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452189', 'tblTempUsageDetail_20' ) start [2025-02-11 13:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452189', 'tblTempUsageDetail_20' ) end [2025-02-11 13:57:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:57:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:57:28] Production.INFO: ==19494== Releasing lock... [2025-02-11 13:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:57:28] Production.INFO: 66.5 MB #Memory Used# [2025-02-11 13:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:58:06 [end_date_ymd] => 2025-02-11 13:58:06 [RateCDR] => 1 ) [2025-02-11 13:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:58:06' and `end` < '2025-02-11 13:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:58:21] Production.INFO: count ==5141 [2025-02-11 13:58:23] Production.ERROR: pbx CDR StartTime 2025-02-11 10:58:06 - End Time 2025-02-11 13:58:06 [2025-02-11 13:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452194', 'tblTempUsageDetail_20' ) start [2025-02-11 13:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452194', 'tblTempUsageDetail_20' ) end [2025-02-11 13:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452194', 'tblTempVendorCDR_20' ) start [2025-02-11 13:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452194', 'tblTempVendorCDR_20' ) end [2025-02-11 13:58:24] Production.INFO: ProcessCDR(1,14452194,1,1,2) [2025-02-11 13:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452194', 'tblTempUsageDetail_20' ) start [2025-02-11 13:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452194', 'tblTempUsageDetail_20' ) end [2025-02-11 13:58:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:58:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:58:29] Production.INFO: ==19567== Releasing lock... [2025-02-11 13:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:58:29] Production.INFO: 66.5 MB #Memory Used# [2025-02-11 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 10:59:05 [end_date_ymd] => 2025-02-11 13:59:05 [RateCDR] => 1 ) [2025-02-11 13:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 10:59:05' and `end` < '2025-02-11 13:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 13:59:24] Production.INFO: count ==5147 [2025-02-11 13:59:26] Production.ERROR: pbx CDR StartTime 2025-02-11 10:59:05 - End Time 2025-02-11 13:59:05 [2025-02-11 13:59:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 13:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452199', 'tblTempUsageDetail_20' ) start [2025-02-11 13:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452199', 'tblTempUsageDetail_20' ) end [2025-02-11 13:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452199', 'tblTempVendorCDR_20' ) start [2025-02-11 13:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452199', 'tblTempVendorCDR_20' ) end [2025-02-11 13:59:26] Production.INFO: ProcessCDR(1,14452199,1,1,2) [2025-02-11 13:59:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:59:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 13:59:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:59:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 13:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452199', 'tblTempUsageDetail_20' ) start [2025-02-11 13:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452199', 'tblTempUsageDetail_20' ) end [2025-02-11 13:59:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 13:59:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 13:59:31] Production.INFO: ==19642== Releasing lock... [2025-02-11 13:59:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 13:59:31] Production.INFO: 66.5 MB #Memory Used# [2025-02-11 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:00:06 [end_date_ymd] => 2025-02-11 14:00:06 [RateCDR] => 1 ) [2025-02-11 14:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:00:06' and `end` < '2025-02-11 14:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:00:20] Production.INFO: count ==5137 [2025-02-11 14:00:23] Production.ERROR: pbx CDR StartTime 2025-02-11 11:00:06 - End Time 2025-02-11 14:00:06 [2025-02-11 14:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452205', 'tblTempUsageDetail_20' ) start [2025-02-11 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452205', 'tblTempUsageDetail_20' ) end [2025-02-11 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452205', 'tblTempVendorCDR_20' ) start [2025-02-11 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452205', 'tblTempVendorCDR_20' ) end [2025-02-11 14:00:23] Production.INFO: ProcessCDR(1,14452205,1,1,2) [2025-02-11 14:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452205', 'tblTempUsageDetail_20' ) start [2025-02-11 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452205', 'tblTempUsageDetail_20' ) end [2025-02-11 14:00:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:00:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:00:28] Production.INFO: ==19719== Releasing lock... [2025-02-11 14:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:00:28] Production.INFO: 66.5 MB #Memory Used# [2025-02-11 14:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:01:06 [end_date_ymd] => 2025-02-11 14:01:06 [RateCDR] => 1 ) [2025-02-11 14:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:01:06' and `end` < '2025-02-11 14:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:01:20] Production.INFO: count ==5088 [2025-02-11 14:01:22] Production.ERROR: pbx CDR StartTime 2025-02-11 11:01:06 - End Time 2025-02-11 14:01:06 [2025-02-11 14:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452210', 'tblTempUsageDetail_20' ) start [2025-02-11 14:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452210', 'tblTempUsageDetail_20' ) end [2025-02-11 14:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452210', 'tblTempVendorCDR_20' ) start [2025-02-11 14:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452210', 'tblTempVendorCDR_20' ) end [2025-02-11 14:01:23] Production.INFO: ProcessCDR(1,14452210,1,1,2) [2025-02-11 14:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452210', 'tblTempUsageDetail_20' ) start [2025-02-11 14:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452210', 'tblTempUsageDetail_20' ) end [2025-02-11 14:01:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:01:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:01:28] Production.INFO: ==19804== Releasing lock... [2025-02-11 14:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:01:28] Production.INFO: 66 MB #Memory Used# [2025-02-11 14:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:02:06 [end_date_ymd] => 2025-02-11 14:02:06 [RateCDR] => 1 ) [2025-02-11 14:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:02:06' and `end` < '2025-02-11 14:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:02:20] Production.INFO: count ==5098 [2025-02-11 14:02:22] Production.ERROR: pbx CDR StartTime 2025-02-11 11:02:06 - End Time 2025-02-11 14:02:06 [2025-02-11 14:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452215', 'tblTempUsageDetail_20' ) start [2025-02-11 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452215', 'tblTempUsageDetail_20' ) end [2025-02-11 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452215', 'tblTempVendorCDR_20' ) start [2025-02-11 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452215', 'tblTempVendorCDR_20' ) end [2025-02-11 14:02:22] Production.INFO: ProcessCDR(1,14452215,1,1,2) [2025-02-11 14:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452215', 'tblTempUsageDetail_20' ) start [2025-02-11 14:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452215', 'tblTempUsageDetail_20' ) end [2025-02-11 14:02:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:02:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:02:28] Production.INFO: ==19874== Releasing lock... [2025-02-11 14:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:02:28] Production.INFO: 66.25 MB #Memory Used# [2025-02-11 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:03:05 [end_date_ymd] => 2025-02-11 14:03:05 [RateCDR] => 1 ) [2025-02-11 14:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:03:05' and `end` < '2025-02-11 14:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:03:23] Production.INFO: count ==5101 [2025-02-11 14:03:25] Production.ERROR: pbx CDR StartTime 2025-02-11 11:03:05 - End Time 2025-02-11 14:03:05 [2025-02-11 14:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452220', 'tblTempUsageDetail_20' ) start [2025-02-11 14:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452220', 'tblTempUsageDetail_20' ) end [2025-02-11 14:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452220', 'tblTempVendorCDR_20' ) start [2025-02-11 14:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452220', 'tblTempVendorCDR_20' ) end [2025-02-11 14:03:25] Production.INFO: ProcessCDR(1,14452220,1,1,2) [2025-02-11 14:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452220', 'tblTempUsageDetail_20' ) start [2025-02-11 14:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452220', 'tblTempUsageDetail_20' ) end [2025-02-11 14:03:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:03:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:03:30] Production.INFO: ==19946== Releasing lock... [2025-02-11 14:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:03:30] Production.INFO: 66.25 MB #Memory Used# [2025-02-11 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:04:05 [end_date_ymd] => 2025-02-11 14:04:05 [RateCDR] => 1 ) [2025-02-11 14:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:04:05' and `end` < '2025-02-11 14:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:04:22] Production.INFO: count ==5093 [2025-02-11 14:04:24] Production.ERROR: pbx CDR StartTime 2025-02-11 11:04:05 - End Time 2025-02-11 14:04:05 [2025-02-11 14:04:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452225', 'tblTempUsageDetail_20' ) start [2025-02-11 14:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452225', 'tblTempUsageDetail_20' ) end [2025-02-11 14:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452225', 'tblTempVendorCDR_20' ) start [2025-02-11 14:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452225', 'tblTempVendorCDR_20' ) end [2025-02-11 14:04:25] Production.INFO: ProcessCDR(1,14452225,1,1,2) [2025-02-11 14:04:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:04:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:04:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:04:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452225', 'tblTempUsageDetail_20' ) start [2025-02-11 14:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452225', 'tblTempUsageDetail_20' ) end [2025-02-11 14:04:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:04:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:04:29] Production.INFO: ==20018== Releasing lock... [2025-02-11 14:04:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:04:29] Production.INFO: 66.25 MB #Memory Used# [2025-02-11 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:05:05 [end_date_ymd] => 2025-02-11 14:05:05 [RateCDR] => 1 ) [2025-02-11 14:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:05:05' and `end` < '2025-02-11 14:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:05:21] Production.INFO: count ==5098 [2025-02-11 14:05:24] Production.ERROR: pbx CDR StartTime 2025-02-11 11:05:05 - End Time 2025-02-11 14:05:05 [2025-02-11 14:05:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452230', 'tblTempUsageDetail_20' ) start [2025-02-11 14:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452230', 'tblTempUsageDetail_20' ) end [2025-02-11 14:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452230', 'tblTempVendorCDR_20' ) start [2025-02-11 14:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452230', 'tblTempVendorCDR_20' ) end [2025-02-11 14:05:24] Production.INFO: ProcessCDR(1,14452230,1,1,2) [2025-02-11 14:05:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:05:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452230', 'tblTempUsageDetail_20' ) start [2025-02-11 14:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452230', 'tblTempUsageDetail_20' ) end [2025-02-11 14:05:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:05:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:05:29] Production.INFO: ==20091== Releasing lock... [2025-02-11 14:05:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:05:29] Production.INFO: 66.25 MB #Memory Used# [2025-02-11 14:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:06:06 [end_date_ymd] => 2025-02-11 14:06:06 [RateCDR] => 1 ) [2025-02-11 14:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:06:06' and `end` < '2025-02-11 14:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:06:22] Production.INFO: count ==5081 [2025-02-11 14:06:24] Production.ERROR: pbx CDR StartTime 2025-02-11 11:06:06 - End Time 2025-02-11 14:06:06 [2025-02-11 14:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452235', 'tblTempUsageDetail_20' ) start [2025-02-11 14:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452235', 'tblTempUsageDetail_20' ) end [2025-02-11 14:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452235', 'tblTempVendorCDR_20' ) start [2025-02-11 14:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452235', 'tblTempVendorCDR_20' ) end [2025-02-11 14:06:24] Production.INFO: ProcessCDR(1,14452235,1,1,2) [2025-02-11 14:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:06:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:06:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452235', 'tblTempUsageDetail_20' ) start [2025-02-11 14:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452235', 'tblTempUsageDetail_20' ) end [2025-02-11 14:06:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:06:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:06:29] Production.INFO: ==20166== Releasing lock... [2025-02-11 14:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:06:29] Production.INFO: 66 MB #Memory Used# [2025-02-11 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:07:05 [end_date_ymd] => 2025-02-11 14:07:05 [RateCDR] => 1 ) [2025-02-11 14:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:07:05' and `end` < '2025-02-11 14:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:07:22] Production.INFO: count ==5077 [2025-02-11 14:07:24] Production.ERROR: pbx CDR StartTime 2025-02-11 11:07:05 - End Time 2025-02-11 14:07:05 [2025-02-11 14:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452240', 'tblTempUsageDetail_20' ) start [2025-02-11 14:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452240', 'tblTempUsageDetail_20' ) end [2025-02-11 14:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452240', 'tblTempVendorCDR_20' ) start [2025-02-11 14:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452240', 'tblTempVendorCDR_20' ) end [2025-02-11 14:07:24] Production.INFO: ProcessCDR(1,14452240,1,1,2) [2025-02-11 14:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452240', 'tblTempUsageDetail_20' ) start [2025-02-11 14:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452240', 'tblTempUsageDetail_20' ) end [2025-02-11 14:07:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:07:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:07:29] Production.INFO: ==20238== Releasing lock... [2025-02-11 14:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:07:29] Production.INFO: 66 MB #Memory Used# [2025-02-11 14:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:08:06 [end_date_ymd] => 2025-02-11 14:08:06 [RateCDR] => 1 ) [2025-02-11 14:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:08:06' and `end` < '2025-02-11 14:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:08:23] Production.INFO: count ==5090 [2025-02-11 14:08:25] Production.ERROR: pbx CDR StartTime 2025-02-11 11:08:06 - End Time 2025-02-11 14:08:06 [2025-02-11 14:08:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452245', 'tblTempUsageDetail_20' ) start [2025-02-11 14:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452245', 'tblTempUsageDetail_20' ) end [2025-02-11 14:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452245', 'tblTempVendorCDR_20' ) start [2025-02-11 14:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452245', 'tblTempVendorCDR_20' ) end [2025-02-11 14:08:25] Production.INFO: ProcessCDR(1,14452245,1,1,2) [2025-02-11 14:08:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:08:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:08:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:08:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452245', 'tblTempUsageDetail_20' ) start [2025-02-11 14:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452245', 'tblTempUsageDetail_20' ) end [2025-02-11 14:08:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:08:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:08:31] Production.INFO: ==20312== Releasing lock... [2025-02-11 14:08:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:08:31] Production.INFO: 66 MB #Memory Used# [2025-02-11 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:09:05 [end_date_ymd] => 2025-02-11 14:09:05 [RateCDR] => 1 ) [2025-02-11 14:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:09:05' and `end` < '2025-02-11 14:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:09:22] Production.INFO: count ==5088 [2025-02-11 14:09:25] Production.ERROR: pbx CDR StartTime 2025-02-11 11:09:05 - End Time 2025-02-11 14:09:05 [2025-02-11 14:09:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452250', 'tblTempUsageDetail_20' ) start [2025-02-11 14:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452250', 'tblTempUsageDetail_20' ) end [2025-02-11 14:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452250', 'tblTempVendorCDR_20' ) start [2025-02-11 14:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452250', 'tblTempVendorCDR_20' ) end [2025-02-11 14:09:25] Production.INFO: ProcessCDR(1,14452250,1,1,2) [2025-02-11 14:09:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:09:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:09:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452250', 'tblTempUsageDetail_20' ) start [2025-02-11 14:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452250', 'tblTempUsageDetail_20' ) end [2025-02-11 14:09:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:09:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:09:30] Production.INFO: ==20384== Releasing lock... [2025-02-11 14:09:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:09:30] Production.INFO: 66 MB #Memory Used# [2025-02-11 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:10:06 [end_date_ymd] => 2025-02-11 14:10:06 [RateCDR] => 1 ) [2025-02-11 14:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:10:06' and `end` < '2025-02-11 14:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:10:26] Production.INFO: count ==5100 [2025-02-11 14:10:28] Production.ERROR: pbx CDR StartTime 2025-02-11 11:10:06 - End Time 2025-02-11 14:10:06 [2025-02-11 14:10:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452256', 'tblTempUsageDetail_20' ) start [2025-02-11 14:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452256', 'tblTempUsageDetail_20' ) end [2025-02-11 14:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452256', 'tblTempVendorCDR_20' ) start [2025-02-11 14:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452256', 'tblTempVendorCDR_20' ) end [2025-02-11 14:10:28] Production.INFO: ProcessCDR(1,14452256,1,1,2) [2025-02-11 14:10:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:10:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:10:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:10:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452256', 'tblTempUsageDetail_20' ) start [2025-02-11 14:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452256', 'tblTempUsageDetail_20' ) end [2025-02-11 14:10:33] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:10:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:10:33] Production.INFO: ==20457== Releasing lock... [2025-02-11 14:10:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:10:33] Production.INFO: 66.25 MB #Memory Used# [2025-02-11 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:11:05 [end_date_ymd] => 2025-02-11 14:11:05 [RateCDR] => 1 ) [2025-02-11 14:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:11:05' and `end` < '2025-02-11 14:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:11:24] Production.INFO: count ==5118 [2025-02-11 14:11:26] Production.ERROR: pbx CDR StartTime 2025-02-11 11:11:05 - End Time 2025-02-11 14:11:05 [2025-02-11 14:11:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452261', 'tblTempUsageDetail_20' ) start [2025-02-11 14:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452261', 'tblTempUsageDetail_20' ) end [2025-02-11 14:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452261', 'tblTempVendorCDR_20' ) start [2025-02-11 14:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452261', 'tblTempVendorCDR_20' ) end [2025-02-11 14:11:26] Production.INFO: ProcessCDR(1,14452261,1,1,2) [2025-02-11 14:11:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:11:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:11:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:11:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452261', 'tblTempUsageDetail_20' ) start [2025-02-11 14:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452261', 'tblTempUsageDetail_20' ) end [2025-02-11 14:11:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:11:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:11:31] Production.INFO: ==20530== Releasing lock... [2025-02-11 14:11:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:11:31] Production.INFO: 66.25 MB #Memory Used# [2025-02-11 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:12:05 [end_date_ymd] => 2025-02-11 14:12:05 [RateCDR] => 1 ) [2025-02-11 14:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:12:05' and `end` < '2025-02-11 14:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:12:24] Production.INFO: count ==5142 [2025-02-11 14:12:27] Production.ERROR: pbx CDR StartTime 2025-02-11 11:12:05 - End Time 2025-02-11 14:12:05 [2025-02-11 14:12:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452266', 'tblTempUsageDetail_20' ) start [2025-02-11 14:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452266', 'tblTempUsageDetail_20' ) end [2025-02-11 14:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452266', 'tblTempVendorCDR_20' ) start [2025-02-11 14:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452266', 'tblTempVendorCDR_20' ) end [2025-02-11 14:12:27] Production.INFO: ProcessCDR(1,14452266,1,1,2) [2025-02-11 14:12:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:12:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:12:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:12:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452266', 'tblTempUsageDetail_20' ) start [2025-02-11 14:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452266', 'tblTempUsageDetail_20' ) end [2025-02-11 14:12:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:12:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:12:32] Production.INFO: ==20642== Releasing lock... [2025-02-11 14:12:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:12:32] Production.INFO: 66.5 MB #Memory Used# [2025-02-11 14:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:13:06 [end_date_ymd] => 2025-02-11 14:13:06 [RateCDR] => 1 ) [2025-02-11 14:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:13:06' and `end` < '2025-02-11 14:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:13:24] Production.INFO: count ==5127 [2025-02-11 14:13:27] Production.ERROR: pbx CDR StartTime 2025-02-11 11:13:06 - End Time 2025-02-11 14:13:06 [2025-02-11 14:13:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452271', 'tblTempUsageDetail_20' ) start [2025-02-11 14:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452271', 'tblTempUsageDetail_20' ) end [2025-02-11 14:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452271', 'tblTempVendorCDR_20' ) start [2025-02-11 14:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452271', 'tblTempVendorCDR_20' ) end [2025-02-11 14:13:27] Production.INFO: ProcessCDR(1,14452271,1,1,2) [2025-02-11 14:13:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:13:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:13:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:13:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:13:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452271', 'tblTempUsageDetail_20' ) start [2025-02-11 14:13:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452271', 'tblTempUsageDetail_20' ) end [2025-02-11 14:13:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:13:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:13:33] Production.INFO: ==20712== Releasing lock... [2025-02-11 14:13:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:13:33] Production.INFO: 66.5 MB #Memory Used# [2025-02-11 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:14:05 [end_date_ymd] => 2025-02-11 14:14:05 [RateCDR] => 1 ) [2025-02-11 14:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:14:05' and `end` < '2025-02-11 14:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:14:26] Production.INFO: count ==5140 [2025-02-11 14:14:29] Production.ERROR: pbx CDR StartTime 2025-02-11 11:14:05 - End Time 2025-02-11 14:14:05 [2025-02-11 14:14:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452276', 'tblTempUsageDetail_20' ) start [2025-02-11 14:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452276', 'tblTempUsageDetail_20' ) end [2025-02-11 14:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452276', 'tblTempVendorCDR_20' ) start [2025-02-11 14:14:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452276', 'tblTempVendorCDR_20' ) end [2025-02-11 14:14:29] Production.INFO: ProcessCDR(1,14452276,1,1,2) [2025-02-11 14:14:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:14:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:14:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:14:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:14:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452276', 'tblTempUsageDetail_20' ) start [2025-02-11 14:14:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452276', 'tblTempUsageDetail_20' ) end [2025-02-11 14:14:34] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:14:34] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:14:34] Production.INFO: ==20788== Releasing lock... [2025-02-11 14:14:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:14:34] Production.INFO: 66.5 MB #Memory Used# [2025-02-11 14:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:15:06 [end_date_ymd] => 2025-02-11 14:15:06 [RateCDR] => 1 ) [2025-02-11 14:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:15:06' and `end` < '2025-02-11 14:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:15:21] Production.INFO: count ==5146 [2025-02-11 14:15:23] Production.ERROR: pbx CDR StartTime 2025-02-11 11:15:06 - End Time 2025-02-11 14:15:06 [2025-02-11 14:15:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452281', 'tblTempUsageDetail_20' ) start [2025-02-11 14:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452281', 'tblTempUsageDetail_20' ) end [2025-02-11 14:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452281', 'tblTempVendorCDR_20' ) start [2025-02-11 14:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452281', 'tblTempVendorCDR_20' ) end [2025-02-11 14:15:24] Production.INFO: ProcessCDR(1,14452281,1,1,2) [2025-02-11 14:15:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:15:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:15:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:15:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452281', 'tblTempUsageDetail_20' ) start [2025-02-11 14:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452281', 'tblTempUsageDetail_20' ) end [2025-02-11 14:15:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:15:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:15:29] Production.INFO: ==20869== Releasing lock... [2025-02-11 14:15:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:15:29] Production.INFO: 66.5 MB #Memory Used# [2025-02-11 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:16:05 [end_date_ymd] => 2025-02-11 14:16:05 [RateCDR] => 1 ) [2025-02-11 14:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:16:05' and `end` < '2025-02-11 14:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:16:21] Production.INFO: count ==5152 [2025-02-11 14:16:24] Production.ERROR: pbx CDR StartTime 2025-02-11 11:16:05 - End Time 2025-02-11 14:16:05 [2025-02-11 14:16:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452286', 'tblTempUsageDetail_20' ) start [2025-02-11 14:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452286', 'tblTempUsageDetail_20' ) end [2025-02-11 14:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452286', 'tblTempVendorCDR_20' ) start [2025-02-11 14:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452286', 'tblTempVendorCDR_20' ) end [2025-02-11 14:16:24] Production.INFO: ProcessCDR(1,14452286,1,1,2) [2025-02-11 14:16:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:16:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452286', 'tblTempUsageDetail_20' ) start [2025-02-11 14:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452286', 'tblTempUsageDetail_20' ) end [2025-02-11 14:16:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:16:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:16:30] Production.INFO: ==20940== Releasing lock... [2025-02-11 14:16:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:16:30] Production.INFO: 66.5 MB #Memory Used# [2025-02-11 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:17:05 [end_date_ymd] => 2025-02-11 14:17:05 [RateCDR] => 1 ) [2025-02-11 14:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:17:05' and `end` < '2025-02-11 14:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:17:24] Production.INFO: count ==5150 [2025-02-11 14:17:26] Production.ERROR: pbx CDR StartTime 2025-02-11 11:17:05 - End Time 2025-02-11 14:17:05 [2025-02-11 14:17:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452291', 'tblTempUsageDetail_20' ) start [2025-02-11 14:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452291', 'tblTempUsageDetail_20' ) end [2025-02-11 14:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452291', 'tblTempVendorCDR_20' ) start [2025-02-11 14:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452291', 'tblTempVendorCDR_20' ) end [2025-02-11 14:17:27] Production.INFO: ProcessCDR(1,14452291,1,1,2) [2025-02-11 14:17:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:17:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:17:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:17:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:17:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452291', 'tblTempUsageDetail_20' ) start [2025-02-11 14:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452291', 'tblTempUsageDetail_20' ) end [2025-02-11 14:17:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:17:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:17:32] Production.INFO: ==21010== Releasing lock... [2025-02-11 14:17:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:17:32] Production.INFO: 66.5 MB #Memory Used# [2025-02-11 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:18:05 [end_date_ymd] => 2025-02-11 14:18:05 [RateCDR] => 1 ) [2025-02-11 14:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:18:05' and `end` < '2025-02-11 14:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:18:23] Production.INFO: count ==5157 [2025-02-11 14:18:25] Production.ERROR: pbx CDR StartTime 2025-02-11 11:18:05 - End Time 2025-02-11 14:18:05 [2025-02-11 14:18:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452296', 'tblTempUsageDetail_20' ) start [2025-02-11 14:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452296', 'tblTempUsageDetail_20' ) end [2025-02-11 14:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452296', 'tblTempVendorCDR_20' ) start [2025-02-11 14:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452296', 'tblTempVendorCDR_20' ) end [2025-02-11 14:18:25] Production.INFO: ProcessCDR(1,14452296,1,1,2) [2025-02-11 14:18:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:18:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:18:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:18:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452296', 'tblTempUsageDetail_20' ) start [2025-02-11 14:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452296', 'tblTempUsageDetail_20' ) end [2025-02-11 14:18:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:18:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:18:31] Production.INFO: ==21084== Releasing lock... [2025-02-11 14:18:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:18:31] Production.INFO: 66.5 MB #Memory Used# [2025-02-11 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:19:05 [end_date_ymd] => 2025-02-11 14:19:05 [RateCDR] => 1 ) [2025-02-11 14:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:19:05' and `end` < '2025-02-11 14:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:19:20] Production.INFO: count ==5136 [2025-02-11 14:19:22] Production.ERROR: pbx CDR StartTime 2025-02-11 11:19:05 - End Time 2025-02-11 14:19:05 [2025-02-11 14:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452301', 'tblTempUsageDetail_20' ) start [2025-02-11 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452301', 'tblTempUsageDetail_20' ) end [2025-02-11 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452301', 'tblTempVendorCDR_20' ) start [2025-02-11 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452301', 'tblTempVendorCDR_20' ) end [2025-02-11 14:19:22] Production.INFO: ProcessCDR(1,14452301,1,1,2) [2025-02-11 14:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452301', 'tblTempUsageDetail_20' ) start [2025-02-11 14:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452301', 'tblTempUsageDetail_20' ) end [2025-02-11 14:19:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:19:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:19:26] Production.INFO: ==21160== Releasing lock... [2025-02-11 14:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:19:26] Production.INFO: 66.5 MB #Memory Used# [2025-02-11 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:20:06 [end_date_ymd] => 2025-02-11 14:20:06 [RateCDR] => 1 ) [2025-02-11 14:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:20:06' and `end` < '2025-02-11 14:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:20:21] Production.INFO: count ==5124 [2025-02-11 14:20:24] Production.ERROR: pbx CDR StartTime 2025-02-11 11:20:06 - End Time 2025-02-11 14:20:06 [2025-02-11 14:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452307', 'tblTempUsageDetail_20' ) start [2025-02-11 14:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452307', 'tblTempUsageDetail_20' ) end [2025-02-11 14:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452307', 'tblTempVendorCDR_20' ) start [2025-02-11 14:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452307', 'tblTempVendorCDR_20' ) end [2025-02-11 14:20:24] Production.INFO: ProcessCDR(1,14452307,1,1,2) [2025-02-11 14:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452307', 'tblTempUsageDetail_20' ) start [2025-02-11 14:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452307', 'tblTempUsageDetail_20' ) end [2025-02-11 14:20:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:20:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:20:29] Production.INFO: ==21234== Releasing lock... [2025-02-11 14:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:20:29] Production.INFO: 66.5 MB #Memory Used# [2025-02-11 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:21:05 [end_date_ymd] => 2025-02-11 14:21:05 [RateCDR] => 1 ) [2025-02-11 14:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:21:05' and `end` < '2025-02-11 14:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:21:24] Production.INFO: count ==5071 [2025-02-11 14:21:26] Production.ERROR: pbx CDR StartTime 2025-02-11 11:21:05 - End Time 2025-02-11 14:21:05 [2025-02-11 14:21:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452312', 'tblTempUsageDetail_20' ) start [2025-02-11 14:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452312', 'tblTempUsageDetail_20' ) end [2025-02-11 14:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452312', 'tblTempVendorCDR_20' ) start [2025-02-11 14:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452312', 'tblTempVendorCDR_20' ) end [2025-02-11 14:21:26] Production.INFO: ProcessCDR(1,14452312,1,1,2) [2025-02-11 14:21:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:21:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:21:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:21:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:21:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452312', 'tblTempUsageDetail_20' ) start [2025-02-11 14:21:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452312', 'tblTempUsageDetail_20' ) end [2025-02-11 14:21:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:21:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:21:32] Production.INFO: ==21306== Releasing lock... [2025-02-11 14:21:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:21:32] Production.INFO: 66 MB #Memory Used# [2025-02-11 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:22:05 [end_date_ymd] => 2025-02-11 14:22:05 [RateCDR] => 1 ) [2025-02-11 14:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:22:05' and `end` < '2025-02-11 14:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:22:23] Production.INFO: count ==5038 [2025-02-11 14:22:25] Production.ERROR: pbx CDR StartTime 2025-02-11 11:22:05 - End Time 2025-02-11 14:22:05 [2025-02-11 14:22:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452317', 'tblTempUsageDetail_20' ) start [2025-02-11 14:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452317', 'tblTempUsageDetail_20' ) end [2025-02-11 14:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452317', 'tblTempVendorCDR_20' ) start [2025-02-11 14:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452317', 'tblTempVendorCDR_20' ) end [2025-02-11 14:22:26] Production.INFO: ProcessCDR(1,14452317,1,1,2) [2025-02-11 14:22:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:22:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:22:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:22:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452317', 'tblTempUsageDetail_20' ) start [2025-02-11 14:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452317', 'tblTempUsageDetail_20' ) end [2025-02-11 14:22:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:22:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:22:31] Production.INFO: ==21378== Releasing lock... [2025-02-11 14:22:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:22:31] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 14:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:23:06 [end_date_ymd] => 2025-02-11 14:23:06 [RateCDR] => 1 ) [2025-02-11 14:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:23:06' and `end` < '2025-02-11 14:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:23:19] Production.INFO: count ==5039 [2025-02-11 14:23:22] Production.ERROR: pbx CDR StartTime 2025-02-11 11:23:06 - End Time 2025-02-11 14:23:06 [2025-02-11 14:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452322', 'tblTempUsageDetail_20' ) start [2025-02-11 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452322', 'tblTempUsageDetail_20' ) end [2025-02-11 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452322', 'tblTempVendorCDR_20' ) start [2025-02-11 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452322', 'tblTempVendorCDR_20' ) end [2025-02-11 14:23:22] Production.INFO: ProcessCDR(1,14452322,1,1,2) [2025-02-11 14:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452322', 'tblTempUsageDetail_20' ) start [2025-02-11 14:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452322', 'tblTempUsageDetail_20' ) end [2025-02-11 14:23:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:23:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:23:27] Production.INFO: ==21451== Releasing lock... [2025-02-11 14:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:23:27] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:24:05 [end_date_ymd] => 2025-02-11 14:24:05 [RateCDR] => 1 ) [2025-02-11 14:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:24:05' and `end` < '2025-02-11 14:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:24:24] Production.INFO: count ==5053 [2025-02-11 14:24:26] Production.ERROR: pbx CDR StartTime 2025-02-11 11:24:05 - End Time 2025-02-11 14:24:05 [2025-02-11 14:24:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452327', 'tblTempUsageDetail_20' ) start [2025-02-11 14:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452327', 'tblTempUsageDetail_20' ) end [2025-02-11 14:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452327', 'tblTempVendorCDR_20' ) start [2025-02-11 14:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452327', 'tblTempVendorCDR_20' ) end [2025-02-11 14:24:26] Production.INFO: ProcessCDR(1,14452327,1,1,2) [2025-02-11 14:24:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:24:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:24:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:24:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:24:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452327', 'tblTempUsageDetail_20' ) start [2025-02-11 14:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452327', 'tblTempUsageDetail_20' ) end [2025-02-11 14:24:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:24:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:24:32] Production.INFO: ==21520== Releasing lock... [2025-02-11 14:24:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:24:32] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 14:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:25:06 [end_date_ymd] => 2025-02-11 14:25:06 [RateCDR] => 1 ) [2025-02-11 14:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:25:06' and `end` < '2025-02-11 14:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:25:26] Production.INFO: count ==5062 [2025-02-11 14:25:28] Production.ERROR: pbx CDR StartTime 2025-02-11 11:25:06 - End Time 2025-02-11 14:25:06 [2025-02-11 14:25:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452332', 'tblTempUsageDetail_20' ) start [2025-02-11 14:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452332', 'tblTempUsageDetail_20' ) end [2025-02-11 14:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452332', 'tblTempVendorCDR_20' ) start [2025-02-11 14:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452332', 'tblTempVendorCDR_20' ) end [2025-02-11 14:25:28] Production.INFO: ProcessCDR(1,14452332,1,1,2) [2025-02-11 14:25:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:25:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:25:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452332', 'tblTempUsageDetail_20' ) start [2025-02-11 14:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452332', 'tblTempUsageDetail_20' ) end [2025-02-11 14:25:33] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:25:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:25:33] Production.INFO: ==21593== Releasing lock... [2025-02-11 14:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:25:33] Production.INFO: 66 MB #Memory Used# [2025-02-11 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:26:05 [end_date_ymd] => 2025-02-11 14:26:05 [RateCDR] => 1 ) [2025-02-11 14:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:26:05' and `end` < '2025-02-11 14:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:26:25] Production.INFO: count ==5068 [2025-02-11 14:26:27] Production.ERROR: pbx CDR StartTime 2025-02-11 11:26:05 - End Time 2025-02-11 14:26:05 [2025-02-11 14:26:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452337', 'tblTempUsageDetail_20' ) start [2025-02-11 14:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452337', 'tblTempUsageDetail_20' ) end [2025-02-11 14:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452337', 'tblTempVendorCDR_20' ) start [2025-02-11 14:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452337', 'tblTempVendorCDR_20' ) end [2025-02-11 14:26:27] Production.INFO: ProcessCDR(1,14452337,1,1,2) [2025-02-11 14:26:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:26:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:26:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:26:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:26:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452337', 'tblTempUsageDetail_20' ) start [2025-02-11 14:26:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452337', 'tblTempUsageDetail_20' ) end [2025-02-11 14:26:33] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:26:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:26:33] Production.INFO: ==21664== Releasing lock... [2025-02-11 14:26:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:26:33] Production.INFO: 66 MB #Memory Used# [2025-02-11 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:27:05 [end_date_ymd] => 2025-02-11 14:27:05 [RateCDR] => 1 ) [2025-02-11 14:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:27:05' and `end` < '2025-02-11 14:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:27:24] Production.INFO: count ==5070 [2025-02-11 14:27:27] Production.ERROR: pbx CDR StartTime 2025-02-11 11:27:05 - End Time 2025-02-11 14:27:05 [2025-02-11 14:27:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452342', 'tblTempUsageDetail_20' ) start [2025-02-11 14:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452342', 'tblTempUsageDetail_20' ) end [2025-02-11 14:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452342', 'tblTempVendorCDR_20' ) start [2025-02-11 14:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452342', 'tblTempVendorCDR_20' ) end [2025-02-11 14:27:27] Production.INFO: ProcessCDR(1,14452342,1,1,2) [2025-02-11 14:27:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:27:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:27:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:27:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452342', 'tblTempUsageDetail_20' ) start [2025-02-11 14:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452342', 'tblTempUsageDetail_20' ) end [2025-02-11 14:27:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:27:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:27:32] Production.INFO: ==21736== Releasing lock... [2025-02-11 14:27:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:27:32] Production.INFO: 66 MB #Memory Used# [2025-02-11 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:28:05 [end_date_ymd] => 2025-02-11 14:28:05 [RateCDR] => 1 ) [2025-02-11 14:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:28:05' and `end` < '2025-02-11 14:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:28:22] Production.INFO: count ==5074 [2025-02-11 14:28:24] Production.ERROR: pbx CDR StartTime 2025-02-11 11:28:05 - End Time 2025-02-11 14:28:05 [2025-02-11 14:28:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452347', 'tblTempUsageDetail_20' ) start [2025-02-11 14:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452347', 'tblTempUsageDetail_20' ) end [2025-02-11 14:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452347', 'tblTempVendorCDR_20' ) start [2025-02-11 14:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452347', 'tblTempVendorCDR_20' ) end [2025-02-11 14:28:25] Production.INFO: ProcessCDR(1,14452347,1,1,2) [2025-02-11 14:28:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:28:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:28:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:28:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452347', 'tblTempUsageDetail_20' ) start [2025-02-11 14:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452347', 'tblTempUsageDetail_20' ) end [2025-02-11 14:28:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:28:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:28:30] Production.INFO: ==21844== Releasing lock... [2025-02-11 14:28:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:28:30] Production.INFO: 66 MB #Memory Used# [2025-02-11 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:29:05 [end_date_ymd] => 2025-02-11 14:29:05 [RateCDR] => 1 ) [2025-02-11 14:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:29:05' and `end` < '2025-02-11 14:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:29:22] Production.INFO: count ==5066 [2025-02-11 14:29:24] Production.ERROR: pbx CDR StartTime 2025-02-11 11:29:05 - End Time 2025-02-11 14:29:05 [2025-02-11 14:29:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452352', 'tblTempUsageDetail_20' ) start [2025-02-11 14:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452352', 'tblTempUsageDetail_20' ) end [2025-02-11 14:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452352', 'tblTempVendorCDR_20' ) start [2025-02-11 14:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452352', 'tblTempVendorCDR_20' ) end [2025-02-11 14:29:24] Production.INFO: ProcessCDR(1,14452352,1,1,2) [2025-02-11 14:29:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:29:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:29:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:29:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452352', 'tblTempUsageDetail_20' ) start [2025-02-11 14:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452352', 'tblTempUsageDetail_20' ) end [2025-02-11 14:29:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:29:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:29:29] Production.INFO: ==21915== Releasing lock... [2025-02-11 14:29:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:29:29] Production.INFO: 66 MB #Memory Used# [2025-02-11 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:30:06 [end_date_ymd] => 2025-02-11 14:30:06 [RateCDR] => 1 ) [2025-02-11 14:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:30:06' and `end` < '2025-02-11 14:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:30:20] Production.INFO: count ==5052 [2025-02-11 14:30:22] Production.ERROR: pbx CDR StartTime 2025-02-11 11:30:06 - End Time 2025-02-11 14:30:06 [2025-02-11 14:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452358', 'tblTempUsageDetail_20' ) start [2025-02-11 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452358', 'tblTempUsageDetail_20' ) end [2025-02-11 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452358', 'tblTempVendorCDR_20' ) start [2025-02-11 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452358', 'tblTempVendorCDR_20' ) end [2025-02-11 14:30:22] Production.INFO: ProcessCDR(1,14452358,1,1,2) [2025-02-11 14:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452358', 'tblTempUsageDetail_20' ) start [2025-02-11 14:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452358', 'tblTempUsageDetail_20' ) end [2025-02-11 14:30:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:30:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:30:27] Production.INFO: ==21989== Releasing lock... [2025-02-11 14:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:30:27] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:31:05 [end_date_ymd] => 2025-02-11 14:31:05 [RateCDR] => 1 ) [2025-02-11 14:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:31:05' and `end` < '2025-02-11 14:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:31:19] Production.INFO: count ==5061 [2025-02-11 14:31:21] Production.ERROR: pbx CDR StartTime 2025-02-11 11:31:05 - End Time 2025-02-11 14:31:05 [2025-02-11 14:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452363', 'tblTempUsageDetail_20' ) start [2025-02-11 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452363', 'tblTempUsageDetail_20' ) end [2025-02-11 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452363', 'tblTempVendorCDR_20' ) start [2025-02-11 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452363', 'tblTempVendorCDR_20' ) end [2025-02-11 14:31:21] Production.INFO: ProcessCDR(1,14452363,1,1,2) [2025-02-11 14:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452363', 'tblTempUsageDetail_20' ) start [2025-02-11 14:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452363', 'tblTempUsageDetail_20' ) end [2025-02-11 14:31:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:31:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:31:26] Production.INFO: ==22062== Releasing lock... [2025-02-11 14:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:31:26] Production.INFO: 66 MB #Memory Used# [2025-02-11 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:32:05 [end_date_ymd] => 2025-02-11 14:32:05 [RateCDR] => 1 ) [2025-02-11 14:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:32:05' and `end` < '2025-02-11 14:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:32:22] Production.INFO: count ==5063 [2025-02-11 14:32:25] Production.ERROR: pbx CDR StartTime 2025-02-11 11:32:05 - End Time 2025-02-11 14:32:05 [2025-02-11 14:32:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452368', 'tblTempUsageDetail_20' ) start [2025-02-11 14:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452368', 'tblTempUsageDetail_20' ) end [2025-02-11 14:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452368', 'tblTempVendorCDR_20' ) start [2025-02-11 14:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452368', 'tblTempVendorCDR_20' ) end [2025-02-11 14:32:25] Production.INFO: ProcessCDR(1,14452368,1,1,2) [2025-02-11 14:32:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:32:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:32:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:32:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452368', 'tblTempUsageDetail_20' ) start [2025-02-11 14:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452368', 'tblTempUsageDetail_20' ) end [2025-02-11 14:32:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:32:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:32:30] Production.INFO: ==22134== Releasing lock... [2025-02-11 14:32:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:32:30] Production.INFO: 66 MB #Memory Used# [2025-02-11 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:33:05 [end_date_ymd] => 2025-02-11 14:33:05 [RateCDR] => 1 ) [2025-02-11 14:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:33:05' and `end` < '2025-02-11 14:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:33:19] Production.INFO: count ==5079 [2025-02-11 14:33:21] Production.ERROR: pbx CDR StartTime 2025-02-11 11:33:05 - End Time 2025-02-11 14:33:05 [2025-02-11 14:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452373', 'tblTempUsageDetail_20' ) start [2025-02-11 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452373', 'tblTempUsageDetail_20' ) end [2025-02-11 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452373', 'tblTempVendorCDR_20' ) start [2025-02-11 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452373', 'tblTempVendorCDR_20' ) end [2025-02-11 14:33:21] Production.INFO: ProcessCDR(1,14452373,1,1,2) [2025-02-11 14:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452373', 'tblTempUsageDetail_20' ) start [2025-02-11 14:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452373', 'tblTempUsageDetail_20' ) end [2025-02-11 14:33:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:33:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:33:26] Production.INFO: ==22207== Releasing lock... [2025-02-11 14:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:33:26] Production.INFO: 66 MB #Memory Used# [2025-02-11 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:34:05 [end_date_ymd] => 2025-02-11 14:34:05 [RateCDR] => 1 ) [2025-02-11 14:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:34:05' and `end` < '2025-02-11 14:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:34:19] Production.INFO: count ==5081 [2025-02-11 14:34:21] Production.ERROR: pbx CDR StartTime 2025-02-11 11:34:05 - End Time 2025-02-11 14:34:05 [2025-02-11 14:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452378', 'tblTempUsageDetail_20' ) start [2025-02-11 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452378', 'tblTempUsageDetail_20' ) end [2025-02-11 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452378', 'tblTempVendorCDR_20' ) start [2025-02-11 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452378', 'tblTempVendorCDR_20' ) end [2025-02-11 14:34:21] Production.INFO: ProcessCDR(1,14452378,1,1,2) [2025-02-11 14:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452378', 'tblTempUsageDetail_20' ) start [2025-02-11 14:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452378', 'tblTempUsageDetail_20' ) end [2025-02-11 14:34:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:34:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:34:26] Production.INFO: ==22276== Releasing lock... [2025-02-11 14:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:34:26] Production.INFO: 66 MB #Memory Used# [2025-02-11 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:35:05 [end_date_ymd] => 2025-02-11 14:35:05 [RateCDR] => 1 ) [2025-02-11 14:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:35:05' and `end` < '2025-02-11 14:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:35:27] Production.INFO: count ==5062 [2025-02-11 14:35:29] Production.ERROR: pbx CDR StartTime 2025-02-11 11:35:05 - End Time 2025-02-11 14:35:05 [2025-02-11 14:35:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452383', 'tblTempUsageDetail_20' ) start [2025-02-11 14:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452383', 'tblTempUsageDetail_20' ) end [2025-02-11 14:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452383', 'tblTempVendorCDR_20' ) start [2025-02-11 14:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452383', 'tblTempVendorCDR_20' ) end [2025-02-11 14:35:29] Production.INFO: ProcessCDR(1,14452383,1,1,2) [2025-02-11 14:35:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:35:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:35:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:35:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452383', 'tblTempUsageDetail_20' ) start [2025-02-11 14:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452383', 'tblTempUsageDetail_20' ) end [2025-02-11 14:35:34] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:35:34] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:35:34] Production.INFO: ==22358== Releasing lock... [2025-02-11 14:35:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:35:34] Production.INFO: 66 MB #Memory Used# [2025-02-11 14:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:36:06 [end_date_ymd] => 2025-02-11 14:36:06 [RateCDR] => 1 ) [2025-02-11 14:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:36:06' and `end` < '2025-02-11 14:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:36:22] Production.INFO: count ==5075 [2025-02-11 14:36:24] Production.ERROR: pbx CDR StartTime 2025-02-11 11:36:06 - End Time 2025-02-11 14:36:06 [2025-02-11 14:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452388', 'tblTempUsageDetail_20' ) start [2025-02-11 14:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452388', 'tblTempUsageDetail_20' ) end [2025-02-11 14:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452388', 'tblTempVendorCDR_20' ) start [2025-02-11 14:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452388', 'tblTempVendorCDR_20' ) end [2025-02-11 14:36:24] Production.INFO: ProcessCDR(1,14452388,1,1,2) [2025-02-11 14:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:36:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452388', 'tblTempUsageDetail_20' ) start [2025-02-11 14:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452388', 'tblTempUsageDetail_20' ) end [2025-02-11 14:36:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:36:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:36:29] Production.INFO: ==22435== Releasing lock... [2025-02-11 14:36:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:36:29] Production.INFO: 66 MB #Memory Used# [2025-02-11 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:37:05 [end_date_ymd] => 2025-02-11 14:37:05 [RateCDR] => 1 ) [2025-02-11 14:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:37:05' and `end` < '2025-02-11 14:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:37:31] Production.INFO: count ==5089 [2025-02-11 14:37:33] Production.ERROR: pbx CDR StartTime 2025-02-11 11:37:05 - End Time 2025-02-11 14:37:05 [2025-02-11 14:37:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:37:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452393', 'tblTempUsageDetail_20' ) start [2025-02-11 14:37:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452393', 'tblTempUsageDetail_20' ) end [2025-02-11 14:37:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452393', 'tblTempVendorCDR_20' ) start [2025-02-11 14:37:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452393', 'tblTempVendorCDR_20' ) end [2025-02-11 14:37:34] Production.INFO: ProcessCDR(1,14452393,1,1,2) [2025-02-11 14:37:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:37:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:37:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:37:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:37:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452393', 'tblTempUsageDetail_20' ) start [2025-02-11 14:37:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452393', 'tblTempUsageDetail_20' ) end [2025-02-11 14:37:39] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:37:39] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:37:39] Production.INFO: ==22508== Releasing lock... [2025-02-11 14:37:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:37:39] Production.INFO: 66 MB #Memory Used# [2025-02-11 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:38:05 [end_date_ymd] => 2025-02-11 14:38:05 [RateCDR] => 1 ) [2025-02-11 14:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:38:05' and `end` < '2025-02-11 14:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:38:23] Production.INFO: count ==5066 [2025-02-11 14:38:25] Production.ERROR: pbx CDR StartTime 2025-02-11 11:38:05 - End Time 2025-02-11 14:38:05 [2025-02-11 14:38:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452398', 'tblTempUsageDetail_20' ) start [2025-02-11 14:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452398', 'tblTempUsageDetail_20' ) end [2025-02-11 14:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452398', 'tblTempVendorCDR_20' ) start [2025-02-11 14:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452398', 'tblTempVendorCDR_20' ) end [2025-02-11 14:38:26] Production.INFO: ProcessCDR(1,14452398,1,1,2) [2025-02-11 14:38:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:38:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:38:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:38:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452398', 'tblTempUsageDetail_20' ) start [2025-02-11 14:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452398', 'tblTempUsageDetail_20' ) end [2025-02-11 14:38:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:38:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:38:30] Production.INFO: ==22585== Releasing lock... [2025-02-11 14:38:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:38:30] Production.INFO: 66 MB #Memory Used# [2025-02-11 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:39:05 [end_date_ymd] => 2025-02-11 14:39:05 [RateCDR] => 1 ) [2025-02-11 14:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:39:05' and `end` < '2025-02-11 14:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:39:20] Production.INFO: count ==5057 [2025-02-11 14:39:23] Production.ERROR: pbx CDR StartTime 2025-02-11 11:39:05 - End Time 2025-02-11 14:39:05 [2025-02-11 14:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452403', 'tblTempUsageDetail_20' ) start [2025-02-11 14:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452403', 'tblTempUsageDetail_20' ) end [2025-02-11 14:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452403', 'tblTempVendorCDR_20' ) start [2025-02-11 14:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452403', 'tblTempVendorCDR_20' ) end [2025-02-11 14:39:23] Production.INFO: ProcessCDR(1,14452403,1,1,2) [2025-02-11 14:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452403', 'tblTempUsageDetail_20' ) start [2025-02-11 14:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452403', 'tblTempUsageDetail_20' ) end [2025-02-11 14:39:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:39:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:39:28] Production.INFO: ==22655== Releasing lock... [2025-02-11 14:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:39:28] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 14:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:40:07 [end_date_ymd] => 2025-02-11 14:40:07 [RateCDR] => 1 ) [2025-02-11 14:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:40:07' and `end` < '2025-02-11 14:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:40:24] Production.INFO: count ==5049 [2025-02-11 14:40:27] Production.ERROR: pbx CDR StartTime 2025-02-11 11:40:07 - End Time 2025-02-11 14:40:07 [2025-02-11 14:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452409', 'tblTempUsageDetail_20' ) start [2025-02-11 14:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452409', 'tblTempUsageDetail_20' ) end [2025-02-11 14:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452409', 'tblTempVendorCDR_20' ) start [2025-02-11 14:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452409', 'tblTempVendorCDR_20' ) end [2025-02-11 14:40:27] Production.INFO: ProcessCDR(1,14452409,1,1,2) [2025-02-11 14:40:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:40:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:40:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:40:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452409', 'tblTempUsageDetail_20' ) start [2025-02-11 14:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452409', 'tblTempUsageDetail_20' ) end [2025-02-11 14:40:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:40:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:40:32] Production.INFO: ==22729== Releasing lock... [2025-02-11 14:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:40:32] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:41:05 [end_date_ymd] => 2025-02-11 14:41:05 [RateCDR] => 1 ) [2025-02-11 14:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:41:05' and `end` < '2025-02-11 14:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:41:33] Production.INFO: count ==5049 [2025-02-11 14:41:36] Production.ERROR: pbx CDR StartTime 2025-02-11 11:41:05 - End Time 2025-02-11 14:41:05 [2025-02-11 14:41:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:41:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452414', 'tblTempUsageDetail_20' ) start [2025-02-11 14:41:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452414', 'tblTempUsageDetail_20' ) end [2025-02-11 14:41:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452414', 'tblTempVendorCDR_20' ) start [2025-02-11 14:41:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452414', 'tblTempVendorCDR_20' ) end [2025-02-11 14:41:36] Production.INFO: ProcessCDR(1,14452414,1,1,2) [2025-02-11 14:41:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:41:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:41:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:41:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:41:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452414', 'tblTempUsageDetail_20' ) start [2025-02-11 14:41:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452414', 'tblTempUsageDetail_20' ) end [2025-02-11 14:41:41] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:41:41] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:41:41] Production.INFO: ==22804== Releasing lock... [2025-02-11 14:41:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:41:41] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 14:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:42:06 [end_date_ymd] => 2025-02-11 14:42:06 [RateCDR] => 1 ) [2025-02-11 14:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:42:06' and `end` < '2025-02-11 14:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:42:32] Production.INFO: count ==5057 [2025-02-11 14:42:35] Production.ERROR: pbx CDR StartTime 2025-02-11 11:42:06 - End Time 2025-02-11 14:42:06 [2025-02-11 14:42:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:42:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452419', 'tblTempUsageDetail_20' ) start [2025-02-11 14:42:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452419', 'tblTempUsageDetail_20' ) end [2025-02-11 14:42:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452419', 'tblTempVendorCDR_20' ) start [2025-02-11 14:42:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452419', 'tblTempVendorCDR_20' ) end [2025-02-11 14:42:35] Production.INFO: ProcessCDR(1,14452419,1,1,2) [2025-02-11 14:42:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:42:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:42:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:42:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:42:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452419', 'tblTempUsageDetail_20' ) start [2025-02-11 14:42:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452419', 'tblTempUsageDetail_20' ) end [2025-02-11 14:42:40] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:42:40] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:42:40] Production.INFO: ==22879== Releasing lock... [2025-02-11 14:42:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:42:40] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:43:05 [end_date_ymd] => 2025-02-11 14:43:05 [RateCDR] => 1 ) [2025-02-11 14:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:43:05' and `end` < '2025-02-11 14:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:43:34] Production.INFO: count ==5064 [2025-02-11 14:43:36] Production.ERROR: pbx CDR StartTime 2025-02-11 11:43:05 - End Time 2025-02-11 14:43:05 [2025-02-11 14:43:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:43:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452424', 'tblTempUsageDetail_20' ) start [2025-02-11 14:43:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452424', 'tblTempUsageDetail_20' ) end [2025-02-11 14:43:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452424', 'tblTempVendorCDR_20' ) start [2025-02-11 14:43:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452424', 'tblTempVendorCDR_20' ) end [2025-02-11 14:43:37] Production.INFO: ProcessCDR(1,14452424,1,1,2) [2025-02-11 14:43:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:43:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:43:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:43:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:43:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452424', 'tblTempUsageDetail_20' ) start [2025-02-11 14:43:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452424', 'tblTempUsageDetail_20' ) end [2025-02-11 14:43:42] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:43:42] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:43:42] Production.INFO: ==22989== Releasing lock... [2025-02-11 14:43:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:43:42] Production.INFO: 66 MB #Memory Used# [2025-02-11 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:44:05 [end_date_ymd] => 2025-02-11 14:44:05 [RateCDR] => 1 ) [2025-02-11 14:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:44:05' and `end` < '2025-02-11 14:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:44:31] Production.INFO: count ==5089 [2025-02-11 14:44:33] Production.ERROR: pbx CDR StartTime 2025-02-11 11:44:05 - End Time 2025-02-11 14:44:05 [2025-02-11 14:44:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:44:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452429', 'tblTempUsageDetail_20' ) start [2025-02-11 14:44:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452429', 'tblTempUsageDetail_20' ) end [2025-02-11 14:44:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452429', 'tblTempVendorCDR_20' ) start [2025-02-11 14:44:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452429', 'tblTempVendorCDR_20' ) end [2025-02-11 14:44:33] Production.INFO: ProcessCDR(1,14452429,1,1,2) [2025-02-11 14:44:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:44:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:44:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:44:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:44:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452429', 'tblTempUsageDetail_20' ) start [2025-02-11 14:44:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452429', 'tblTempUsageDetail_20' ) end [2025-02-11 14:44:39] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:44:39] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:44:39] Production.INFO: ==23058== Releasing lock... [2025-02-11 14:44:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:44:39] Production.INFO: 66 MB #Memory Used# [2025-02-11 14:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:45:06 [end_date_ymd] => 2025-02-11 14:45:06 [RateCDR] => 1 ) [2025-02-11 14:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:45:06' and `end` < '2025-02-11 14:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:45:26] Production.INFO: count ==5115 [2025-02-11 14:45:29] Production.ERROR: pbx CDR StartTime 2025-02-11 11:45:06 - End Time 2025-02-11 14:45:06 [2025-02-11 14:45:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452434', 'tblTempUsageDetail_20' ) start [2025-02-11 14:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452434', 'tblTempUsageDetail_20' ) end [2025-02-11 14:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452434', 'tblTempVendorCDR_20' ) start [2025-02-11 14:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452434', 'tblTempVendorCDR_20' ) end [2025-02-11 14:45:29] Production.INFO: ProcessCDR(1,14452434,1,1,2) [2025-02-11 14:45:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:45:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:45:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:45:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452434', 'tblTempUsageDetail_20' ) start [2025-02-11 14:45:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452434', 'tblTempUsageDetail_20' ) end [2025-02-11 14:45:33] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:45:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:45:33] Production.INFO: ==23130== Releasing lock... [2025-02-11 14:45:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:45:33] Production.INFO: 66.25 MB #Memory Used# [2025-02-11 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:46:05 [end_date_ymd] => 2025-02-11 14:46:05 [RateCDR] => 1 ) [2025-02-11 14:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:46:05' and `end` < '2025-02-11 14:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:46:24] Production.INFO: count ==5120 [2025-02-11 14:46:27] Production.ERROR: pbx CDR StartTime 2025-02-11 11:46:05 - End Time 2025-02-11 14:46:05 [2025-02-11 14:46:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452439', 'tblTempUsageDetail_20' ) start [2025-02-11 14:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452439', 'tblTempUsageDetail_20' ) end [2025-02-11 14:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452439', 'tblTempVendorCDR_20' ) start [2025-02-11 14:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452439', 'tblTempVendorCDR_20' ) end [2025-02-11 14:46:27] Production.INFO: ProcessCDR(1,14452439,1,1,2) [2025-02-11 14:46:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:46:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:46:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:46:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:46:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452439', 'tblTempUsageDetail_20' ) start [2025-02-11 14:46:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452439', 'tblTempUsageDetail_20' ) end [2025-02-11 14:46:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:46:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:46:32] Production.INFO: ==23206== Releasing lock... [2025-02-11 14:46:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:46:32] Production.INFO: 66.25 MB #Memory Used# [2025-02-11 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:47:05 [end_date_ymd] => 2025-02-11 14:47:05 [RateCDR] => 1 ) [2025-02-11 14:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:47:05' and `end` < '2025-02-11 14:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:47:19] Production.INFO: count ==5121 [2025-02-11 14:47:21] Production.ERROR: pbx CDR StartTime 2025-02-11 11:47:05 - End Time 2025-02-11 14:47:05 [2025-02-11 14:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452444', 'tblTempUsageDetail_20' ) start [2025-02-11 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452444', 'tblTempUsageDetail_20' ) end [2025-02-11 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452444', 'tblTempVendorCDR_20' ) start [2025-02-11 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452444', 'tblTempVendorCDR_20' ) end [2025-02-11 14:47:21] Production.INFO: ProcessCDR(1,14452444,1,1,2) [2025-02-11 14:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452444', 'tblTempUsageDetail_20' ) start [2025-02-11 14:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452444', 'tblTempUsageDetail_20' ) end [2025-02-11 14:47:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:47:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:47:26] Production.INFO: ==23276== Releasing lock... [2025-02-11 14:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:47:26] Production.INFO: 66.25 MB #Memory Used# [2025-02-11 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:48:05 [end_date_ymd] => 2025-02-11 14:48:05 [RateCDR] => 1 ) [2025-02-11 14:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:48:05' and `end` < '2025-02-11 14:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:48:27] Production.INFO: count ==5194 [2025-02-11 14:48:30] Production.ERROR: pbx CDR StartTime 2025-02-11 11:48:05 - End Time 2025-02-11 14:48:05 [2025-02-11 14:48:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452449', 'tblTempUsageDetail_20' ) start [2025-02-11 14:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452449', 'tblTempUsageDetail_20' ) end [2025-02-11 14:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452449', 'tblTempVendorCDR_20' ) start [2025-02-11 14:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452449', 'tblTempVendorCDR_20' ) end [2025-02-11 14:48:30] Production.INFO: ProcessCDR(1,14452449,1,1,2) [2025-02-11 14:48:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:48:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:48:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:48:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:48:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452449', 'tblTempUsageDetail_20' ) start [2025-02-11 14:48:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452449', 'tblTempUsageDetail_20' ) end [2025-02-11 14:48:35] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:48:35] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:48:35] Production.INFO: ==23347== Releasing lock... [2025-02-11 14:48:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:48:35] Production.INFO: 67 MB #Memory Used# [2025-02-11 14:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:49:05 [end_date_ymd] => 2025-02-11 14:49:05 [RateCDR] => 1 ) [2025-02-11 14:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:49:05' and `end` < '2025-02-11 14:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:49:23] Production.INFO: count ==5203 [2025-02-11 14:49:25] Production.ERROR: pbx CDR StartTime 2025-02-11 11:49:05 - End Time 2025-02-11 14:49:05 [2025-02-11 14:49:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452454', 'tblTempUsageDetail_20' ) start [2025-02-11 14:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452454', 'tblTempUsageDetail_20' ) end [2025-02-11 14:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452454', 'tblTempVendorCDR_20' ) start [2025-02-11 14:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452454', 'tblTempVendorCDR_20' ) end [2025-02-11 14:49:25] Production.INFO: ProcessCDR(1,14452454,1,1,2) [2025-02-11 14:49:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:49:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:49:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:49:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452454', 'tblTempUsageDetail_20' ) start [2025-02-11 14:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452454', 'tblTempUsageDetail_20' ) end [2025-02-11 14:49:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:49:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:49:30] Production.INFO: ==23424== Releasing lock... [2025-02-11 14:49:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:49:30] Production.INFO: 67 MB #Memory Used# [2025-02-11 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:50:06 [end_date_ymd] => 2025-02-11 14:50:06 [RateCDR] => 1 ) [2025-02-11 14:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:50:06' and `end` < '2025-02-11 14:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:50:23] Production.INFO: count ==5207 [2025-02-11 14:50:25] Production.ERROR: pbx CDR StartTime 2025-02-11 11:50:06 - End Time 2025-02-11 14:50:06 [2025-02-11 14:50:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452460', 'tblTempUsageDetail_20' ) start [2025-02-11 14:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452460', 'tblTempUsageDetail_20' ) end [2025-02-11 14:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452460', 'tblTempVendorCDR_20' ) start [2025-02-11 14:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452460', 'tblTempVendorCDR_20' ) end [2025-02-11 14:50:25] Production.INFO: ProcessCDR(1,14452460,1,1,2) [2025-02-11 14:50:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:50:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:50:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:50:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452460', 'tblTempUsageDetail_20' ) start [2025-02-11 14:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452460', 'tblTempUsageDetail_20' ) end [2025-02-11 14:50:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:50:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:50:30] Production.INFO: ==23503== Releasing lock... [2025-02-11 14:50:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:50:30] Production.INFO: 67 MB #Memory Used# [2025-02-11 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:51:05 [end_date_ymd] => 2025-02-11 14:51:05 [RateCDR] => 1 ) [2025-02-11 14:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:51:05' and `end` < '2025-02-11 14:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:51:19] Production.INFO: count ==5189 [2025-02-11 14:51:21] Production.ERROR: pbx CDR StartTime 2025-02-11 11:51:05 - End Time 2025-02-11 14:51:05 [2025-02-11 14:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452465', 'tblTempUsageDetail_20' ) start [2025-02-11 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452465', 'tblTempUsageDetail_20' ) end [2025-02-11 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452465', 'tblTempVendorCDR_20' ) start [2025-02-11 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452465', 'tblTempVendorCDR_20' ) end [2025-02-11 14:51:22] Production.INFO: ProcessCDR(1,14452465,1,1,2) [2025-02-11 14:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452465', 'tblTempUsageDetail_20' ) start [2025-02-11 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452465', 'tblTempUsageDetail_20' ) end [2025-02-11 14:51:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:51:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:51:26] Production.INFO: ==23575== Releasing lock... [2025-02-11 14:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:51:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-11 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:52:05 [end_date_ymd] => 2025-02-11 14:52:05 [RateCDR] => 1 ) [2025-02-11 14:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:52:05' and `end` < '2025-02-11 14:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:52:20] Production.INFO: count ==5189 [2025-02-11 14:52:22] Production.ERROR: pbx CDR StartTime 2025-02-11 11:52:05 - End Time 2025-02-11 14:52:05 [2025-02-11 14:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452470', 'tblTempUsageDetail_20' ) start [2025-02-11 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452470', 'tblTempUsageDetail_20' ) end [2025-02-11 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452470', 'tblTempVendorCDR_20' ) start [2025-02-11 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452470', 'tblTempVendorCDR_20' ) end [2025-02-11 14:52:22] Production.INFO: ProcessCDR(1,14452470,1,1,2) [2025-02-11 14:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452470', 'tblTempUsageDetail_20' ) start [2025-02-11 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452470', 'tblTempUsageDetail_20' ) end [2025-02-11 14:52:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:52:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:52:27] Production.INFO: ==23647== Releasing lock... [2025-02-11 14:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:52:27] Production.INFO: 66.75 MB #Memory Used# [2025-02-11 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:53:05 [end_date_ymd] => 2025-02-11 14:53:05 [RateCDR] => 1 ) [2025-02-11 14:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:53:05' and `end` < '2025-02-11 14:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:53:22] Production.INFO: count ==5258 [2025-02-11 14:53:25] Production.ERROR: pbx CDR StartTime 2025-02-11 11:53:05 - End Time 2025-02-11 14:53:05 [2025-02-11 14:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452475', 'tblTempUsageDetail_20' ) start [2025-02-11 14:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452475', 'tblTempUsageDetail_20' ) end [2025-02-11 14:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452475', 'tblTempVendorCDR_20' ) start [2025-02-11 14:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452475', 'tblTempVendorCDR_20' ) end [2025-02-11 14:53:25] Production.INFO: ProcessCDR(1,14452475,1,1,2) [2025-02-11 14:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:53:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:53:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452475', 'tblTempUsageDetail_20' ) start [2025-02-11 14:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452475', 'tblTempUsageDetail_20' ) end [2025-02-11 14:53:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:53:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:53:30] Production.INFO: ==23717== Releasing lock... [2025-02-11 14:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:53:30] Production.INFO: 67.5 MB #Memory Used# [2025-02-11 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:54:05 [end_date_ymd] => 2025-02-11 14:54:05 [RateCDR] => 1 ) [2025-02-11 14:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:54:05' and `end` < '2025-02-11 14:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:54:20] Production.INFO: count ==5262 [2025-02-11 14:54:22] Production.ERROR: pbx CDR StartTime 2025-02-11 11:54:05 - End Time 2025-02-11 14:54:05 [2025-02-11 14:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452480', 'tblTempUsageDetail_20' ) start [2025-02-11 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452480', 'tblTempUsageDetail_20' ) end [2025-02-11 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452480', 'tblTempVendorCDR_20' ) start [2025-02-11 14:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452480', 'tblTempVendorCDR_20' ) end [2025-02-11 14:54:22] Production.INFO: ProcessCDR(1,14452480,1,1,2) [2025-02-11 14:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452480', 'tblTempUsageDetail_20' ) start [2025-02-11 14:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452480', 'tblTempUsageDetail_20' ) end [2025-02-11 14:54:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:54:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:54:28] Production.INFO: ==23812== Releasing lock... [2025-02-11 14:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:54:28] Production.INFO: 67.5 MB #Memory Used# [2025-02-11 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:55:05 [end_date_ymd] => 2025-02-11 14:55:05 [RateCDR] => 1 ) [2025-02-11 14:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:55:05' and `end` < '2025-02-11 14:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:55:24] Production.INFO: count ==5295 [2025-02-11 14:55:26] Production.ERROR: pbx CDR StartTime 2025-02-11 11:55:05 - End Time 2025-02-11 14:55:05 [2025-02-11 14:55:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452485', 'tblTempUsageDetail_20' ) start [2025-02-11 14:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452485', 'tblTempUsageDetail_20' ) end [2025-02-11 14:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452485', 'tblTempVendorCDR_20' ) start [2025-02-11 14:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452485', 'tblTempVendorCDR_20' ) end [2025-02-11 14:55:27] Production.INFO: ProcessCDR(1,14452485,1,1,2) [2025-02-11 14:55:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:55:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:55:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:55:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:55:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452485', 'tblTempUsageDetail_20' ) start [2025-02-11 14:55:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452485', 'tblTempUsageDetail_20' ) end [2025-02-11 14:55:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:55:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:55:32] Production.INFO: ==23892== Releasing lock... [2025-02-11 14:55:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:55:32] Production.INFO: 67.75 MB #Memory Used# [2025-02-11 14:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:56:06 [end_date_ymd] => 2025-02-11 14:56:06 [RateCDR] => 1 ) [2025-02-11 14:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:56:06' and `end` < '2025-02-11 14:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:56:23] Production.INFO: count ==5299 [2025-02-11 14:56:26] Production.ERROR: pbx CDR StartTime 2025-02-11 11:56:06 - End Time 2025-02-11 14:56:06 [2025-02-11 14:56:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452490', 'tblTempUsageDetail_20' ) start [2025-02-11 14:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452490', 'tblTempUsageDetail_20' ) end [2025-02-11 14:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452490', 'tblTempVendorCDR_20' ) start [2025-02-11 14:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452490', 'tblTempVendorCDR_20' ) end [2025-02-11 14:56:26] Production.INFO: ProcessCDR(1,14452490,1,1,2) [2025-02-11 14:56:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:56:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:56:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:56:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452490', 'tblTempUsageDetail_20' ) start [2025-02-11 14:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452490', 'tblTempUsageDetail_20' ) end [2025-02-11 14:56:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:56:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:56:31] Production.INFO: ==23974== Releasing lock... [2025-02-11 14:56:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:56:31] Production.INFO: 67.75 MB #Memory Used# [2025-02-11 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:57:05 [end_date_ymd] => 2025-02-11 14:57:05 [RateCDR] => 1 ) [2025-02-11 14:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:57:05' and `end` < '2025-02-11 14:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:57:21] Production.INFO: count ==5312 [2025-02-11 14:57:23] Production.ERROR: pbx CDR StartTime 2025-02-11 11:57:05 - End Time 2025-02-11 14:57:05 [2025-02-11 14:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452495', 'tblTempUsageDetail_20' ) start [2025-02-11 14:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452495', 'tblTempUsageDetail_20' ) end [2025-02-11 14:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452495', 'tblTempVendorCDR_20' ) start [2025-02-11 14:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452495', 'tblTempVendorCDR_20' ) end [2025-02-11 14:57:23] Production.INFO: ProcessCDR(1,14452495,1,1,2) [2025-02-11 14:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452495', 'tblTempUsageDetail_20' ) start [2025-02-11 14:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452495', 'tblTempUsageDetail_20' ) end [2025-02-11 14:57:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:57:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:57:29] Production.INFO: ==24056== Releasing lock... [2025-02-11 14:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:57:29] Production.INFO: 67.75 MB #Memory Used# [2025-02-11 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:58:05 [end_date_ymd] => 2025-02-11 14:58:05 [RateCDR] => 1 ) [2025-02-11 14:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:58:05' and `end` < '2025-02-11 14:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:58:20] Production.INFO: count ==5327 [2025-02-11 14:58:22] Production.ERROR: pbx CDR StartTime 2025-02-11 11:58:05 - End Time 2025-02-11 14:58:05 [2025-02-11 14:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452500', 'tblTempUsageDetail_20' ) start [2025-02-11 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452500', 'tblTempUsageDetail_20' ) end [2025-02-11 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452500', 'tblTempVendorCDR_20' ) start [2025-02-11 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452500', 'tblTempVendorCDR_20' ) end [2025-02-11 14:58:22] Production.INFO: ProcessCDR(1,14452500,1,1,2) [2025-02-11 14:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452500', 'tblTempUsageDetail_20' ) start [2025-02-11 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452500', 'tblTempUsageDetail_20' ) end [2025-02-11 14:58:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:58:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:58:28] Production.INFO: ==24174== Releasing lock... [2025-02-11 14:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:58:28] Production.INFO: 68 MB #Memory Used# [2025-02-11 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 11:59:05 [end_date_ymd] => 2025-02-11 14:59:05 [RateCDR] => 1 ) [2025-02-11 14:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 11:59:05' and `end` < '2025-02-11 14:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 14:59:19] Production.INFO: count ==5352 [2025-02-11 14:59:21] Production.ERROR: pbx CDR StartTime 2025-02-11 11:59:05 - End Time 2025-02-11 14:59:05 [2025-02-11 14:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452505', 'tblTempUsageDetail_20' ) start [2025-02-11 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452505', 'tblTempUsageDetail_20' ) end [2025-02-11 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452505', 'tblTempVendorCDR_20' ) start [2025-02-11 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452505', 'tblTempVendorCDR_20' ) end [2025-02-11 14:59:22] Production.INFO: ProcessCDR(1,14452505,1,1,2) [2025-02-11 14:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 14:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 14:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452505', 'tblTempUsageDetail_20' ) start [2025-02-11 14:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452505', 'tblTempUsageDetail_20' ) end [2025-02-11 14:59:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 14:59:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 14:59:25] Production.INFO: ==24258== Releasing lock... [2025-02-11 14:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 14:59:25] Production.INFO: 68 MB #Memory Used# [2025-02-11 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:00:05 [end_date_ymd] => 2025-02-11 15:00:05 [RateCDR] => 1 ) [2025-02-11 15:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:00:05' and `end` < '2025-02-11 15:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:00:25] Production.INFO: count ==5433 [2025-02-11 15:00:28] Production.ERROR: pbx CDR StartTime 2025-02-11 12:00:05 - End Time 2025-02-11 15:00:05 [2025-02-11 15:00:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452511', 'tblTempUsageDetail_20' ) start [2025-02-11 15:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452511', 'tblTempUsageDetail_20' ) end [2025-02-11 15:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452511', 'tblTempVendorCDR_20' ) start [2025-02-11 15:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452511', 'tblTempVendorCDR_20' ) end [2025-02-11 15:00:28] Production.INFO: ProcessCDR(1,14452511,1,1,2) [2025-02-11 15:00:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452511', 'tblTempUsageDetail_20' ) start [2025-02-11 15:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452511', 'tblTempUsageDetail_20' ) end [2025-02-11 15:00:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:00:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:00:32] Production.INFO: ==24334== Releasing lock... [2025-02-11 15:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:00:32] Production.INFO: 68.75 MB #Memory Used# [2025-02-11 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:01:05 [end_date_ymd] => 2025-02-11 15:01:05 [RateCDR] => 1 ) [2025-02-11 15:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:01:05' and `end` < '2025-02-11 15:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:01:22] Production.INFO: count ==5377 [2025-02-11 15:01:24] Production.ERROR: pbx CDR StartTime 2025-02-11 12:01:05 - End Time 2025-02-11 15:01:05 [2025-02-11 15:01:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452516', 'tblTempUsageDetail_20' ) start [2025-02-11 15:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452516', 'tblTempUsageDetail_20' ) end [2025-02-11 15:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452516', 'tblTempVendorCDR_20' ) start [2025-02-11 15:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452516', 'tblTempVendorCDR_20' ) end [2025-02-11 15:01:24] Production.INFO: ProcessCDR(1,14452516,1,1,2) [2025-02-11 15:01:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452516', 'tblTempUsageDetail_20' ) start [2025-02-11 15:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452516', 'tblTempUsageDetail_20' ) end [2025-02-11 15:01:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:01:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:01:30] Production.INFO: ==24504== Releasing lock... [2025-02-11 15:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:01:30] Production.INFO: 68.25 MB #Memory Used# [2025-02-11 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:02:05 [end_date_ymd] => 2025-02-11 15:02:05 [RateCDR] => 1 ) [2025-02-11 15:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:02:05' and `end` < '2025-02-11 15:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:02:23] Production.INFO: count ==5377 [2025-02-11 15:02:25] Production.ERROR: pbx CDR StartTime 2025-02-11 12:02:05 - End Time 2025-02-11 15:02:05 [2025-02-11 15:02:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452521', 'tblTempUsageDetail_20' ) start [2025-02-11 15:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452521', 'tblTempUsageDetail_20' ) end [2025-02-11 15:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452521', 'tblTempVendorCDR_20' ) start [2025-02-11 15:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452521', 'tblTempVendorCDR_20' ) end [2025-02-11 15:02:25] Production.INFO: ProcessCDR(1,14452521,1,1,2) [2025-02-11 15:02:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:02:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:02:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:02:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452521', 'tblTempUsageDetail_20' ) start [2025-02-11 15:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452521', 'tblTempUsageDetail_20' ) end [2025-02-11 15:02:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:02:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:02:31] Production.INFO: ==24585== Releasing lock... [2025-02-11 15:02:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:02:31] Production.INFO: 68.25 MB #Memory Used# [2025-02-11 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:03:05 [end_date_ymd] => 2025-02-11 15:03:05 [RateCDR] => 1 ) [2025-02-11 15:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:03:05' and `end` < '2025-02-11 15:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:03:24] Production.INFO: count ==5359 [2025-02-11 15:03:26] Production.ERROR: pbx CDR StartTime 2025-02-11 12:03:05 - End Time 2025-02-11 15:03:05 [2025-02-11 15:03:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452526', 'tblTempUsageDetail_20' ) start [2025-02-11 15:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452526', 'tblTempUsageDetail_20' ) end [2025-02-11 15:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452526', 'tblTempVendorCDR_20' ) start [2025-02-11 15:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452526', 'tblTempVendorCDR_20' ) end [2025-02-11 15:03:27] Production.INFO: ProcessCDR(1,14452526,1,1,2) [2025-02-11 15:03:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:03:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452526', 'tblTempUsageDetail_20' ) start [2025-02-11 15:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452526', 'tblTempUsageDetail_20' ) end [2025-02-11 15:03:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:03:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:03:32] Production.INFO: ==24663== Releasing lock... [2025-02-11 15:03:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:03:32] Production.INFO: 68.25 MB #Memory Used# [2025-02-11 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:04:05 [end_date_ymd] => 2025-02-11 15:04:05 [RateCDR] => 1 ) [2025-02-11 15:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:04:05' and `end` < '2025-02-11 15:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:04:22] Production.INFO: count ==5353 [2025-02-11 15:04:25] Production.ERROR: pbx CDR StartTime 2025-02-11 12:04:05 - End Time 2025-02-11 15:04:05 [2025-02-11 15:04:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452531', 'tblTempUsageDetail_20' ) start [2025-02-11 15:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452531', 'tblTempUsageDetail_20' ) end [2025-02-11 15:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452531', 'tblTempVendorCDR_20' ) start [2025-02-11 15:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452531', 'tblTempVendorCDR_20' ) end [2025-02-11 15:04:25] Production.INFO: ProcessCDR(1,14452531,1,1,2) [2025-02-11 15:04:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452531', 'tblTempUsageDetail_20' ) start [2025-02-11 15:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452531', 'tblTempUsageDetail_20' ) end [2025-02-11 15:04:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:04:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:04:31] Production.INFO: ==24742== Releasing lock... [2025-02-11 15:04:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:04:31] Production.INFO: 68 MB #Memory Used# [2025-02-11 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:05:05 [end_date_ymd] => 2025-02-11 15:05:05 [RateCDR] => 1 ) [2025-02-11 15:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:05:05' and `end` < '2025-02-11 15:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:05:28] Production.INFO: count ==5322 [2025-02-11 15:05:30] Production.ERROR: pbx CDR StartTime 2025-02-11 12:05:05 - End Time 2025-02-11 15:05:05 [2025-02-11 15:05:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452536', 'tblTempUsageDetail_20' ) start [2025-02-11 15:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452536', 'tblTempUsageDetail_20' ) end [2025-02-11 15:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452536', 'tblTempVendorCDR_20' ) start [2025-02-11 15:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452536', 'tblTempVendorCDR_20' ) end [2025-02-11 15:05:31] Production.INFO: ProcessCDR(1,14452536,1,1,2) [2025-02-11 15:05:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:05:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:05:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:05:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452536', 'tblTempUsageDetail_20' ) start [2025-02-11 15:05:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452536', 'tblTempUsageDetail_20' ) end [2025-02-11 15:05:36] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:05:36] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:05:36] Production.INFO: ==24906== Releasing lock... [2025-02-11 15:05:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:05:36] Production.INFO: 67.75 MB #Memory Used# [2025-02-11 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:06:05 [end_date_ymd] => 2025-02-11 15:06:05 [RateCDR] => 1 ) [2025-02-11 15:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:06:05' and `end` < '2025-02-11 15:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:06:24] Production.INFO: count ==5252 [2025-02-11 15:06:26] Production.ERROR: pbx CDR StartTime 2025-02-11 12:06:05 - End Time 2025-02-11 15:06:05 [2025-02-11 15:06:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452541', 'tblTempUsageDetail_20' ) start [2025-02-11 15:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452541', 'tblTempUsageDetail_20' ) end [2025-02-11 15:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452541', 'tblTempVendorCDR_20' ) start [2025-02-11 15:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452541', 'tblTempVendorCDR_20' ) end [2025-02-11 15:06:26] Production.INFO: ProcessCDR(1,14452541,1,1,2) [2025-02-11 15:06:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:06:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:06:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:06:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452541', 'tblTempUsageDetail_20' ) start [2025-02-11 15:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452541', 'tblTempUsageDetail_20' ) end [2025-02-11 15:06:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:06:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:06:31] Production.INFO: ==24985== Releasing lock... [2025-02-11 15:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:06:31] Production.INFO: 67.25 MB #Memory Used# [2025-02-11 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:07:05 [end_date_ymd] => 2025-02-11 15:07:05 [RateCDR] => 1 ) [2025-02-11 15:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:07:05' and `end` < '2025-02-11 15:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:07:21] Production.INFO: count ==5165 [2025-02-11 15:07:23] Production.ERROR: pbx CDR StartTime 2025-02-11 12:07:05 - End Time 2025-02-11 15:07:05 [2025-02-11 15:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452546', 'tblTempUsageDetail_20' ) start [2025-02-11 15:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452546', 'tblTempUsageDetail_20' ) end [2025-02-11 15:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452546', 'tblTempVendorCDR_20' ) start [2025-02-11 15:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452546', 'tblTempVendorCDR_20' ) end [2025-02-11 15:07:23] Production.INFO: ProcessCDR(1,14452546,1,1,2) [2025-02-11 15:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452546', 'tblTempUsageDetail_20' ) start [2025-02-11 15:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452546', 'tblTempUsageDetail_20' ) end [2025-02-11 15:07:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:07:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:07:28] Production.INFO: ==25066== Releasing lock... [2025-02-11 15:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:07:28] Production.INFO: 66.75 MB #Memory Used# [2025-02-11 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:08:05 [end_date_ymd] => 2025-02-11 15:08:05 [RateCDR] => 1 ) [2025-02-11 15:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:08:05' and `end` < '2025-02-11 15:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:08:23] Production.INFO: count ==5122 [2025-02-11 15:08:26] Production.ERROR: pbx CDR StartTime 2025-02-11 12:08:05 - End Time 2025-02-11 15:08:05 [2025-02-11 15:08:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452551', 'tblTempUsageDetail_20' ) start [2025-02-11 15:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452551', 'tblTempUsageDetail_20' ) end [2025-02-11 15:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452551', 'tblTempVendorCDR_20' ) start [2025-02-11 15:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452551', 'tblTempVendorCDR_20' ) end [2025-02-11 15:08:26] Production.INFO: ProcessCDR(1,14452551,1,1,2) [2025-02-11 15:08:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:08:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:08:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:08:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452551', 'tblTempUsageDetail_20' ) start [2025-02-11 15:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452551', 'tblTempUsageDetail_20' ) end [2025-02-11 15:08:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:08:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:08:31] Production.INFO: ==25227== Releasing lock... [2025-02-11 15:08:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:08:31] Production.INFO: 66.25 MB #Memory Used# [2025-02-11 15:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:09:06 [end_date_ymd] => 2025-02-11 15:09:06 [RateCDR] => 1 ) [2025-02-11 15:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:09:06' and `end` < '2025-02-11 15:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:09:20] Production.INFO: count ==5126 [2025-02-11 15:09:22] Production.ERROR: pbx CDR StartTime 2025-02-11 12:09:06 - End Time 2025-02-11 15:09:06 [2025-02-11 15:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452556', 'tblTempUsageDetail_20' ) start [2025-02-11 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452556', 'tblTempUsageDetail_20' ) end [2025-02-11 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452556', 'tblTempVendorCDR_20' ) start [2025-02-11 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452556', 'tblTempVendorCDR_20' ) end [2025-02-11 15:09:22] Production.INFO: ProcessCDR(1,14452556,1,1,2) [2025-02-11 15:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452556', 'tblTempUsageDetail_20' ) start [2025-02-11 15:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452556', 'tblTempUsageDetail_20' ) end [2025-02-11 15:09:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:09:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:09:27] Production.INFO: ==25306== Releasing lock... [2025-02-11 15:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:09:27] Production.INFO: 66.5 MB #Memory Used# [2025-02-11 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:10:06 [end_date_ymd] => 2025-02-11 15:10:06 [RateCDR] => 1 ) [2025-02-11 15:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:10:06' and `end` < '2025-02-11 15:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:10:22] Production.INFO: count ==5102 [2025-02-11 15:10:24] Production.ERROR: pbx CDR StartTime 2025-02-11 12:10:06 - End Time 2025-02-11 15:10:06 [2025-02-11 15:10:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452562', 'tblTempUsageDetail_20' ) start [2025-02-11 15:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452562', 'tblTempUsageDetail_20' ) end [2025-02-11 15:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452562', 'tblTempVendorCDR_20' ) start [2025-02-11 15:10:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452562', 'tblTempVendorCDR_20' ) end [2025-02-11 15:10:24] Production.INFO: ProcessCDR(1,14452562,1,1,2) [2025-02-11 15:10:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:10:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:10:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452562', 'tblTempUsageDetail_20' ) start [2025-02-11 15:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452562', 'tblTempUsageDetail_20' ) end [2025-02-11 15:10:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:10:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:10:29] Production.INFO: ==25384== Releasing lock... [2025-02-11 15:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:10:29] Production.INFO: 66.25 MB #Memory Used# [2025-02-11 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:11:05 [end_date_ymd] => 2025-02-11 15:11:05 [RateCDR] => 1 ) [2025-02-11 15:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:11:05' and `end` < '2025-02-11 15:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:11:20] Production.INFO: count ==5092 [2025-02-11 15:11:22] Production.ERROR: pbx CDR StartTime 2025-02-11 12:11:05 - End Time 2025-02-11 15:11:05 [2025-02-11 15:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452567', 'tblTempUsageDetail_20' ) start [2025-02-11 15:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452567', 'tblTempUsageDetail_20' ) end [2025-02-11 15:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452567', 'tblTempVendorCDR_20' ) start [2025-02-11 15:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452567', 'tblTempVendorCDR_20' ) end [2025-02-11 15:11:23] Production.INFO: ProcessCDR(1,14452567,1,1,2) [2025-02-11 15:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452567', 'tblTempUsageDetail_20' ) start [2025-02-11 15:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452567', 'tblTempUsageDetail_20' ) end [2025-02-11 15:11:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:11:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:11:27] Production.INFO: ==25466== Releasing lock... [2025-02-11 15:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:11:27] Production.INFO: 66 MB #Memory Used# [2025-02-11 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:12:05 [end_date_ymd] => 2025-02-11 15:12:05 [RateCDR] => 1 ) [2025-02-11 15:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:12:05' and `end` < '2025-02-11 15:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:12:22] Production.INFO: count ==5086 [2025-02-11 15:12:24] Production.ERROR: pbx CDR StartTime 2025-02-11 12:12:05 - End Time 2025-02-11 15:12:05 [2025-02-11 15:12:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452572', 'tblTempUsageDetail_20' ) start [2025-02-11 15:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452572', 'tblTempUsageDetail_20' ) end [2025-02-11 15:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452572', 'tblTempVendorCDR_20' ) start [2025-02-11 15:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452572', 'tblTempVendorCDR_20' ) end [2025-02-11 15:12:24] Production.INFO: ProcessCDR(1,14452572,1,1,2) [2025-02-11 15:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:12:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:12:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:12:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452572', 'tblTempUsageDetail_20' ) start [2025-02-11 15:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452572', 'tblTempUsageDetail_20' ) end [2025-02-11 15:12:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:12:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:12:29] Production.INFO: ==25621== Releasing lock... [2025-02-11 15:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:12:29] Production.INFO: 66 MB #Memory Used# [2025-02-11 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:13:05 [end_date_ymd] => 2025-02-11 15:13:05 [RateCDR] => 1 ) [2025-02-11 15:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:13:05' and `end` < '2025-02-11 15:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:13:21] Production.INFO: count ==5067 [2025-02-11 15:13:23] Production.ERROR: pbx CDR StartTime 2025-02-11 12:13:05 - End Time 2025-02-11 15:13:05 [2025-02-11 15:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452577', 'tblTempUsageDetail_20' ) start [2025-02-11 15:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452577', 'tblTempUsageDetail_20' ) end [2025-02-11 15:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452577', 'tblTempVendorCDR_20' ) start [2025-02-11 15:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452577', 'tblTempVendorCDR_20' ) end [2025-02-11 15:13:24] Production.INFO: ProcessCDR(1,14452577,1,1,2) [2025-02-11 15:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452577', 'tblTempUsageDetail_20' ) start [2025-02-11 15:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452577', 'tblTempUsageDetail_20' ) end [2025-02-11 15:13:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:13:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:13:29] Production.INFO: ==25705== Releasing lock... [2025-02-11 15:13:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:13:29] Production.INFO: 66 MB #Memory Used# [2025-02-11 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:14:05 [end_date_ymd] => 2025-02-11 15:14:05 [RateCDR] => 1 ) [2025-02-11 15:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:14:05' and `end` < '2025-02-11 15:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:14:19] Production.INFO: count ==5063 [2025-02-11 15:14:21] Production.ERROR: pbx CDR StartTime 2025-02-11 12:14:05 - End Time 2025-02-11 15:14:05 [2025-02-11 15:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452582', 'tblTempUsageDetail_20' ) start [2025-02-11 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452582', 'tblTempUsageDetail_20' ) end [2025-02-11 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452582', 'tblTempVendorCDR_20' ) start [2025-02-11 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452582', 'tblTempVendorCDR_20' ) end [2025-02-11 15:14:22] Production.INFO: ProcessCDR(1,14452582,1,1,2) [2025-02-11 15:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452582', 'tblTempUsageDetail_20' ) start [2025-02-11 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452582', 'tblTempUsageDetail_20' ) end [2025-02-11 15:14:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:14:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:14:27] Production.INFO: ==25821== Releasing lock... [2025-02-11 15:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:14:27] Production.INFO: 66 MB #Memory Used# [2025-02-11 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:15:05 [end_date_ymd] => 2025-02-11 15:15:05 [RateCDR] => 1 ) [2025-02-11 15:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:15:05' and `end` < '2025-02-11 15:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:15:19] Production.INFO: count ==5056 [2025-02-11 15:15:21] Production.ERROR: pbx CDR StartTime 2025-02-11 12:15:05 - End Time 2025-02-11 15:15:05 [2025-02-11 15:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452587', 'tblTempUsageDetail_20' ) start [2025-02-11 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452587', 'tblTempUsageDetail_20' ) end [2025-02-11 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452587', 'tblTempVendorCDR_20' ) start [2025-02-11 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452587', 'tblTempVendorCDR_20' ) end [2025-02-11 15:15:21] Production.INFO: ProcessCDR(1,14452587,1,1,2) [2025-02-11 15:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452587', 'tblTempUsageDetail_20' ) start [2025-02-11 15:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452587', 'tblTempUsageDetail_20' ) end [2025-02-11 15:15:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:15:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:15:26] Production.INFO: ==25977== Releasing lock... [2025-02-11 15:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:15:26] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:16:05 [end_date_ymd] => 2025-02-11 15:16:05 [RateCDR] => 1 ) [2025-02-11 15:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:16:05' and `end` < '2025-02-11 15:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:16:23] Production.INFO: count ==5033 [2025-02-11 15:16:25] Production.ERROR: pbx CDR StartTime 2025-02-11 12:16:05 - End Time 2025-02-11 15:16:05 [2025-02-11 15:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452592', 'tblTempUsageDetail_20' ) start [2025-02-11 15:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452592', 'tblTempUsageDetail_20' ) end [2025-02-11 15:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452592', 'tblTempVendorCDR_20' ) start [2025-02-11 15:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452592', 'tblTempVendorCDR_20' ) end [2025-02-11 15:16:25] Production.INFO: ProcessCDR(1,14452592,1,1,2) [2025-02-11 15:16:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:16:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:16:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452592', 'tblTempUsageDetail_20' ) start [2025-02-11 15:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452592', 'tblTempUsageDetail_20' ) end [2025-02-11 15:16:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:16:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:16:30] Production.INFO: ==26058== Releasing lock... [2025-02-11 15:16:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:16:30] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:17:05 [end_date_ymd] => 2025-02-11 15:17:05 [RateCDR] => 1 ) [2025-02-11 15:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:17:05' and `end` < '2025-02-11 15:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:17:19] Production.INFO: count ==5025 [2025-02-11 15:17:21] Production.ERROR: pbx CDR StartTime 2025-02-11 12:17:05 - End Time 2025-02-11 15:17:05 [2025-02-11 15:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452597', 'tblTempUsageDetail_20' ) start [2025-02-11 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452597', 'tblTempUsageDetail_20' ) end [2025-02-11 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452597', 'tblTempVendorCDR_20' ) start [2025-02-11 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452597', 'tblTempVendorCDR_20' ) end [2025-02-11 15:17:22] Production.INFO: ProcessCDR(1,14452597,1,1,2) [2025-02-11 15:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452597', 'tblTempUsageDetail_20' ) start [2025-02-11 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452597', 'tblTempUsageDetail_20' ) end [2025-02-11 15:17:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:17:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:17:27] Production.INFO: ==26139== Releasing lock... [2025-02-11 15:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:17:27] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:18:05 [end_date_ymd] => 2025-02-11 15:18:05 [RateCDR] => 1 ) [2025-02-11 15:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:18:05' and `end` < '2025-02-11 15:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:18:24] Production.INFO: count ==5007 [2025-02-11 15:18:27] Production.ERROR: pbx CDR StartTime 2025-02-11 12:18:05 - End Time 2025-02-11 15:18:05 [2025-02-11 15:18:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452602', 'tblTempUsageDetail_20' ) start [2025-02-11 15:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452602', 'tblTempUsageDetail_20' ) end [2025-02-11 15:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452602', 'tblTempVendorCDR_20' ) start [2025-02-11 15:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452602', 'tblTempVendorCDR_20' ) end [2025-02-11 15:18:27] Production.INFO: ProcessCDR(1,14452602,1,1,2) [2025-02-11 15:18:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:18:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:18:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:18:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452602', 'tblTempUsageDetail_20' ) start [2025-02-11 15:18:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452602', 'tblTempUsageDetail_20' ) end [2025-02-11 15:18:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:18:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:18:32] Production.INFO: ==26215== Releasing lock... [2025-02-11 15:18:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:18:32] Production.INFO: 65.5 MB #Memory Used# [2025-02-11 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:19:05 [end_date_ymd] => 2025-02-11 15:19:05 [RateCDR] => 1 ) [2025-02-11 15:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:19:05' and `end` < '2025-02-11 15:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:19:30] Production.INFO: count ==5006 [2025-02-11 15:19:32] Production.ERROR: pbx CDR StartTime 2025-02-11 12:19:05 - End Time 2025-02-11 15:19:05 [2025-02-11 15:19:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:19:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452607', 'tblTempUsageDetail_20' ) start [2025-02-11 15:19:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452607', 'tblTempUsageDetail_20' ) end [2025-02-11 15:19:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452607', 'tblTempVendorCDR_20' ) start [2025-02-11 15:19:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452607', 'tblTempVendorCDR_20' ) end [2025-02-11 15:19:32] Production.INFO: ProcessCDR(1,14452607,1,1,2) [2025-02-11 15:19:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:19:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:19:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:19:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:19:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452607', 'tblTempUsageDetail_20' ) start [2025-02-11 15:19:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452607', 'tblTempUsageDetail_20' ) end [2025-02-11 15:19:37] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:19:37] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:19:37] Production.INFO: ==26296== Releasing lock... [2025-02-11 15:19:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:19:37] Production.INFO: 65.5 MB #Memory Used# [2025-02-11 15:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:20:05 [end_date_ymd] => 2025-02-11 15:20:05 [RateCDR] => 1 ) [2025-02-11 15:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:20:05' and `end` < '2025-02-11 15:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:20:26] Production.INFO: count ==4988 [2025-02-11 15:20:28] Production.ERROR: pbx CDR StartTime 2025-02-11 12:20:05 - End Time 2025-02-11 15:20:05 [2025-02-11 15:20:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452613', 'tblTempUsageDetail_20' ) start [2025-02-11 15:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452613', 'tblTempUsageDetail_20' ) end [2025-02-11 15:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452613', 'tblTempVendorCDR_20' ) start [2025-02-11 15:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452613', 'tblTempVendorCDR_20' ) end [2025-02-11 15:20:28] Production.INFO: ProcessCDR(1,14452613,1,1,2) [2025-02-11 15:20:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:20:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:20:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:20:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:20:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452613', 'tblTempUsageDetail_20' ) start [2025-02-11 15:20:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452613', 'tblTempUsageDetail_20' ) end [2025-02-11 15:20:33] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:20:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:20:33] Production.INFO: ==26376== Releasing lock... [2025-02-11 15:20:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:20:33] Production.INFO: 65.25 MB #Memory Used# [2025-02-11 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:21:05 [end_date_ymd] => 2025-02-11 15:21:05 [RateCDR] => 1 ) [2025-02-11 15:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:21:05' and `end` < '2025-02-11 15:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:21:22] Production.INFO: count ==4948 [2025-02-11 15:21:24] Production.ERROR: pbx CDR StartTime 2025-02-11 12:21:05 - End Time 2025-02-11 15:21:05 [2025-02-11 15:21:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452618', 'tblTempUsageDetail_20' ) start [2025-02-11 15:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452618', 'tblTempUsageDetail_20' ) end [2025-02-11 15:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452618', 'tblTempVendorCDR_20' ) start [2025-02-11 15:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452618', 'tblTempVendorCDR_20' ) end [2025-02-11 15:21:25] Production.INFO: ProcessCDR(1,14452618,1,1,2) [2025-02-11 15:21:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:21:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:21:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452618', 'tblTempUsageDetail_20' ) start [2025-02-11 15:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452618', 'tblTempUsageDetail_20' ) end [2025-02-11 15:21:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:21:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:21:29] Production.INFO: ==26454== Releasing lock... [2025-02-11 15:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:21:29] Production.INFO: 65 MB #Memory Used# [2025-02-11 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:22:05 [end_date_ymd] => 2025-02-11 15:22:05 [RateCDR] => 1 ) [2025-02-11 15:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:22:05' and `end` < '2025-02-11 15:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:22:27] Production.INFO: count ==4916 [2025-02-11 15:22:29] Production.ERROR: pbx CDR StartTime 2025-02-11 12:22:05 - End Time 2025-02-11 15:22:05 [2025-02-11 15:22:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452623', 'tblTempUsageDetail_20' ) start [2025-02-11 15:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452623', 'tblTempUsageDetail_20' ) end [2025-02-11 15:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452623', 'tblTempVendorCDR_20' ) start [2025-02-11 15:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452623', 'tblTempVendorCDR_20' ) end [2025-02-11 15:22:29] Production.INFO: ProcessCDR(1,14452623,1,1,2) [2025-02-11 15:22:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:22:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:22:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:22:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:22:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452623', 'tblTempUsageDetail_20' ) start [2025-02-11 15:22:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452623', 'tblTempUsageDetail_20' ) end [2025-02-11 15:22:34] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:22:34] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:22:34] Production.INFO: ==26530== Releasing lock... [2025-02-11 15:22:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:22:34] Production.INFO: 64.75 MB #Memory Used# [2025-02-11 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:23:05 [end_date_ymd] => 2025-02-11 15:23:05 [RateCDR] => 1 ) [2025-02-11 15:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:23:05' and `end` < '2025-02-11 15:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:23:22] Production.INFO: count ==4913 [2025-02-11 15:23:24] Production.ERROR: pbx CDR StartTime 2025-02-11 12:23:05 - End Time 2025-02-11 15:23:05 [2025-02-11 15:23:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452628', 'tblTempUsageDetail_20' ) start [2025-02-11 15:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452628', 'tblTempUsageDetail_20' ) end [2025-02-11 15:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452628', 'tblTempVendorCDR_20' ) start [2025-02-11 15:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452628', 'tblTempVendorCDR_20' ) end [2025-02-11 15:23:24] Production.INFO: ProcessCDR(1,14452628,1,1,2) [2025-02-11 15:23:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:23:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:23:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:23:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452628', 'tblTempUsageDetail_20' ) start [2025-02-11 15:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452628', 'tblTempUsageDetail_20' ) end [2025-02-11 15:23:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:23:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:23:29] Production.INFO: ==26609== Releasing lock... [2025-02-11 15:23:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:23:29] Production.INFO: 64.75 MB #Memory Used# [2025-02-11 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:24:05 [end_date_ymd] => 2025-02-11 15:24:05 [RateCDR] => 1 ) [2025-02-11 15:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:24:05' and `end` < '2025-02-11 15:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:24:28] Production.INFO: count ==4910 [2025-02-11 15:24:30] Production.ERROR: pbx CDR StartTime 2025-02-11 12:24:05 - End Time 2025-02-11 15:24:05 [2025-02-11 15:24:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452633', 'tblTempUsageDetail_20' ) start [2025-02-11 15:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452633', 'tblTempUsageDetail_20' ) end [2025-02-11 15:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452633', 'tblTempVendorCDR_20' ) start [2025-02-11 15:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452633', 'tblTempVendorCDR_20' ) end [2025-02-11 15:24:30] Production.INFO: ProcessCDR(1,14452633,1,1,2) [2025-02-11 15:24:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:24:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:24:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:24:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:24:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452633', 'tblTempUsageDetail_20' ) start [2025-02-11 15:24:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452633', 'tblTempUsageDetail_20' ) end [2025-02-11 15:24:35] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:24:35] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:24:35] Production.INFO: ==26680== Releasing lock... [2025-02-11 15:24:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:24:35] Production.INFO: 64.75 MB #Memory Used# [2025-02-11 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:25:05 [end_date_ymd] => 2025-02-11 15:25:05 [RateCDR] => 1 ) [2025-02-11 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:25:05' and `end` < '2025-02-11 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:25:26] Production.INFO: count ==4913 [2025-02-11 15:25:28] Production.ERROR: pbx CDR StartTime 2025-02-11 12:25:05 - End Time 2025-02-11 15:25:05 [2025-02-11 15:25:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452638', 'tblTempUsageDetail_20' ) start [2025-02-11 15:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452638', 'tblTempUsageDetail_20' ) end [2025-02-11 15:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452638', 'tblTempVendorCDR_20' ) start [2025-02-11 15:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452638', 'tblTempVendorCDR_20' ) end [2025-02-11 15:25:28] Production.INFO: ProcessCDR(1,14452638,1,1,2) [2025-02-11 15:25:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:25:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:25:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452638', 'tblTempUsageDetail_20' ) start [2025-02-11 15:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452638', 'tblTempUsageDetail_20' ) end [2025-02-11 15:25:33] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:25:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:25:33] Production.INFO: ==26757== Releasing lock... [2025-02-11 15:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:25:33] Production.INFO: 64.75 MB #Memory Used# [2025-02-11 15:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:26:06 [end_date_ymd] => 2025-02-11 15:26:06 [RateCDR] => 1 ) [2025-02-11 15:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:26:06' and `end` < '2025-02-11 15:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:26:25] Production.INFO: count ==4893 [2025-02-11 15:26:27] Production.ERROR: pbx CDR StartTime 2025-02-11 12:26:06 - End Time 2025-02-11 15:26:06 [2025-02-11 15:26:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452643', 'tblTempUsageDetail_20' ) start [2025-02-11 15:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452643', 'tblTempUsageDetail_20' ) end [2025-02-11 15:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452643', 'tblTempVendorCDR_20' ) start [2025-02-11 15:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452643', 'tblTempVendorCDR_20' ) end [2025-02-11 15:26:27] Production.INFO: ProcessCDR(1,14452643,1,1,2) [2025-02-11 15:26:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:26:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:26:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:26:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452643', 'tblTempUsageDetail_20' ) start [2025-02-11 15:26:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452643', 'tblTempUsageDetail_20' ) end [2025-02-11 15:26:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:26:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:26:32] Production.INFO: ==26839== Releasing lock... [2025-02-11 15:26:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:26:32] Production.INFO: 64.75 MB #Memory Used# [2025-02-11 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:27:05 [end_date_ymd] => 2025-02-11 15:27:05 [RateCDR] => 1 ) [2025-02-11 15:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:27:05' and `end` < '2025-02-11 15:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:27:24] Production.INFO: count ==4874 [2025-02-11 15:27:26] Production.ERROR: pbx CDR StartTime 2025-02-11 12:27:05 - End Time 2025-02-11 15:27:05 [2025-02-11 15:27:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452648', 'tblTempUsageDetail_20' ) start [2025-02-11 15:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452648', 'tblTempUsageDetail_20' ) end [2025-02-11 15:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452648', 'tblTempVendorCDR_20' ) start [2025-02-11 15:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452648', 'tblTempVendorCDR_20' ) end [2025-02-11 15:27:26] Production.INFO: ProcessCDR(1,14452648,1,1,2) [2025-02-11 15:27:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:27:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:27:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:27:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:27:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452648', 'tblTempUsageDetail_20' ) start [2025-02-11 15:27:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452648', 'tblTempUsageDetail_20' ) end [2025-02-11 15:27:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:27:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:27:31] Production.INFO: ==26912== Releasing lock... [2025-02-11 15:27:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:27:31] Production.INFO: 64.5 MB #Memory Used# [2025-02-11 15:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:28:06 [end_date_ymd] => 2025-02-11 15:28:06 [RateCDR] => 1 ) [2025-02-11 15:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:28:06' and `end` < '2025-02-11 15:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:28:30] Production.INFO: count ==4861 [2025-02-11 15:28:32] Production.ERROR: pbx CDR StartTime 2025-02-11 12:28:06 - End Time 2025-02-11 15:28:06 [2025-02-11 15:28:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:28:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452653', 'tblTempUsageDetail_20' ) start [2025-02-11 15:28:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452653', 'tblTempUsageDetail_20' ) end [2025-02-11 15:28:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452653', 'tblTempVendorCDR_20' ) start [2025-02-11 15:28:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452653', 'tblTempVendorCDR_20' ) end [2025-02-11 15:28:32] Production.INFO: ProcessCDR(1,14452653,1,1,2) [2025-02-11 15:28:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:28:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:28:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:28:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:28:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452653', 'tblTempUsageDetail_20' ) start [2025-02-11 15:28:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452653', 'tblTempUsageDetail_20' ) end [2025-02-11 15:28:36] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:28:36] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:28:36] Production.INFO: ==26991== Releasing lock... [2025-02-11 15:28:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:28:36] Production.INFO: 64.5 MB #Memory Used# [2025-02-11 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:29:05 [end_date_ymd] => 2025-02-11 15:29:05 [RateCDR] => 1 ) [2025-02-11 15:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:29:05' and `end` < '2025-02-11 15:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:29:24] Production.INFO: count ==4852 [2025-02-11 15:29:26] Production.ERROR: pbx CDR StartTime 2025-02-11 12:29:05 - End Time 2025-02-11 15:29:05 [2025-02-11 15:29:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452658', 'tblTempUsageDetail_20' ) start [2025-02-11 15:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452658', 'tblTempUsageDetail_20' ) end [2025-02-11 15:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452658', 'tblTempVendorCDR_20' ) start [2025-02-11 15:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452658', 'tblTempVendorCDR_20' ) end [2025-02-11 15:29:26] Production.INFO: ProcessCDR(1,14452658,1,1,2) [2025-02-11 15:29:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:29:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:29:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:29:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452658', 'tblTempUsageDetail_20' ) start [2025-02-11 15:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452658', 'tblTempUsageDetail_20' ) end [2025-02-11 15:29:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:29:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:29:30] Production.INFO: ==27109== Releasing lock... [2025-02-11 15:29:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:29:30] Production.INFO: 64.25 MB #Memory Used# [2025-02-11 15:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:30:07 [end_date_ymd] => 2025-02-11 15:30:07 [RateCDR] => 1 ) [2025-02-11 15:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:30:07' and `end` < '2025-02-11 15:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:30:28] Production.INFO: count ==4822 [2025-02-11 15:30:30] Production.ERROR: pbx CDR StartTime 2025-02-11 12:30:07 - End Time 2025-02-11 15:30:07 [2025-02-11 15:30:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452664', 'tblTempUsageDetail_20' ) start [2025-02-11 15:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452664', 'tblTempUsageDetail_20' ) end [2025-02-11 15:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452664', 'tblTempVendorCDR_20' ) start [2025-02-11 15:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452664', 'tblTempVendorCDR_20' ) end [2025-02-11 15:30:30] Production.INFO: ProcessCDR(1,14452664,1,1,2) [2025-02-11 15:30:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:30:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:30:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:30:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452664', 'tblTempUsageDetail_20' ) start [2025-02-11 15:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452664', 'tblTempUsageDetail_20' ) end [2025-02-11 15:30:35] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:30:35] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:30:35] Production.INFO: ==27186== Releasing lock... [2025-02-11 15:30:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:30:35] Production.INFO: 64 MB #Memory Used# [2025-02-11 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:31:05 [end_date_ymd] => 2025-02-11 15:31:05 [RateCDR] => 1 ) [2025-02-11 15:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:31:05' and `end` < '2025-02-11 15:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:31:23] Production.INFO: count ==4833 [2025-02-11 15:31:25] Production.ERROR: pbx CDR StartTime 2025-02-11 12:31:05 - End Time 2025-02-11 15:31:05 [2025-02-11 15:31:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452669', 'tblTempUsageDetail_20' ) start [2025-02-11 15:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452669', 'tblTempUsageDetail_20' ) end [2025-02-11 15:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452669', 'tblTempVendorCDR_20' ) start [2025-02-11 15:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452669', 'tblTempVendorCDR_20' ) end [2025-02-11 15:31:25] Production.INFO: ProcessCDR(1,14452669,1,1,2) [2025-02-11 15:31:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:31:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:31:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452669', 'tblTempUsageDetail_20' ) start [2025-02-11 15:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452669', 'tblTempUsageDetail_20' ) end [2025-02-11 15:31:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:31:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:31:29] Production.INFO: ==27263== Releasing lock... [2025-02-11 15:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:31:29] Production.INFO: 64.25 MB #Memory Used# [2025-02-11 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:32:05 [end_date_ymd] => 2025-02-11 15:32:05 [RateCDR] => 1 ) [2025-02-11 15:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:32:05' and `end` < '2025-02-11 15:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:32:26] Production.INFO: count ==4821 [2025-02-11 15:32:28] Production.ERROR: pbx CDR StartTime 2025-02-11 12:32:05 - End Time 2025-02-11 15:32:05 [2025-02-11 15:32:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452674', 'tblTempUsageDetail_20' ) start [2025-02-11 15:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452674', 'tblTempUsageDetail_20' ) end [2025-02-11 15:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452674', 'tblTempVendorCDR_20' ) start [2025-02-11 15:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452674', 'tblTempVendorCDR_20' ) end [2025-02-11 15:32:28] Production.INFO: ProcessCDR(1,14452674,1,1,2) [2025-02-11 15:32:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:32:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:32:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:32:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452674', 'tblTempUsageDetail_20' ) start [2025-02-11 15:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452674', 'tblTempUsageDetail_20' ) end [2025-02-11 15:32:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:32:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:32:33] Production.INFO: ==27342== Releasing lock... [2025-02-11 15:32:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:32:33] Production.INFO: 64 MB #Memory Used# [2025-02-11 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:33:05 [end_date_ymd] => 2025-02-11 15:33:05 [RateCDR] => 1 ) [2025-02-11 15:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:33:05' and `end` < '2025-02-11 15:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:33:22] Production.INFO: count ==4827 [2025-02-11 15:33:24] Production.ERROR: pbx CDR StartTime 2025-02-11 12:33:05 - End Time 2025-02-11 15:33:05 [2025-02-11 15:33:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452679', 'tblTempUsageDetail_20' ) start [2025-02-11 15:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452679', 'tblTempUsageDetail_20' ) end [2025-02-11 15:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452679', 'tblTempVendorCDR_20' ) start [2025-02-11 15:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452679', 'tblTempVendorCDR_20' ) end [2025-02-11 15:33:24] Production.INFO: ProcessCDR(1,14452679,1,1,2) [2025-02-11 15:33:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452679', 'tblTempUsageDetail_20' ) start [2025-02-11 15:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452679', 'tblTempUsageDetail_20' ) end [2025-02-11 15:33:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:33:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:33:29] Production.INFO: ==27416== Releasing lock... [2025-02-11 15:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:33:29] Production.INFO: 64.25 MB #Memory Used# [2025-02-11 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:34:05 [end_date_ymd] => 2025-02-11 15:34:05 [RateCDR] => 1 ) [2025-02-11 15:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:34:05' and `end` < '2025-02-11 15:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:34:32] Production.INFO: count ==4817 [2025-02-11 15:34:34] Production.ERROR: pbx CDR StartTime 2025-02-11 12:34:05 - End Time 2025-02-11 15:34:05 [2025-02-11 15:34:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:34:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452684', 'tblTempUsageDetail_20' ) start [2025-02-11 15:34:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452684', 'tblTempUsageDetail_20' ) end [2025-02-11 15:34:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452684', 'tblTempVendorCDR_20' ) start [2025-02-11 15:34:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452684', 'tblTempVendorCDR_20' ) end [2025-02-11 15:34:34] Production.INFO: ProcessCDR(1,14452684,1,1,2) [2025-02-11 15:34:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:34:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:34:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:34:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:34:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452684', 'tblTempUsageDetail_20' ) start [2025-02-11 15:34:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452684', 'tblTempUsageDetail_20' ) end [2025-02-11 15:34:39] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:34:39] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:34:39] Production.INFO: ==27495== Releasing lock... [2025-02-11 15:34:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:34:39] Production.INFO: 64 MB #Memory Used# [2025-02-11 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:35:05 [end_date_ymd] => 2025-02-11 15:35:05 [RateCDR] => 1 ) [2025-02-11 15:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:35:05' and `end` < '2025-02-11 15:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:35:30] Production.INFO: count ==4837 [2025-02-11 15:35:32] Production.ERROR: pbx CDR StartTime 2025-02-11 12:35:05 - End Time 2025-02-11 15:35:05 [2025-02-11 15:35:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452689', 'tblTempUsageDetail_20' ) start [2025-02-11 15:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452689', 'tblTempUsageDetail_20' ) end [2025-02-11 15:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452689', 'tblTempVendorCDR_20' ) start [2025-02-11 15:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452689', 'tblTempVendorCDR_20' ) end [2025-02-11 15:35:32] Production.INFO: ProcessCDR(1,14452689,1,1,2) [2025-02-11 15:35:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:35:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:35:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:35:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:35:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452689', 'tblTempUsageDetail_20' ) start [2025-02-11 15:35:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452689', 'tblTempUsageDetail_20' ) end [2025-02-11 15:35:37] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:35:37] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:35:37] Production.INFO: ==27569== Releasing lock... [2025-02-11 15:35:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:35:37] Production.INFO: 64.25 MB #Memory Used# [2025-02-11 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:36:05 [end_date_ymd] => 2025-02-11 15:36:05 [RateCDR] => 1 ) [2025-02-11 15:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:36:05' and `end` < '2025-02-11 15:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:36:26] Production.INFO: count ==4831 [2025-02-11 15:36:28] Production.ERROR: pbx CDR StartTime 2025-02-11 12:36:05 - End Time 2025-02-11 15:36:05 [2025-02-11 15:36:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452694', 'tblTempUsageDetail_20' ) start [2025-02-11 15:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452694', 'tblTempUsageDetail_20' ) end [2025-02-11 15:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452694', 'tblTempVendorCDR_20' ) start [2025-02-11 15:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452694', 'tblTempVendorCDR_20' ) end [2025-02-11 15:36:28] Production.INFO: ProcessCDR(1,14452694,1,1,2) [2025-02-11 15:36:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:36:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:36:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:36:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:36:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452694', 'tblTempUsageDetail_20' ) start [2025-02-11 15:36:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452694', 'tblTempUsageDetail_20' ) end [2025-02-11 15:36:33] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:36:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:36:33] Production.INFO: ==27647== Releasing lock... [2025-02-11 15:36:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:36:33] Production.INFO: 64.25 MB #Memory Used# [2025-02-11 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:37:05 [end_date_ymd] => 2025-02-11 15:37:05 [RateCDR] => 1 ) [2025-02-11 15:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:37:05' and `end` < '2025-02-11 15:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:37:25] Production.INFO: count ==4825 [2025-02-11 15:37:27] Production.ERROR: pbx CDR StartTime 2025-02-11 12:37:05 - End Time 2025-02-11 15:37:05 [2025-02-11 15:37:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452699', 'tblTempUsageDetail_20' ) start [2025-02-11 15:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452699', 'tblTempUsageDetail_20' ) end [2025-02-11 15:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452699', 'tblTempVendorCDR_20' ) start [2025-02-11 15:37:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452699', 'tblTempVendorCDR_20' ) end [2025-02-11 15:37:27] Production.INFO: ProcessCDR(1,14452699,1,1,2) [2025-02-11 15:37:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:37:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:37:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:37:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:37:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452699', 'tblTempUsageDetail_20' ) start [2025-02-11 15:37:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452699', 'tblTempUsageDetail_20' ) end [2025-02-11 15:37:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:37:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:37:32] Production.INFO: ==27721== Releasing lock... [2025-02-11 15:37:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:37:32] Production.INFO: 64.25 MB #Memory Used# [2025-02-11 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:38:05 [end_date_ymd] => 2025-02-11 15:38:05 [RateCDR] => 1 ) [2025-02-11 15:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:38:05' and `end` < '2025-02-11 15:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:38:24] Production.INFO: count ==4810 [2025-02-11 15:38:26] Production.ERROR: pbx CDR StartTime 2025-02-11 12:38:05 - End Time 2025-02-11 15:38:05 [2025-02-11 15:38:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452704', 'tblTempUsageDetail_20' ) start [2025-02-11 15:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452704', 'tblTempUsageDetail_20' ) end [2025-02-11 15:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452704', 'tblTempVendorCDR_20' ) start [2025-02-11 15:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452704', 'tblTempVendorCDR_20' ) end [2025-02-11 15:38:26] Production.INFO: ProcessCDR(1,14452704,1,1,2) [2025-02-11 15:38:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:38:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:38:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:38:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452704', 'tblTempUsageDetail_20' ) start [2025-02-11 15:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452704', 'tblTempUsageDetail_20' ) end [2025-02-11 15:38:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:38:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:38:31] Production.INFO: ==27796== Releasing lock... [2025-02-11 15:38:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:38:31] Production.INFO: 64 MB #Memory Used# [2025-02-11 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:39:05 [end_date_ymd] => 2025-02-11 15:39:05 [RateCDR] => 1 ) [2025-02-11 15:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:39:05' and `end` < '2025-02-11 15:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:39:31] Production.INFO: count ==4836 [2025-02-11 15:39:33] Production.ERROR: pbx CDR StartTime 2025-02-11 12:39:05 - End Time 2025-02-11 15:39:05 [2025-02-11 15:39:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:39:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452709', 'tblTempUsageDetail_20' ) start [2025-02-11 15:39:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452709', 'tblTempUsageDetail_20' ) end [2025-02-11 15:39:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452709', 'tblTempVendorCDR_20' ) start [2025-02-11 15:39:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452709', 'tblTempVendorCDR_20' ) end [2025-02-11 15:39:33] Production.INFO: ProcessCDR(1,14452709,1,1,2) [2025-02-11 15:39:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:39:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:39:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:39:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:39:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452709', 'tblTempUsageDetail_20' ) start [2025-02-11 15:39:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452709', 'tblTempUsageDetail_20' ) end [2025-02-11 15:39:39] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:39:39] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:39:39] Production.INFO: ==27872== Releasing lock... [2025-02-11 15:39:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:39:39] Production.INFO: 64.25 MB #Memory Used# [2025-02-11 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:40:06 [end_date_ymd] => 2025-02-11 15:40:06 [RateCDR] => 1 ) [2025-02-11 15:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:40:06' and `end` < '2025-02-11 15:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:40:32] Production.INFO: count ==4847 [2025-02-11 15:40:34] Production.ERROR: pbx CDR StartTime 2025-02-11 12:40:06 - End Time 2025-02-11 15:40:06 [2025-02-11 15:40:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:40:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452714', 'tblTempUsageDetail_20' ) start [2025-02-11 15:40:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452714', 'tblTempUsageDetail_20' ) end [2025-02-11 15:40:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452714', 'tblTempVendorCDR_20' ) start [2025-02-11 15:40:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452714', 'tblTempVendorCDR_20' ) end [2025-02-11 15:40:34] Production.INFO: ProcessCDR(1,14452714,1,1,2) [2025-02-11 15:40:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:40:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:40:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:40:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:40:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452714', 'tblTempUsageDetail_20' ) start [2025-02-11 15:40:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452714', 'tblTempUsageDetail_20' ) end [2025-02-11 15:40:39] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:40:39] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:40:39] Production.INFO: ==27947== Releasing lock... [2025-02-11 15:40:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:40:39] Production.INFO: 64.25 MB #Memory Used# [2025-02-11 15:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:41:06 [end_date_ymd] => 2025-02-11 15:41:06 [RateCDR] => 1 ) [2025-02-11 15:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:41:06' and `end` < '2025-02-11 15:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:41:26] Production.INFO: count ==4847 [2025-02-11 15:41:28] Production.ERROR: pbx CDR StartTime 2025-02-11 12:41:06 - End Time 2025-02-11 15:41:06 [2025-02-11 15:41:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452720', 'tblTempUsageDetail_20' ) start [2025-02-11 15:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452720', 'tblTempUsageDetail_20' ) end [2025-02-11 15:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452720', 'tblTempVendorCDR_20' ) start [2025-02-11 15:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452720', 'tblTempVendorCDR_20' ) end [2025-02-11 15:41:28] Production.INFO: ProcessCDR(1,14452720,1,1,2) [2025-02-11 15:41:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:41:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:41:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:41:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:41:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452720', 'tblTempUsageDetail_20' ) start [2025-02-11 15:41:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452720', 'tblTempUsageDetail_20' ) end [2025-02-11 15:41:33] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:41:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:41:33] Production.INFO: ==28020== Releasing lock... [2025-02-11 15:41:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:41:33] Production.INFO: 64.25 MB #Memory Used# [2025-02-11 15:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:42:06 [end_date_ymd] => 2025-02-11 15:42:06 [RateCDR] => 1 ) [2025-02-11 15:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:42:06' and `end` < '2025-02-11 15:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:42:23] Production.INFO: count ==4840 [2025-02-11 15:42:25] Production.ERROR: pbx CDR StartTime 2025-02-11 12:42:06 - End Time 2025-02-11 15:42:06 [2025-02-11 15:42:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452725', 'tblTempUsageDetail_20' ) start [2025-02-11 15:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452725', 'tblTempUsageDetail_20' ) end [2025-02-11 15:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452725', 'tblTempVendorCDR_20' ) start [2025-02-11 15:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452725', 'tblTempVendorCDR_20' ) end [2025-02-11 15:42:26] Production.INFO: ProcessCDR(1,14452725,1,1,2) [2025-02-11 15:42:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:42:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:42:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:42:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452725', 'tblTempUsageDetail_20' ) start [2025-02-11 15:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452725', 'tblTempUsageDetail_20' ) end [2025-02-11 15:42:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:42:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:42:30] Production.INFO: ==28092== Releasing lock... [2025-02-11 15:42:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:42:30] Production.INFO: 64.25 MB #Memory Used# [2025-02-11 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:43:05 [end_date_ymd] => 2025-02-11 15:43:05 [RateCDR] => 1 ) [2025-02-11 15:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:43:05' and `end` < '2025-02-11 15:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:43:22] Production.INFO: count ==4856 [2025-02-11 15:43:24] Production.ERROR: pbx CDR StartTime 2025-02-11 12:43:05 - End Time 2025-02-11 15:43:05 [2025-02-11 15:43:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452730', 'tblTempUsageDetail_20' ) start [2025-02-11 15:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452730', 'tblTempUsageDetail_20' ) end [2025-02-11 15:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452730', 'tblTempVendorCDR_20' ) start [2025-02-11 15:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452730', 'tblTempVendorCDR_20' ) end [2025-02-11 15:43:24] Production.INFO: ProcessCDR(1,14452730,1,1,2) [2025-02-11 15:43:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:43:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:43:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452730', 'tblTempUsageDetail_20' ) start [2025-02-11 15:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452730', 'tblTempUsageDetail_20' ) end [2025-02-11 15:43:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:43:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:43:29] Production.INFO: ==28164== Releasing lock... [2025-02-11 15:43:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:43:29] Production.INFO: 64.25 MB #Memory Used# [2025-02-11 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:44:05 [end_date_ymd] => 2025-02-11 15:44:05 [RateCDR] => 1 ) [2025-02-11 15:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:44:05' and `end` < '2025-02-11 15:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:44:22] Production.INFO: count ==4864 [2025-02-11 15:44:24] Production.ERROR: pbx CDR StartTime 2025-02-11 12:44:05 - End Time 2025-02-11 15:44:05 [2025-02-11 15:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452735', 'tblTempUsageDetail_20' ) start [2025-02-11 15:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452735', 'tblTempUsageDetail_20' ) end [2025-02-11 15:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452735', 'tblTempVendorCDR_20' ) start [2025-02-11 15:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452735', 'tblTempVendorCDR_20' ) end [2025-02-11 15:44:24] Production.INFO: ProcessCDR(1,14452735,1,1,2) [2025-02-11 15:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:44:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:44:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452735', 'tblTempUsageDetail_20' ) start [2025-02-11 15:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452735', 'tblTempUsageDetail_20' ) end [2025-02-11 15:44:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:44:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:44:29] Production.INFO: ==28239== Releasing lock... [2025-02-11 15:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:44:29] Production.INFO: 64.5 MB #Memory Used# [2025-02-11 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:45:05 [end_date_ymd] => 2025-02-11 15:45:05 [RateCDR] => 1 ) [2025-02-11 15:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:45:05' and `end` < '2025-02-11 15:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:45:19] Production.INFO: count ==4867 [2025-02-11 15:45:21] Production.ERROR: pbx CDR StartTime 2025-02-11 12:45:05 - End Time 2025-02-11 15:45:05 [2025-02-11 15:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452740', 'tblTempUsageDetail_20' ) start [2025-02-11 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452740', 'tblTempUsageDetail_20' ) end [2025-02-11 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452740', 'tblTempVendorCDR_20' ) start [2025-02-11 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452740', 'tblTempVendorCDR_20' ) end [2025-02-11 15:45:21] Production.INFO: ProcessCDR(1,14452740,1,1,2) [2025-02-11 15:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452740', 'tblTempUsageDetail_20' ) start [2025-02-11 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452740', 'tblTempUsageDetail_20' ) end [2025-02-11 15:45:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:45:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:45:26] Production.INFO: ==28354== Releasing lock... [2025-02-11 15:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:45:26] Production.INFO: 64.5 MB #Memory Used# [2025-02-11 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:46:05 [end_date_ymd] => 2025-02-11 15:46:05 [RateCDR] => 1 ) [2025-02-11 15:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:46:05' and `end` < '2025-02-11 15:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:46:20] Production.INFO: count ==4855 [2025-02-11 15:46:22] Production.ERROR: pbx CDR StartTime 2025-02-11 12:46:05 - End Time 2025-02-11 15:46:05 [2025-02-11 15:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452745', 'tblTempUsageDetail_20' ) start [2025-02-11 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452745', 'tblTempUsageDetail_20' ) end [2025-02-11 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452745', 'tblTempVendorCDR_20' ) start [2025-02-11 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452745', 'tblTempVendorCDR_20' ) end [2025-02-11 15:46:22] Production.INFO: ProcessCDR(1,14452745,1,1,2) [2025-02-11 15:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452745', 'tblTempUsageDetail_20' ) start [2025-02-11 15:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452745', 'tblTempUsageDetail_20' ) end [2025-02-11 15:46:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:46:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:46:27] Production.INFO: ==28427== Releasing lock... [2025-02-11 15:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:46:27] Production.INFO: 64.25 MB #Memory Used# [2025-02-11 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:47:05 [end_date_ymd] => 2025-02-11 15:47:05 [RateCDR] => 1 ) [2025-02-11 15:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:47:05' and `end` < '2025-02-11 15:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:47:26] Production.INFO: count ==4863 [2025-02-11 15:47:28] Production.ERROR: pbx CDR StartTime 2025-02-11 12:47:05 - End Time 2025-02-11 15:47:05 [2025-02-11 15:47:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452750', 'tblTempUsageDetail_20' ) start [2025-02-11 15:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452750', 'tblTempUsageDetail_20' ) end [2025-02-11 15:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452750', 'tblTempVendorCDR_20' ) start [2025-02-11 15:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452750', 'tblTempVendorCDR_20' ) end [2025-02-11 15:47:28] Production.INFO: ProcessCDR(1,14452750,1,1,2) [2025-02-11 15:47:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:47:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:47:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:47:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:47:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452750', 'tblTempUsageDetail_20' ) start [2025-02-11 15:47:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452750', 'tblTempUsageDetail_20' ) end [2025-02-11 15:47:33] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:47:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:47:33] Production.INFO: ==28501== Releasing lock... [2025-02-11 15:47:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:47:33] Production.INFO: 64.5 MB #Memory Used# [2025-02-11 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:48:05 [end_date_ymd] => 2025-02-11 15:48:05 [RateCDR] => 1 ) [2025-02-11 15:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:48:05' and `end` < '2025-02-11 15:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:48:23] Production.INFO: count ==4874 [2025-02-11 15:48:25] Production.ERROR: pbx CDR StartTime 2025-02-11 12:48:05 - End Time 2025-02-11 15:48:05 [2025-02-11 15:48:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452755', 'tblTempUsageDetail_20' ) start [2025-02-11 15:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452755', 'tblTempUsageDetail_20' ) end [2025-02-11 15:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452755', 'tblTempVendorCDR_20' ) start [2025-02-11 15:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452755', 'tblTempVendorCDR_20' ) end [2025-02-11 15:48:26] Production.INFO: ProcessCDR(1,14452755,1,1,2) [2025-02-11 15:48:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:48:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:48:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:48:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452755', 'tblTempUsageDetail_20' ) start [2025-02-11 15:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452755', 'tblTempUsageDetail_20' ) end [2025-02-11 15:48:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:48:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:48:30] Production.INFO: ==28572== Releasing lock... [2025-02-11 15:48:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:48:30] Production.INFO: 64.5 MB #Memory Used# [2025-02-11 15:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:49:04 [end_date_ymd] => 2025-02-11 15:49:04 [RateCDR] => 1 ) [2025-02-11 15:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:49:04' and `end` < '2025-02-11 15:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:49:18] Production.INFO: count ==4892 [2025-02-11 15:49:21] Production.ERROR: pbx CDR StartTime 2025-02-11 12:49:04 - End Time 2025-02-11 15:49:04 [2025-02-11 15:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452760', 'tblTempUsageDetail_20' ) start [2025-02-11 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452760', 'tblTempUsageDetail_20' ) end [2025-02-11 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452760', 'tblTempVendorCDR_20' ) start [2025-02-11 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452760', 'tblTempVendorCDR_20' ) end [2025-02-11 15:49:21] Production.INFO: ProcessCDR(1,14452760,1,1,2) [2025-02-11 15:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452760', 'tblTempUsageDetail_20' ) start [2025-02-11 15:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452760', 'tblTempUsageDetail_20' ) end [2025-02-11 15:49:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:49:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:49:26] Production.INFO: ==28648== Releasing lock... [2025-02-11 15:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:49:26] Production.INFO: 64.75 MB #Memory Used# [2025-02-11 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:50:06 [end_date_ymd] => 2025-02-11 15:50:06 [RateCDR] => 1 ) [2025-02-11 15:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:50:06' and `end` < '2025-02-11 15:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:50:20] Production.INFO: count ==4886 [2025-02-11 15:50:22] Production.ERROR: pbx CDR StartTime 2025-02-11 12:50:06 - End Time 2025-02-11 15:50:06 [2025-02-11 15:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452765', 'tblTempUsageDetail_20' ) start [2025-02-11 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452765', 'tblTempUsageDetail_20' ) end [2025-02-11 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452765', 'tblTempVendorCDR_20' ) start [2025-02-11 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452765', 'tblTempVendorCDR_20' ) end [2025-02-11 15:50:22] Production.INFO: ProcessCDR(1,14452765,1,1,2) [2025-02-11 15:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452765', 'tblTempUsageDetail_20' ) start [2025-02-11 15:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452765', 'tblTempUsageDetail_20' ) end [2025-02-11 15:50:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:50:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:50:28] Production.INFO: ==28726== Releasing lock... [2025-02-11 15:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:50:28] Production.INFO: 64.5 MB #Memory Used# [2025-02-11 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:51:05 [end_date_ymd] => 2025-02-11 15:51:05 [RateCDR] => 1 ) [2025-02-11 15:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:51:05' and `end` < '2025-02-11 15:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:51:23] Production.INFO: count ==4899 [2025-02-11 15:51:25] Production.ERROR: pbx CDR StartTime 2025-02-11 12:51:05 - End Time 2025-02-11 15:51:05 [2025-02-11 15:51:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452771', 'tblTempUsageDetail_20' ) start [2025-02-11 15:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452771', 'tblTempUsageDetail_20' ) end [2025-02-11 15:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452771', 'tblTempVendorCDR_20' ) start [2025-02-11 15:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452771', 'tblTempVendorCDR_20' ) end [2025-02-11 15:51:26] Production.INFO: ProcessCDR(1,14452771,1,1,2) [2025-02-11 15:51:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:51:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:51:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:51:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452771', 'tblTempUsageDetail_20' ) start [2025-02-11 15:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452771', 'tblTempUsageDetail_20' ) end [2025-02-11 15:51:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:51:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:51:31] Production.INFO: ==28808== Releasing lock... [2025-02-11 15:51:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:51:31] Production.INFO: 64.75 MB #Memory Used# [2025-02-11 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:52:05 [end_date_ymd] => 2025-02-11 15:52:05 [RateCDR] => 1 ) [2025-02-11 15:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:52:05' and `end` < '2025-02-11 15:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:52:24] Production.INFO: count ==4893 [2025-02-11 15:52:27] Production.ERROR: pbx CDR StartTime 2025-02-11 12:52:05 - End Time 2025-02-11 15:52:05 [2025-02-11 15:52:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452776', 'tblTempUsageDetail_20' ) start [2025-02-11 15:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452776', 'tblTempUsageDetail_20' ) end [2025-02-11 15:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452776', 'tblTempVendorCDR_20' ) start [2025-02-11 15:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452776', 'tblTempVendorCDR_20' ) end [2025-02-11 15:52:27] Production.INFO: ProcessCDR(1,14452776,1,1,2) [2025-02-11 15:52:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:52:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:52:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:52:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452776', 'tblTempUsageDetail_20' ) start [2025-02-11 15:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452776', 'tblTempUsageDetail_20' ) end [2025-02-11 15:52:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:52:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:52:32] Production.INFO: ==28883== Releasing lock... [2025-02-11 15:52:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:52:32] Production.INFO: 64.5 MB #Memory Used# [2025-02-11 15:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:53:06 [end_date_ymd] => 2025-02-11 15:53:06 [RateCDR] => 1 ) [2025-02-11 15:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:53:06' and `end` < '2025-02-11 15:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:53:35] Production.INFO: count ==4903 [2025-02-11 15:53:37] Production.ERROR: pbx CDR StartTime 2025-02-11 12:53:06 - End Time 2025-02-11 15:53:06 [2025-02-11 15:53:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:53:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452781', 'tblTempUsageDetail_20' ) start [2025-02-11 15:53:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452781', 'tblTempUsageDetail_20' ) end [2025-02-11 15:53:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452781', 'tblTempVendorCDR_20' ) start [2025-02-11 15:53:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452781', 'tblTempVendorCDR_20' ) end [2025-02-11 15:53:37] Production.INFO: ProcessCDR(1,14452781,1,1,2) [2025-02-11 15:53:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:53:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:53:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:53:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:53:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452781', 'tblTempUsageDetail_20' ) start [2025-02-11 15:53:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452781', 'tblTempUsageDetail_20' ) end [2025-02-11 15:53:42] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:53:42] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:53:42] Production.INFO: ==28965== Releasing lock... [2025-02-11 15:53:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:53:42] Production.INFO: 64.75 MB #Memory Used# [2025-02-11 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:54:05 [end_date_ymd] => 2025-02-11 15:54:05 [RateCDR] => 1 ) [2025-02-11 15:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:54:05' and `end` < '2025-02-11 15:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:54:25] Production.INFO: count ==4908 [2025-02-11 15:54:28] Production.ERROR: pbx CDR StartTime 2025-02-11 12:54:05 - End Time 2025-02-11 15:54:05 [2025-02-11 15:54:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452786', 'tblTempUsageDetail_20' ) start [2025-02-11 15:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452786', 'tblTempUsageDetail_20' ) end [2025-02-11 15:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452786', 'tblTempVendorCDR_20' ) start [2025-02-11 15:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452786', 'tblTempVendorCDR_20' ) end [2025-02-11 15:54:28] Production.INFO: ProcessCDR(1,14452786,1,1,2) [2025-02-11 15:54:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:54:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:54:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:54:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452786', 'tblTempUsageDetail_20' ) start [2025-02-11 15:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452786', 'tblTempUsageDetail_20' ) end [2025-02-11 15:54:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:54:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:54:33] Production.INFO: ==29044== Releasing lock... [2025-02-11 15:54:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:54:33] Production.INFO: 64.75 MB #Memory Used# [2025-02-11 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:55:05 [end_date_ymd] => 2025-02-11 15:55:05 [RateCDR] => 1 ) [2025-02-11 15:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:55:05' and `end` < '2025-02-11 15:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:55:28] Production.INFO: count ==4907 [2025-02-11 15:55:30] Production.ERROR: pbx CDR StartTime 2025-02-11 12:55:05 - End Time 2025-02-11 15:55:05 [2025-02-11 15:55:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452791', 'tblTempUsageDetail_20' ) start [2025-02-11 15:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452791', 'tblTempUsageDetail_20' ) end [2025-02-11 15:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452791', 'tblTempVendorCDR_20' ) start [2025-02-11 15:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452791', 'tblTempVendorCDR_20' ) end [2025-02-11 15:55:30] Production.INFO: ProcessCDR(1,14452791,1,1,2) [2025-02-11 15:55:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:55:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:55:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:55:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:55:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452791', 'tblTempUsageDetail_20' ) start [2025-02-11 15:55:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452791', 'tblTempUsageDetail_20' ) end [2025-02-11 15:55:35] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:55:35] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:55:35] Production.INFO: ==29127== Releasing lock... [2025-02-11 15:55:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:55:35] Production.INFO: 64.75 MB #Memory Used# [2025-02-11 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:56:05 [end_date_ymd] => 2025-02-11 15:56:05 [RateCDR] => 1 ) [2025-02-11 15:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:56:05' and `end` < '2025-02-11 15:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:56:23] Production.INFO: count ==4908 [2025-02-11 15:56:25] Production.ERROR: pbx CDR StartTime 2025-02-11 12:56:05 - End Time 2025-02-11 15:56:05 [2025-02-11 15:56:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452796', 'tblTempUsageDetail_20' ) start [2025-02-11 15:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452796', 'tblTempUsageDetail_20' ) end [2025-02-11 15:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452796', 'tblTempVendorCDR_20' ) start [2025-02-11 15:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452796', 'tblTempVendorCDR_20' ) end [2025-02-11 15:56:25] Production.INFO: ProcessCDR(1,14452796,1,1,2) [2025-02-11 15:56:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:56:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:56:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:56:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452796', 'tblTempUsageDetail_20' ) start [2025-02-11 15:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452796', 'tblTempUsageDetail_20' ) end [2025-02-11 15:56:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:56:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:56:30] Production.INFO: ==29202== Releasing lock... [2025-02-11 15:56:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:56:30] Production.INFO: 64.75 MB #Memory Used# [2025-02-11 15:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:57:04 [end_date_ymd] => 2025-02-11 15:57:04 [RateCDR] => 1 ) [2025-02-11 15:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:57:04' and `end` < '2025-02-11 15:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:57:28] Production.INFO: count ==4929 [2025-02-11 15:57:30] Production.ERROR: pbx CDR StartTime 2025-02-11 12:57:04 - End Time 2025-02-11 15:57:04 [2025-02-11 15:57:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452801', 'tblTempUsageDetail_20' ) start [2025-02-11 15:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452801', 'tblTempUsageDetail_20' ) end [2025-02-11 15:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452801', 'tblTempVendorCDR_20' ) start [2025-02-11 15:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452801', 'tblTempVendorCDR_20' ) end [2025-02-11 15:57:30] Production.INFO: ProcessCDR(1,14452801,1,1,2) [2025-02-11 15:57:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:57:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:57:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:57:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:57:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452801', 'tblTempUsageDetail_20' ) start [2025-02-11 15:57:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452801', 'tblTempUsageDetail_20' ) end [2025-02-11 15:57:34] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:57:34] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:57:35] Production.INFO: ==29278== Releasing lock... [2025-02-11 15:57:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:57:35] Production.INFO: 65 MB #Memory Used# [2025-02-11 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:58:05 [end_date_ymd] => 2025-02-11 15:58:05 [RateCDR] => 1 ) [2025-02-11 15:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:58:05' and `end` < '2025-02-11 15:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:58:28] Production.INFO: count ==4951 [2025-02-11 15:58:30] Production.ERROR: pbx CDR StartTime 2025-02-11 12:58:05 - End Time 2025-02-11 15:58:05 [2025-02-11 15:58:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:58:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452806', 'tblTempUsageDetail_20' ) start [2025-02-11 15:58:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452806', 'tblTempUsageDetail_20' ) end [2025-02-11 15:58:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452806', 'tblTempVendorCDR_20' ) start [2025-02-11 15:58:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452806', 'tblTempVendorCDR_20' ) end [2025-02-11 15:58:30] Production.INFO: ProcessCDR(1,14452806,1,1,2) [2025-02-11 15:58:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:58:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:58:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:58:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:58:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452806', 'tblTempUsageDetail_20' ) start [2025-02-11 15:58:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452806', 'tblTempUsageDetail_20' ) end [2025-02-11 15:58:35] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:58:35] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:58:35] Production.INFO: ==29357== Releasing lock... [2025-02-11 15:58:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:58:35] Production.INFO: 65 MB #Memory Used# [2025-02-11 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 12:59:05 [end_date_ymd] => 2025-02-11 15:59:05 [RateCDR] => 1 ) [2025-02-11 15:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 12:59:05' and `end` < '2025-02-11 15:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 15:59:22] Production.INFO: count ==4962 [2025-02-11 15:59:24] Production.ERROR: pbx CDR StartTime 2025-02-11 12:59:05 - End Time 2025-02-11 15:59:05 [2025-02-11 15:59:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 15:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452811', 'tblTempUsageDetail_20' ) start [2025-02-11 15:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452811', 'tblTempUsageDetail_20' ) end [2025-02-11 15:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452811', 'tblTempVendorCDR_20' ) start [2025-02-11 15:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452811', 'tblTempVendorCDR_20' ) end [2025-02-11 15:59:24] Production.INFO: ProcessCDR(1,14452811,1,1,2) [2025-02-11 15:59:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:59:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 15:59:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:59:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 15:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452811', 'tblTempUsageDetail_20' ) start [2025-02-11 15:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452811', 'tblTempUsageDetail_20' ) end [2025-02-11 15:59:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 15:59:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 15:59:30] Production.INFO: ==29429== Releasing lock... [2025-02-11 15:59:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 15:59:30] Production.INFO: 65.25 MB #Memory Used# [2025-02-11 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:00:06 [end_date_ymd] => 2025-02-11 16:00:06 [RateCDR] => 1 ) [2025-02-11 16:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:00:06' and `end` < '2025-02-11 16:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:00:36] Production.INFO: count ==4948 [2025-02-11 16:00:39] Production.ERROR: pbx CDR StartTime 2025-02-11 13:00:06 - End Time 2025-02-11 16:00:06 [2025-02-11 16:00:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:00:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452817', 'tblTempUsageDetail_20' ) start [2025-02-11 16:00:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452817', 'tblTempUsageDetail_20' ) end [2025-02-11 16:00:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452817', 'tblTempVendorCDR_20' ) start [2025-02-11 16:00:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452817', 'tblTempVendorCDR_20' ) end [2025-02-11 16:00:39] Production.INFO: ProcessCDR(1,14452817,1,1,2) [2025-02-11 16:00:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:00:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:00:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:00:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:00:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452817', 'tblTempUsageDetail_20' ) start [2025-02-11 16:00:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452817', 'tblTempUsageDetail_20' ) end [2025-02-11 16:00:44] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:00:45] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:00:45] Production.INFO: ==29551== Releasing lock... [2025-02-11 16:00:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:00:45] Production.INFO: 65 MB #Memory Used# [2025-02-11 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:01:05 [end_date_ymd] => 2025-02-11 16:01:05 [RateCDR] => 1 ) [2025-02-11 16:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:01:05' and `end` < '2025-02-11 16:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:01:34] Production.INFO: count ==4946 [2025-02-11 16:01:36] Production.ERROR: pbx CDR StartTime 2025-02-11 13:01:05 - End Time 2025-02-11 16:01:05 [2025-02-11 16:01:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:01:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452822', 'tblTempUsageDetail_20' ) start [2025-02-11 16:01:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452822', 'tblTempUsageDetail_20' ) end [2025-02-11 16:01:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452822', 'tblTempVendorCDR_20' ) start [2025-02-11 16:01:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452822', 'tblTempVendorCDR_20' ) end [2025-02-11 16:01:36] Production.INFO: ProcessCDR(1,14452822,1,1,2) [2025-02-11 16:01:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:01:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:01:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:01:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:01:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452822', 'tblTempUsageDetail_20' ) start [2025-02-11 16:01:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452822', 'tblTempUsageDetail_20' ) end [2025-02-11 16:01:40] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:01:40] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:01:40] Production.INFO: ==29646== Releasing lock... [2025-02-11 16:01:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:01:40] Production.INFO: 65 MB #Memory Used# [2025-02-11 16:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:02:06 [end_date_ymd] => 2025-02-11 16:02:06 [RateCDR] => 1 ) [2025-02-11 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-02-11 13:02:06' and `end` < '2025-02-11 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-02-11 16:02:28] Production.INFO: count ==4966 [2025-02-11 16:02:30] Production.ERROR: pbx CDR StartTime 2025-02-11 13:02:06 - End Time 2025-02-11 16:02:06 [2025-02-11 16:02:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452827', 'tblTempUsageDetail_20' ) start [2025-02-11 16:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452827', 'tblTempUsageDetail_20' ) end [2025-02-11 16:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452827', 'tblTempVendorCDR_20' ) start [2025-02-11 16:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452827', 'tblTempVendorCDR_20' ) end [2025-02-11 16:02:30] Production.INFO: ProcessCDR(1,14452827,1,1,2) [2025-02-11 16:02:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:02:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:02:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:02:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452827', 'tblTempUsageDetail_20' ) start [2025-02-11 16:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452827', 'tblTempUsageDetail_20' ) end [2025-02-11 16:02:36] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:02:36] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:02:36] Production.INFO: ==29722== Releasing lock... [2025-02-11 16:02:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:02:36] Production.INFO: 65.25 MB #Memory Used# [2025-02-11 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:03:05 [end_date_ymd] => 2025-02-11 16:03:05 [RateCDR] => 1 ) [2025-02-11 16:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:03:05' and `end` < '2025-02-11 16:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:03:25] Production.INFO: count ==4981 [2025-02-11 16:03:27] Production.ERROR: pbx CDR StartTime 2025-02-11 13:03:05 - End Time 2025-02-11 16:03:05 [2025-02-11 16:03:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452832', 'tblTempUsageDetail_20' ) start [2025-02-11 16:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452832', 'tblTempUsageDetail_20' ) end [2025-02-11 16:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452832', 'tblTempVendorCDR_20' ) start [2025-02-11 16:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452832', 'tblTempVendorCDR_20' ) end [2025-02-11 16:03:27] Production.INFO: ProcessCDR(1,14452832,1,1,2) [2025-02-11 16:03:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:03:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:03:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:03:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:03:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452832', 'tblTempUsageDetail_20' ) start [2025-02-11 16:03:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452832', 'tblTempUsageDetail_20' ) end [2025-02-11 16:03:33] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:03:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:03:33] Production.INFO: ==29798== Releasing lock... [2025-02-11 16:03:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:03:33] Production.INFO: 65.25 MB #Memory Used# [2025-02-11 16:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:04:06 [end_date_ymd] => 2025-02-11 16:04:06 [RateCDR] => 1 ) [2025-02-11 16:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:04:06' and `end` < '2025-02-11 16:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:04:28] Production.INFO: count ==4979 [2025-02-11 16:04:30] Production.ERROR: pbx CDR StartTime 2025-02-11 13:04:06 - End Time 2025-02-11 16:04:06 [2025-02-11 16:04:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452837', 'tblTempUsageDetail_20' ) start [2025-02-11 16:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452837', 'tblTempUsageDetail_20' ) end [2025-02-11 16:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452837', 'tblTempVendorCDR_20' ) start [2025-02-11 16:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452837', 'tblTempVendorCDR_20' ) end [2025-02-11 16:04:31] Production.INFO: ProcessCDR(1,14452837,1,1,2) [2025-02-11 16:04:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:04:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:04:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:04:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:04:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452837', 'tblTempUsageDetail_20' ) start [2025-02-11 16:04:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452837', 'tblTempUsageDetail_20' ) end [2025-02-11 16:04:36] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:04:36] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:04:36] Production.INFO: ==29875== Releasing lock... [2025-02-11 16:04:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:04:36] Production.INFO: 65.25 MB #Memory Used# [2025-02-11 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:05:05 [end_date_ymd] => 2025-02-11 16:05:05 [RateCDR] => 1 ) [2025-02-11 16:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:05:05' and `end` < '2025-02-11 16:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:05:32] Production.INFO: count ==4985 [2025-02-11 16:05:35] Production.ERROR: pbx CDR StartTime 2025-02-11 13:05:05 - End Time 2025-02-11 16:05:05 [2025-02-11 16:05:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:05:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452842', 'tblTempUsageDetail_20' ) start [2025-02-11 16:05:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452842', 'tblTempUsageDetail_20' ) end [2025-02-11 16:05:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452842', 'tblTempVendorCDR_20' ) start [2025-02-11 16:05:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452842', 'tblTempVendorCDR_20' ) end [2025-02-11 16:05:35] Production.INFO: ProcessCDR(1,14452842,1,1,2) [2025-02-11 16:05:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:05:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:05:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:05:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:05:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452842', 'tblTempUsageDetail_20' ) start [2025-02-11 16:05:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452842', 'tblTempUsageDetail_20' ) end [2025-02-11 16:05:41] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:05:41] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:05:41] Production.INFO: ==29950== Releasing lock... [2025-02-11 16:05:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:05:41] Production.INFO: 65.25 MB #Memory Used# [2025-02-11 16:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:06:06 [end_date_ymd] => 2025-02-11 16:06:06 [RateCDR] => 1 ) [2025-02-11 16:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:06:06' and `end` < '2025-02-11 16:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:06:26] Production.INFO: count ==5008 [2025-02-11 16:06:28] Production.ERROR: pbx CDR StartTime 2025-02-11 13:06:06 - End Time 2025-02-11 16:06:06 [2025-02-11 16:06:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452847', 'tblTempUsageDetail_20' ) start [2025-02-11 16:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452847', 'tblTempUsageDetail_20' ) end [2025-02-11 16:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452847', 'tblTempVendorCDR_20' ) start [2025-02-11 16:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452847', 'tblTempVendorCDR_20' ) end [2025-02-11 16:06:28] Production.INFO: ProcessCDR(1,14452847,1,1,2) [2025-02-11 16:06:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:06:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:06:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:06:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452847', 'tblTempUsageDetail_20' ) start [2025-02-11 16:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452847', 'tblTempUsageDetail_20' ) end [2025-02-11 16:06:34] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:06:34] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:06:34] Production.INFO: ==30028== Releasing lock... [2025-02-11 16:06:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:06:34] Production.INFO: 65.5 MB #Memory Used# [2025-02-11 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:07:05 [end_date_ymd] => 2025-02-11 16:07:05 [RateCDR] => 1 ) [2025-02-11 16:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:07:05' and `end` < '2025-02-11 16:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:07:23] Production.INFO: count ==5016 [2025-02-11 16:07:26] Production.ERROR: pbx CDR StartTime 2025-02-11 13:07:05 - End Time 2025-02-11 16:07:05 [2025-02-11 16:07:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452852', 'tblTempUsageDetail_20' ) start [2025-02-11 16:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452852', 'tblTempUsageDetail_20' ) end [2025-02-11 16:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452852', 'tblTempVendorCDR_20' ) start [2025-02-11 16:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452852', 'tblTempVendorCDR_20' ) end [2025-02-11 16:07:26] Production.INFO: ProcessCDR(1,14452852,1,1,2) [2025-02-11 16:07:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:07:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:07:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:07:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452852', 'tblTempUsageDetail_20' ) start [2025-02-11 16:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452852', 'tblTempUsageDetail_20' ) end [2025-02-11 16:07:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:07:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:07:32] Production.INFO: ==30111== Releasing lock... [2025-02-11 16:07:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:07:32] Production.INFO: 65.5 MB #Memory Used# [2025-02-11 16:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:08:06 [end_date_ymd] => 2025-02-11 16:08:06 [RateCDR] => 1 ) [2025-02-11 16:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:08:06' and `end` < '2025-02-11 16:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:08:21] Production.INFO: count ==5021 [2025-02-11 16:08:24] Production.ERROR: pbx CDR StartTime 2025-02-11 13:08:06 - End Time 2025-02-11 16:08:06 [2025-02-11 16:08:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452857', 'tblTempUsageDetail_20' ) start [2025-02-11 16:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452857', 'tblTempUsageDetail_20' ) end [2025-02-11 16:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452857', 'tblTempVendorCDR_20' ) start [2025-02-11 16:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452857', 'tblTempVendorCDR_20' ) end [2025-02-11 16:08:24] Production.INFO: ProcessCDR(1,14452857,1,1,2) [2025-02-11 16:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:08:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:08:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:08:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452857', 'tblTempUsageDetail_20' ) start [2025-02-11 16:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452857', 'tblTempUsageDetail_20' ) end [2025-02-11 16:08:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:08:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:08:29] Production.INFO: ==30190== Releasing lock... [2025-02-11 16:08:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:08:29] Production.INFO: 65.5 MB #Memory Used# [2025-02-11 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:09:05 [end_date_ymd] => 2025-02-11 16:09:05 [RateCDR] => 1 ) [2025-02-11 16:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:09:05' and `end` < '2025-02-11 16:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:09:21] Production.INFO: count ==5022 [2025-02-11 16:09:23] Production.ERROR: pbx CDR StartTime 2025-02-11 13:09:05 - End Time 2025-02-11 16:09:05 [2025-02-11 16:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452862', 'tblTempUsageDetail_20' ) start [2025-02-11 16:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452862', 'tblTempUsageDetail_20' ) end [2025-02-11 16:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452862', 'tblTempVendorCDR_20' ) start [2025-02-11 16:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452862', 'tblTempVendorCDR_20' ) end [2025-02-11 16:09:23] Production.INFO: ProcessCDR(1,14452862,1,1,2) [2025-02-11 16:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452862', 'tblTempUsageDetail_20' ) start [2025-02-11 16:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452862', 'tblTempUsageDetail_20' ) end [2025-02-11 16:09:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:09:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:09:29] Production.INFO: ==30268== Releasing lock... [2025-02-11 16:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:09:29] Production.INFO: 65.5 MB #Memory Used# [2025-02-11 16:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:10:07 [end_date_ymd] => 2025-02-11 16:10:07 [RateCDR] => 1 ) [2025-02-11 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-02-11 13:10:07' and `end` < '2025-02-11 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-02-11 16:10:25] Production.INFO: count ==5038 [2025-02-11 16:10:27] Production.ERROR: pbx CDR StartTime 2025-02-11 13:10:07 - End Time 2025-02-11 16:10:07 [2025-02-11 16:10:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452868', 'tblTempUsageDetail_20' ) start [2025-02-11 16:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452868', 'tblTempUsageDetail_20' ) end [2025-02-11 16:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452868', 'tblTempVendorCDR_20' ) start [2025-02-11 16:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452868', 'tblTempVendorCDR_20' ) end [2025-02-11 16:10:28] Production.INFO: ProcessCDR(1,14452868,1,1,2) [2025-02-11 16:10:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:10:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:10:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:10:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452868', 'tblTempUsageDetail_20' ) start [2025-02-11 16:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452868', 'tblTempUsageDetail_20' ) end [2025-02-11 16:10:33] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:10:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:10:33] Production.INFO: ==30349== Releasing lock... [2025-02-11 16:10:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:10:33] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:11:05 [end_date_ymd] => 2025-02-11 16:11:05 [RateCDR] => 1 ) [2025-02-11 16:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:11:05' and `end` < '2025-02-11 16:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:11:23] Production.INFO: count ==5029 [2025-02-11 16:11:26] Production.ERROR: pbx CDR StartTime 2025-02-11 13:11:05 - End Time 2025-02-11 16:11:05 [2025-02-11 16:11:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452873', 'tblTempUsageDetail_20' ) start [2025-02-11 16:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452873', 'tblTempUsageDetail_20' ) end [2025-02-11 16:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452873', 'tblTempVendorCDR_20' ) start [2025-02-11 16:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452873', 'tblTempVendorCDR_20' ) end [2025-02-11 16:11:26] Production.INFO: ProcessCDR(1,14452873,1,1,2) [2025-02-11 16:11:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:11:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:11:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:11:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452873', 'tblTempUsageDetail_20' ) start [2025-02-11 16:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452873', 'tblTempUsageDetail_20' ) end [2025-02-11 16:11:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:11:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:11:31] Production.INFO: ==30426== Releasing lock... [2025-02-11 16:11:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:11:31] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 16:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:12:06 [end_date_ymd] => 2025-02-11 16:12:06 [RateCDR] => 1 ) [2025-02-11 16:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:12:06' and `end` < '2025-02-11 16:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:12:27] Production.INFO: count ==5030 [2025-02-11 16:12:29] Production.ERROR: pbx CDR StartTime 2025-02-11 13:12:06 - End Time 2025-02-11 16:12:06 [2025-02-11 16:12:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452878', 'tblTempUsageDetail_20' ) start [2025-02-11 16:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452878', 'tblTempUsageDetail_20' ) end [2025-02-11 16:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452878', 'tblTempVendorCDR_20' ) start [2025-02-11 16:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452878', 'tblTempVendorCDR_20' ) end [2025-02-11 16:12:29] Production.INFO: ProcessCDR(1,14452878,1,1,2) [2025-02-11 16:12:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:12:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:12:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:12:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:12:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452878', 'tblTempUsageDetail_20' ) start [2025-02-11 16:12:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452878', 'tblTempUsageDetail_20' ) end [2025-02-11 16:12:34] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:12:34] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:12:34] Production.INFO: ==30504== Releasing lock... [2025-02-11 16:12:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:12:34] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:13:05 [end_date_ymd] => 2025-02-11 16:13:05 [RateCDR] => 1 ) [2025-02-11 16:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:13:05' and `end` < '2025-02-11 16:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:13:23] Production.INFO: count ==5041 [2025-02-11 16:13:26] Production.ERROR: pbx CDR StartTime 2025-02-11 13:13:05 - End Time 2025-02-11 16:13:05 [2025-02-11 16:13:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452883', 'tblTempUsageDetail_20' ) start [2025-02-11 16:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452883', 'tblTempUsageDetail_20' ) end [2025-02-11 16:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452883', 'tblTempVendorCDR_20' ) start [2025-02-11 16:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452883', 'tblTempVendorCDR_20' ) end [2025-02-11 16:13:26] Production.INFO: ProcessCDR(1,14452883,1,1,2) [2025-02-11 16:13:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:13:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:13:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:13:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:13:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452883', 'tblTempUsageDetail_20' ) start [2025-02-11 16:13:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452883', 'tblTempUsageDetail_20' ) end [2025-02-11 16:13:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:13:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:13:32] Production.INFO: ==30579== Releasing lock... [2025-02-11 16:13:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:13:32] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:14:05 [end_date_ymd] => 2025-02-11 16:14:05 [RateCDR] => 1 ) [2025-02-11 16:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:14:05' and `end` < '2025-02-11 16:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:14:23] Production.INFO: count ==5045 [2025-02-11 16:14:26] Production.ERROR: pbx CDR StartTime 2025-02-11 13:14:05 - End Time 2025-02-11 16:14:05 [2025-02-11 16:14:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452888', 'tblTempUsageDetail_20' ) start [2025-02-11 16:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452888', 'tblTempUsageDetail_20' ) end [2025-02-11 16:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452888', 'tblTempVendorCDR_20' ) start [2025-02-11 16:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452888', 'tblTempVendorCDR_20' ) end [2025-02-11 16:14:26] Production.INFO: ProcessCDR(1,14452888,1,1,2) [2025-02-11 16:14:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:14:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:14:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:14:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452888', 'tblTempUsageDetail_20' ) start [2025-02-11 16:14:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452888', 'tblTempUsageDetail_20' ) end [2025-02-11 16:14:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:14:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:14:32] Production.INFO: ==30659== Releasing lock... [2025-02-11 16:14:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:14:32] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:15:05 [end_date_ymd] => 2025-02-11 16:15:05 [RateCDR] => 1 ) [2025-02-11 16:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:15:05' and `end` < '2025-02-11 16:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:15:24] Production.INFO: count ==5040 [2025-02-11 16:15:26] Production.ERROR: pbx CDR StartTime 2025-02-11 13:15:05 - End Time 2025-02-11 16:15:05 [2025-02-11 16:15:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452893', 'tblTempUsageDetail_20' ) start [2025-02-11 16:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452893', 'tblTempUsageDetail_20' ) end [2025-02-11 16:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452893', 'tblTempVendorCDR_20' ) start [2025-02-11 16:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452893', 'tblTempVendorCDR_20' ) end [2025-02-11 16:15:26] Production.INFO: ProcessCDR(1,14452893,1,1,2) [2025-02-11 16:15:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:15:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:15:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:15:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452893', 'tblTempUsageDetail_20' ) start [2025-02-11 16:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452893', 'tblTempUsageDetail_20' ) end [2025-02-11 16:15:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:15:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:15:31] Production.INFO: ==30744== Releasing lock... [2025-02-11 16:15:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:15:31] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 16:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:16:06 [end_date_ymd] => 2025-02-11 16:16:06 [RateCDR] => 1 ) [2025-02-11 16:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:16:06' and `end` < '2025-02-11 16:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:16:23] Production.INFO: count ==5050 [2025-02-11 16:16:25] Production.ERROR: pbx CDR StartTime 2025-02-11 13:16:06 - End Time 2025-02-11 16:16:06 [2025-02-11 16:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452898', 'tblTempUsageDetail_20' ) start [2025-02-11 16:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452898', 'tblTempUsageDetail_20' ) end [2025-02-11 16:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452898', 'tblTempVendorCDR_20' ) start [2025-02-11 16:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452898', 'tblTempVendorCDR_20' ) end [2025-02-11 16:16:26] Production.INFO: ProcessCDR(1,14452898,1,1,2) [2025-02-11 16:16:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:16:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:16:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:16:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452898', 'tblTempUsageDetail_20' ) start [2025-02-11 16:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452898', 'tblTempUsageDetail_20' ) end [2025-02-11 16:16:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:16:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:16:31] Production.INFO: ==30857== Releasing lock... [2025-02-11 16:16:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:16:31] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:17:05 [end_date_ymd] => 2025-02-11 16:17:05 [RateCDR] => 1 ) [2025-02-11 16:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:17:05' and `end` < '2025-02-11 16:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:17:28] Production.INFO: count ==5029 [2025-02-11 16:17:30] Production.ERROR: pbx CDR StartTime 2025-02-11 13:17:05 - End Time 2025-02-11 16:17:05 [2025-02-11 16:17:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:17:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452903', 'tblTempUsageDetail_20' ) start [2025-02-11 16:17:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452903', 'tblTempUsageDetail_20' ) end [2025-02-11 16:17:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452903', 'tblTempVendorCDR_20' ) start [2025-02-11 16:17:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452903', 'tblTempVendorCDR_20' ) end [2025-02-11 16:17:30] Production.INFO: ProcessCDR(1,14452903,1,1,2) [2025-02-11 16:17:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:17:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:17:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:17:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:17:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452903', 'tblTempUsageDetail_20' ) start [2025-02-11 16:17:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452903', 'tblTempUsageDetail_20' ) end [2025-02-11 16:17:35] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:17:35] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:17:35] Production.INFO: ==30932== Releasing lock... [2025-02-11 16:17:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:17:35] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:18:05 [end_date_ymd] => 2025-02-11 16:18:05 [RateCDR] => 1 ) [2025-02-11 16:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:18:05' and `end` < '2025-02-11 16:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:18:22] Production.INFO: count ==5028 [2025-02-11 16:18:25] Production.ERROR: pbx CDR StartTime 2025-02-11 13:18:05 - End Time 2025-02-11 16:18:05 [2025-02-11 16:18:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452908', 'tblTempUsageDetail_20' ) start [2025-02-11 16:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452908', 'tblTempUsageDetail_20' ) end [2025-02-11 16:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452908', 'tblTempVendorCDR_20' ) start [2025-02-11 16:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452908', 'tblTempVendorCDR_20' ) end [2025-02-11 16:18:25] Production.INFO: ProcessCDR(1,14452908,1,1,2) [2025-02-11 16:18:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:18:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:18:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:18:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452908', 'tblTempUsageDetail_20' ) start [2025-02-11 16:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452908', 'tblTempUsageDetail_20' ) end [2025-02-11 16:18:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:18:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:18:30] Production.INFO: ==31022== Releasing lock... [2025-02-11 16:18:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:18:30] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:19:05 [end_date_ymd] => 2025-02-11 16:19:05 [RateCDR] => 1 ) [2025-02-11 16:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:19:05' and `end` < '2025-02-11 16:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:19:19] Production.INFO: count ==5029 [2025-02-11 16:19:21] Production.ERROR: pbx CDR StartTime 2025-02-11 13:19:05 - End Time 2025-02-11 16:19:05 [2025-02-11 16:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452913', 'tblTempUsageDetail_20' ) start [2025-02-11 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452913', 'tblTempUsageDetail_20' ) end [2025-02-11 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452913', 'tblTempVendorCDR_20' ) start [2025-02-11 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452913', 'tblTempVendorCDR_20' ) end [2025-02-11 16:19:22] Production.INFO: ProcessCDR(1,14452913,1,1,2) [2025-02-11 16:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452913', 'tblTempUsageDetail_20' ) start [2025-02-11 16:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452913', 'tblTempUsageDetail_20' ) end [2025-02-11 16:19:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:19:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:19:27] Production.INFO: ==31103== Releasing lock... [2025-02-11 16:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:19:27] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:20:06 [end_date_ymd] => 2025-02-11 16:20:06 [RateCDR] => 1 ) [2025-02-11 16:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:20:06' and `end` < '2025-02-11 16:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:20:20] Production.INFO: count ==5037 [2025-02-11 16:20:22] Production.ERROR: pbx CDR StartTime 2025-02-11 13:20:06 - End Time 2025-02-11 16:20:06 [2025-02-11 16:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452919', 'tblTempUsageDetail_20' ) start [2025-02-11 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452919', 'tblTempUsageDetail_20' ) end [2025-02-11 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452919', 'tblTempVendorCDR_20' ) start [2025-02-11 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452919', 'tblTempVendorCDR_20' ) end [2025-02-11 16:20:23] Production.INFO: ProcessCDR(1,14452919,1,1,2) [2025-02-11 16:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452919', 'tblTempUsageDetail_20' ) start [2025-02-11 16:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452919', 'tblTempUsageDetail_20' ) end [2025-02-11 16:20:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:20:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:20:28] Production.INFO: ==31187== Releasing lock... [2025-02-11 16:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:20:28] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:21:05 [end_date_ymd] => 2025-02-11 16:21:05 [RateCDR] => 1 ) [2025-02-11 16:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:21:05' and `end` < '2025-02-11 16:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:21:23] Production.INFO: count ==5050 [2025-02-11 16:21:25] Production.ERROR: pbx CDR StartTime 2025-02-11 13:21:05 - End Time 2025-02-11 16:21:05 [2025-02-11 16:21:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452924', 'tblTempUsageDetail_20' ) start [2025-02-11 16:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452924', 'tblTempUsageDetail_20' ) end [2025-02-11 16:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452924', 'tblTempVendorCDR_20' ) start [2025-02-11 16:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452924', 'tblTempVendorCDR_20' ) end [2025-02-11 16:21:26] Production.INFO: ProcessCDR(1,14452924,1,1,2) [2025-02-11 16:21:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:21:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:21:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:21:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452924', 'tblTempUsageDetail_20' ) start [2025-02-11 16:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452924', 'tblTempUsageDetail_20' ) end [2025-02-11 16:21:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:21:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:21:30] Production.INFO: ==31271== Releasing lock... [2025-02-11 16:21:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:21:30] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:22:05 [end_date_ymd] => 2025-02-11 16:22:05 [RateCDR] => 1 ) [2025-02-11 16:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:22:05' and `end` < '2025-02-11 16:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:22:22] Production.INFO: count ==5043 [2025-02-11 16:22:24] Production.ERROR: pbx CDR StartTime 2025-02-11 13:22:05 - End Time 2025-02-11 16:22:05 [2025-02-11 16:22:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452929', 'tblTempUsageDetail_20' ) start [2025-02-11 16:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452929', 'tblTempUsageDetail_20' ) end [2025-02-11 16:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452929', 'tblTempVendorCDR_20' ) start [2025-02-11 16:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452929', 'tblTempVendorCDR_20' ) end [2025-02-11 16:22:24] Production.INFO: ProcessCDR(1,14452929,1,1,2) [2025-02-11 16:22:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:22:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:22:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:22:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452929', 'tblTempUsageDetail_20' ) start [2025-02-11 16:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452929', 'tblTempUsageDetail_20' ) end [2025-02-11 16:22:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:22:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:22:30] Production.INFO: ==31349== Releasing lock... [2025-02-11 16:22:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:22:30] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 16:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:23:06 [end_date_ymd] => 2025-02-11 16:23:06 [RateCDR] => 1 ) [2025-02-11 16:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:23:06' and `end` < '2025-02-11 16:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:23:25] Production.INFO: count ==5056 [2025-02-11 16:23:27] Production.ERROR: pbx CDR StartTime 2025-02-11 13:23:06 - End Time 2025-02-11 16:23:06 [2025-02-11 16:23:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452934', 'tblTempUsageDetail_20' ) start [2025-02-11 16:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452934', 'tblTempUsageDetail_20' ) end [2025-02-11 16:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452934', 'tblTempVendorCDR_20' ) start [2025-02-11 16:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452934', 'tblTempVendorCDR_20' ) end [2025-02-11 16:23:28] Production.INFO: ProcessCDR(1,14452934,1,1,2) [2025-02-11 16:23:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:23:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:23:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:23:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:23:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452934', 'tblTempUsageDetail_20' ) start [2025-02-11 16:23:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452934', 'tblTempUsageDetail_20' ) end [2025-02-11 16:23:33] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:23:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:23:33] Production.INFO: ==31436== Releasing lock... [2025-02-11 16:23:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:23:33] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:24:05 [end_date_ymd] => 2025-02-11 16:24:05 [RateCDR] => 1 ) [2025-02-11 16:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:24:05' and `end` < '2025-02-11 16:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:24:25] Production.INFO: count ==5043 [2025-02-11 16:24:27] Production.ERROR: pbx CDR StartTime 2025-02-11 13:24:05 - End Time 2025-02-11 16:24:05 [2025-02-11 16:24:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452939', 'tblTempUsageDetail_20' ) start [2025-02-11 16:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452939', 'tblTempUsageDetail_20' ) end [2025-02-11 16:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452939', 'tblTempVendorCDR_20' ) start [2025-02-11 16:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452939', 'tblTempVendorCDR_20' ) end [2025-02-11 16:24:27] Production.INFO: ProcessCDR(1,14452939,1,1,2) [2025-02-11 16:24:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:24:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:24:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:24:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:24:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452939', 'tblTempUsageDetail_20' ) start [2025-02-11 16:24:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452939', 'tblTempUsageDetail_20' ) end [2025-02-11 16:24:33] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:24:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:24:33] Production.INFO: ==31520== Releasing lock... [2025-02-11 16:24:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:24:33] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:25:05 [end_date_ymd] => 2025-02-11 16:25:05 [RateCDR] => 1 ) [2025-02-11 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:25:05' and `end` < '2025-02-11 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:25:28] Production.INFO: count ==5035 [2025-02-11 16:25:30] Production.ERROR: pbx CDR StartTime 2025-02-11 13:25:05 - End Time 2025-02-11 16:25:05 [2025-02-11 16:25:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452944', 'tblTempUsageDetail_20' ) start [2025-02-11 16:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452944', 'tblTempUsageDetail_20' ) end [2025-02-11 16:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452944', 'tblTempVendorCDR_20' ) start [2025-02-11 16:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452944', 'tblTempVendorCDR_20' ) end [2025-02-11 16:25:30] Production.INFO: ProcessCDR(1,14452944,1,1,2) [2025-02-11 16:25:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:25:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:25:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452944', 'tblTempUsageDetail_20' ) start [2025-02-11 16:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452944', 'tblTempUsageDetail_20' ) end [2025-02-11 16:25:35] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:25:36] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:25:36] Production.INFO: ==31610== Releasing lock... [2025-02-11 16:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:25:36] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:26:05 [end_date_ymd] => 2025-02-11 16:26:05 [RateCDR] => 1 ) [2025-02-11 16:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:26:05' and `end` < '2025-02-11 16:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:26:22] Production.INFO: count ==4992 [2025-02-11 16:26:25] Production.ERROR: pbx CDR StartTime 2025-02-11 13:26:05 - End Time 2025-02-11 16:26:05 [2025-02-11 16:26:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452949', 'tblTempUsageDetail_20' ) start [2025-02-11 16:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452949', 'tblTempUsageDetail_20' ) end [2025-02-11 16:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452949', 'tblTempVendorCDR_20' ) start [2025-02-11 16:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452949', 'tblTempVendorCDR_20' ) end [2025-02-11 16:26:25] Production.INFO: ProcessCDR(1,14452949,1,1,2) [2025-02-11 16:26:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:26:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:26:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:26:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452949', 'tblTempUsageDetail_20' ) start [2025-02-11 16:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452949', 'tblTempUsageDetail_20' ) end [2025-02-11 16:26:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:26:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:26:30] Production.INFO: ==31699== Releasing lock... [2025-02-11 16:26:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:26:30] Production.INFO: 65.5 MB #Memory Used# [2025-02-11 16:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:27:06 [end_date_ymd] => 2025-02-11 16:27:06 [RateCDR] => 1 ) [2025-02-11 16:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:27:06' and `end` < '2025-02-11 16:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:27:24] Production.INFO: count ==4972 [2025-02-11 16:27:27] Production.ERROR: pbx CDR StartTime 2025-02-11 13:27:06 - End Time 2025-02-11 16:27:06 [2025-02-11 16:27:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452954', 'tblTempUsageDetail_20' ) start [2025-02-11 16:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452954', 'tblTempUsageDetail_20' ) end [2025-02-11 16:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452954', 'tblTempVendorCDR_20' ) start [2025-02-11 16:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452954', 'tblTempVendorCDR_20' ) end [2025-02-11 16:27:27] Production.INFO: ProcessCDR(1,14452954,1,1,2) [2025-02-11 16:27:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:27:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:27:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:27:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452954', 'tblTempUsageDetail_20' ) start [2025-02-11 16:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452954', 'tblTempUsageDetail_20' ) end [2025-02-11 16:27:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:27:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:27:32] Production.INFO: ==31793== Releasing lock... [2025-02-11 16:27:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:27:32] Production.INFO: 65.25 MB #Memory Used# [2025-02-11 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:28:05 [end_date_ymd] => 2025-02-11 16:28:05 [RateCDR] => 1 ) [2025-02-11 16:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:28:05' and `end` < '2025-02-11 16:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:28:20] Production.INFO: count ==4949 [2025-02-11 16:28:22] Production.ERROR: pbx CDR StartTime 2025-02-11 13:28:05 - End Time 2025-02-11 16:28:05 [2025-02-11 16:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452959', 'tblTempUsageDetail_20' ) start [2025-02-11 16:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452959', 'tblTempUsageDetail_20' ) end [2025-02-11 16:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452959', 'tblTempVendorCDR_20' ) start [2025-02-11 16:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452959', 'tblTempVendorCDR_20' ) end [2025-02-11 16:28:23] Production.INFO: ProcessCDR(1,14452959,1,1,2) [2025-02-11 16:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452959', 'tblTempUsageDetail_20' ) start [2025-02-11 16:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452959', 'tblTempUsageDetail_20' ) end [2025-02-11 16:28:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:28:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:28:28] Production.INFO: ==31873== Releasing lock... [2025-02-11 16:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:28:28] Production.INFO: 65 MB #Memory Used# [2025-02-11 16:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:29:06 [end_date_ymd] => 2025-02-11 16:29:06 [RateCDR] => 1 ) [2025-02-11 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-02-11 13:29:06' and `end` < '2025-02-11 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-02-11 16:29:22] Production.INFO: count ==4949 [2025-02-11 16:29:24] Production.ERROR: pbx CDR StartTime 2025-02-11 13:29:06 - End Time 2025-02-11 16:29:06 [2025-02-11 16:29:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452964', 'tblTempUsageDetail_20' ) start [2025-02-11 16:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452964', 'tblTempUsageDetail_20' ) end [2025-02-11 16:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452964', 'tblTempVendorCDR_20' ) start [2025-02-11 16:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452964', 'tblTempVendorCDR_20' ) end [2025-02-11 16:29:24] Production.INFO: ProcessCDR(1,14452964,1,1,2) [2025-02-11 16:29:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:29:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:29:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:29:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452964', 'tblTempUsageDetail_20' ) start [2025-02-11 16:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452964', 'tblTempUsageDetail_20' ) end [2025-02-11 16:29:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:29:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:29:29] Production.INFO: ==31955== Releasing lock... [2025-02-11 16:29:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:29:29] Production.INFO: 65 MB #Memory Used# [2025-02-11 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:30:06 [end_date_ymd] => 2025-02-11 16:30:06 [RateCDR] => 1 ) [2025-02-11 16:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:30:06' and `end` < '2025-02-11 16:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:30:20] Production.INFO: count ==4947 [2025-02-11 16:30:22] Production.ERROR: pbx CDR StartTime 2025-02-11 13:30:06 - End Time 2025-02-11 16:30:06 [2025-02-11 16:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452970', 'tblTempUsageDetail_20' ) start [2025-02-11 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452970', 'tblTempUsageDetail_20' ) end [2025-02-11 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452970', 'tblTempVendorCDR_20' ) start [2025-02-11 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452970', 'tblTempVendorCDR_20' ) end [2025-02-11 16:30:22] Production.INFO: ProcessCDR(1,14452970,1,1,2) [2025-02-11 16:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452970', 'tblTempUsageDetail_20' ) start [2025-02-11 16:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452970', 'tblTempUsageDetail_20' ) end [2025-02-11 16:30:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:30:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:30:26] Production.INFO: ==32046== Releasing lock... [2025-02-11 16:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:30:26] Production.INFO: 65 MB #Memory Used# [2025-02-11 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:31:05 [end_date_ymd] => 2025-02-11 16:31:05 [RateCDR] => 1 ) [2025-02-11 16:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:31:05' and `end` < '2025-02-11 16:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:31:23] Production.INFO: count ==4971 [2025-02-11 16:31:26] Production.ERROR: pbx CDR StartTime 2025-02-11 13:31:05 - End Time 2025-02-11 16:31:05 [2025-02-11 16:31:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452975', 'tblTempUsageDetail_20' ) start [2025-02-11 16:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452975', 'tblTempUsageDetail_20' ) end [2025-02-11 16:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452975', 'tblTempVendorCDR_20' ) start [2025-02-11 16:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452975', 'tblTempVendorCDR_20' ) end [2025-02-11 16:31:26] Production.INFO: ProcessCDR(1,14452975,1,1,2) [2025-02-11 16:31:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:31:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:31:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:31:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452975', 'tblTempUsageDetail_20' ) start [2025-02-11 16:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452975', 'tblTempUsageDetail_20' ) end [2025-02-11 16:31:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:31:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:31:31] Production.INFO: ==32171== Releasing lock... [2025-02-11 16:31:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:31:31] Production.INFO: 65.25 MB #Memory Used# [2025-02-11 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:32:05 [end_date_ymd] => 2025-02-11 16:32:05 [RateCDR] => 1 ) [2025-02-11 16:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:32:05' and `end` < '2025-02-11 16:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:32:25] Production.INFO: count ==4951 [2025-02-11 16:32:27] Production.ERROR: pbx CDR StartTime 2025-02-11 13:32:05 - End Time 2025-02-11 16:32:05 [2025-02-11 16:32:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452980', 'tblTempUsageDetail_20' ) start [2025-02-11 16:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452980', 'tblTempUsageDetail_20' ) end [2025-02-11 16:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452980', 'tblTempVendorCDR_20' ) start [2025-02-11 16:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452980', 'tblTempVendorCDR_20' ) end [2025-02-11 16:32:27] Production.INFO: ProcessCDR(1,14452980,1,1,2) [2025-02-11 16:32:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:32:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:32:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:32:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452980', 'tblTempUsageDetail_20' ) start [2025-02-11 16:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452980', 'tblTempUsageDetail_20' ) end [2025-02-11 16:32:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:32:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:32:33] Production.INFO: ==32258== Releasing lock... [2025-02-11 16:32:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:32:33] Production.INFO: 65 MB #Memory Used# [2025-02-11 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:33:05 [end_date_ymd] => 2025-02-11 16:33:05 [RateCDR] => 1 ) [2025-02-11 16:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:33:05' and `end` < '2025-02-11 16:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:33:26] Production.INFO: count ==4947 [2025-02-11 16:33:28] Production.ERROR: pbx CDR StartTime 2025-02-11 13:33:05 - End Time 2025-02-11 16:33:05 [2025-02-11 16:33:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452985', 'tblTempUsageDetail_20' ) start [2025-02-11 16:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452985', 'tblTempUsageDetail_20' ) end [2025-02-11 16:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452985', 'tblTempVendorCDR_20' ) start [2025-02-11 16:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452985', 'tblTempVendorCDR_20' ) end [2025-02-11 16:33:28] Production.INFO: ProcessCDR(1,14452985,1,1,2) [2025-02-11 16:33:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:33:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:33:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:33:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:33:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452985', 'tblTempUsageDetail_20' ) start [2025-02-11 16:33:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452985', 'tblTempUsageDetail_20' ) end [2025-02-11 16:33:33] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:33:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:33:33] Production.INFO: ==32344== Releasing lock... [2025-02-11 16:33:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:33:33] Production.INFO: 65 MB #Memory Used# [2025-02-11 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:34:05 [end_date_ymd] => 2025-02-11 16:34:05 [RateCDR] => 1 ) [2025-02-11 16:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:34:05' and `end` < '2025-02-11 16:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:34:26] Production.INFO: count ==4955 [2025-02-11 16:34:28] Production.ERROR: pbx CDR StartTime 2025-02-11 13:34:05 - End Time 2025-02-11 16:34:05 [2025-02-11 16:34:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452990', 'tblTempUsageDetail_20' ) start [2025-02-11 16:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452990', 'tblTempUsageDetail_20' ) end [2025-02-11 16:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452990', 'tblTempVendorCDR_20' ) start [2025-02-11 16:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452990', 'tblTempVendorCDR_20' ) end [2025-02-11 16:34:28] Production.INFO: ProcessCDR(1,14452990,1,1,2) [2025-02-11 16:34:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:34:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:34:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:34:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:34:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452990', 'tblTempUsageDetail_20' ) start [2025-02-11 16:34:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452990', 'tblTempUsageDetail_20' ) end [2025-02-11 16:34:33] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:34:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:34:34] Production.INFO: ==32435== Releasing lock... [2025-02-11 16:34:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:34:34] Production.INFO: 65 MB #Memory Used# [2025-02-11 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:35:05 [end_date_ymd] => 2025-02-11 16:35:05 [RateCDR] => 1 ) [2025-02-11 16:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:35:05' and `end` < '2025-02-11 16:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:35:28] Production.INFO: count ==4962 [2025-02-11 16:35:30] Production.ERROR: pbx CDR StartTime 2025-02-11 13:35:05 - End Time 2025-02-11 16:35:05 [2025-02-11 16:35:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452995', 'tblTempUsageDetail_20' ) start [2025-02-11 16:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14452995', 'tblTempUsageDetail_20' ) end [2025-02-11 16:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452995', 'tblTempVendorCDR_20' ) start [2025-02-11 16:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14452995', 'tblTempVendorCDR_20' ) end [2025-02-11 16:35:30] Production.INFO: ProcessCDR(1,14452995,1,1,2) [2025-02-11 16:35:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14452995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:35:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14452995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:35:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14452995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:35:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14452995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:35:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452995', 'tblTempUsageDetail_20' ) start [2025-02-11 16:35:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14452995', 'tblTempUsageDetail_20' ) end [2025-02-11 16:35:35] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:35:35] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:35:35] Production.INFO: ==32518== Releasing lock... [2025-02-11 16:35:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:35:35] Production.INFO: 65.25 MB #Memory Used# [2025-02-11 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:36:05 [end_date_ymd] => 2025-02-11 16:36:05 [RateCDR] => 1 ) [2025-02-11 16:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:36:05' and `end` < '2025-02-11 16:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:36:32] Production.INFO: count ==4945 [2025-02-11 16:36:34] Production.ERROR: pbx CDR StartTime 2025-02-11 13:36:05 - End Time 2025-02-11 16:36:05 [2025-02-11 16:36:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:36:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453000', 'tblTempUsageDetail_20' ) start [2025-02-11 16:36:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453000', 'tblTempUsageDetail_20' ) end [2025-02-11 16:36:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453000', 'tblTempVendorCDR_20' ) start [2025-02-11 16:36:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453000', 'tblTempVendorCDR_20' ) end [2025-02-11 16:36:34] Production.INFO: ProcessCDR(1,14453000,1,1,2) [2025-02-11 16:36:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:36:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:36:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:36:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:36:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453000', 'tblTempUsageDetail_20' ) start [2025-02-11 16:36:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453000', 'tblTempUsageDetail_20' ) end [2025-02-11 16:36:39] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:36:39] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:36:39] Production.INFO: ==32600== Releasing lock... [2025-02-11 16:36:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:36:39] Production.INFO: 65 MB #Memory Used# [2025-02-11 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:37:05 [end_date_ymd] => 2025-02-11 16:37:05 [RateCDR] => 1 ) [2025-02-11 16:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:37:05' and `end` < '2025-02-11 16:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:37:27] Production.INFO: count ==4969 [2025-02-11 16:37:29] Production.ERROR: pbx CDR StartTime 2025-02-11 13:37:05 - End Time 2025-02-11 16:37:05 [2025-02-11 16:37:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:37:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453005', 'tblTempUsageDetail_20' ) start [2025-02-11 16:37:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453005', 'tblTempUsageDetail_20' ) end [2025-02-11 16:37:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453005', 'tblTempVendorCDR_20' ) start [2025-02-11 16:37:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453005', 'tblTempVendorCDR_20' ) end [2025-02-11 16:37:29] Production.INFO: ProcessCDR(1,14453005,1,1,2) [2025-02-11 16:37:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:37:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:37:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:37:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:37:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453005', 'tblTempUsageDetail_20' ) start [2025-02-11 16:37:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453005', 'tblTempUsageDetail_20' ) end [2025-02-11 16:37:34] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:37:34] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:37:34] Production.INFO: ==32682== Releasing lock... [2025-02-11 16:37:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:37:34] Production.INFO: 65.25 MB #Memory Used# [2025-02-11 16:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:38:04 [end_date_ymd] => 2025-02-11 16:38:04 [RateCDR] => 1 ) [2025-02-11 16:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:38:04' and `end` < '2025-02-11 16:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:38:24] Production.INFO: count ==4997 [2025-02-11 16:38:26] Production.ERROR: pbx CDR StartTime 2025-02-11 13:38:04 - End Time 2025-02-11 16:38:04 [2025-02-11 16:38:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453010', 'tblTempUsageDetail_20' ) start [2025-02-11 16:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453010', 'tblTempUsageDetail_20' ) end [2025-02-11 16:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453010', 'tblTempVendorCDR_20' ) start [2025-02-11 16:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453010', 'tblTempVendorCDR_20' ) end [2025-02-11 16:38:26] Production.INFO: ProcessCDR(1,14453010,1,1,2) [2025-02-11 16:38:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:38:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:38:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:38:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453010', 'tblTempUsageDetail_20' ) start [2025-02-11 16:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453010', 'tblTempUsageDetail_20' ) end [2025-02-11 16:38:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:38:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:38:31] Production.INFO: ==32765== Releasing lock... [2025-02-11 16:38:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:38:31] Production.INFO: 65.5 MB #Memory Used# [2025-02-11 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:39:05 [end_date_ymd] => 2025-02-11 16:39:05 [RateCDR] => 1 ) [2025-02-11 16:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:39:05' and `end` < '2025-02-11 16:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:39:20] Production.INFO: count ==5011 [2025-02-11 16:39:22] Production.ERROR: pbx CDR StartTime 2025-02-11 13:39:05 - End Time 2025-02-11 16:39:05 [2025-02-11 16:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453015', 'tblTempUsageDetail_20' ) start [2025-02-11 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453015', 'tblTempUsageDetail_20' ) end [2025-02-11 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453015', 'tblTempVendorCDR_20' ) start [2025-02-11 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453015', 'tblTempVendorCDR_20' ) end [2025-02-11 16:39:22] Production.INFO: ProcessCDR(1,14453015,1,1,2) [2025-02-11 16:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453015', 'tblTempUsageDetail_20' ) start [2025-02-11 16:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453015', 'tblTempUsageDetail_20' ) end [2025-02-11 16:39:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:39:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:39:27] Production.INFO: ==400== Releasing lock... [2025-02-11 16:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:39:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-11 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:40:06 [end_date_ymd] => 2025-02-11 16:40:06 [RateCDR] => 1 ) [2025-02-11 16:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:40:06' and `end` < '2025-02-11 16:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:40:20] Production.INFO: count ==5019 [2025-02-11 16:40:22] Production.ERROR: pbx CDR StartTime 2025-02-11 13:40:06 - End Time 2025-02-11 16:40:06 [2025-02-11 16:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453021', 'tblTempUsageDetail_20' ) start [2025-02-11 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453021', 'tblTempUsageDetail_20' ) end [2025-02-11 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453021', 'tblTempVendorCDR_20' ) start [2025-02-11 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453021', 'tblTempVendorCDR_20' ) end [2025-02-11 16:40:22] Production.INFO: ProcessCDR(1,14453021,1,1,2) [2025-02-11 16:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453021', 'tblTempUsageDetail_20' ) start [2025-02-11 16:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453021', 'tblTempUsageDetail_20' ) end [2025-02-11 16:40:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:40:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:40:27] Production.INFO: ==487== Releasing lock... [2025-02-11 16:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:40:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-11 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:41:05 [end_date_ymd] => 2025-02-11 16:41:05 [RateCDR] => 1 ) [2025-02-11 16:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:41:05' and `end` < '2025-02-11 16:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:41:23] Production.INFO: count ==5046 [2025-02-11 16:41:25] Production.ERROR: pbx CDR StartTime 2025-02-11 13:41:05 - End Time 2025-02-11 16:41:05 [2025-02-11 16:41:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453026', 'tblTempUsageDetail_20' ) start [2025-02-11 16:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453026', 'tblTempUsageDetail_20' ) end [2025-02-11 16:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453026', 'tblTempVendorCDR_20' ) start [2025-02-11 16:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453026', 'tblTempVendorCDR_20' ) end [2025-02-11 16:41:25] Production.INFO: ProcessCDR(1,14453026,1,1,2) [2025-02-11 16:41:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:41:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:41:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:41:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453026', 'tblTempUsageDetail_20' ) start [2025-02-11 16:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453026', 'tblTempUsageDetail_20' ) end [2025-02-11 16:41:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:41:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:41:30] Production.INFO: ==577== Releasing lock... [2025-02-11 16:41:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:41:30] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:42:05 [end_date_ymd] => 2025-02-11 16:42:05 [RateCDR] => 1 ) [2025-02-11 16:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:42:05' and `end` < '2025-02-11 16:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:42:19] Production.INFO: count ==5066 [2025-02-11 16:42:21] Production.ERROR: pbx CDR StartTime 2025-02-11 13:42:05 - End Time 2025-02-11 16:42:05 [2025-02-11 16:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453031', 'tblTempUsageDetail_20' ) start [2025-02-11 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453031', 'tblTempUsageDetail_20' ) end [2025-02-11 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453031', 'tblTempVendorCDR_20' ) start [2025-02-11 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453031', 'tblTempVendorCDR_20' ) end [2025-02-11 16:42:21] Production.INFO: ProcessCDR(1,14453031,1,1,2) [2025-02-11 16:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453031', 'tblTempUsageDetail_20' ) start [2025-02-11 16:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453031', 'tblTempUsageDetail_20' ) end [2025-02-11 16:42:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:42:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:42:27] Production.INFO: ==676== Releasing lock... [2025-02-11 16:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:42:27] Production.INFO: 66 MB #Memory Used# [2025-02-11 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:43:05 [end_date_ymd] => 2025-02-11 16:43:05 [RateCDR] => 1 ) [2025-02-11 16:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:43:05' and `end` < '2025-02-11 16:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:43:25] Production.INFO: count ==5047 [2025-02-11 16:43:27] Production.ERROR: pbx CDR StartTime 2025-02-11 13:43:05 - End Time 2025-02-11 16:43:05 [2025-02-11 16:43:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453036', 'tblTempUsageDetail_20' ) start [2025-02-11 16:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453036', 'tblTempUsageDetail_20' ) end [2025-02-11 16:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453036', 'tblTempVendorCDR_20' ) start [2025-02-11 16:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453036', 'tblTempVendorCDR_20' ) end [2025-02-11 16:43:27] Production.INFO: ProcessCDR(1,14453036,1,1,2) [2025-02-11 16:43:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:43:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:43:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:43:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453036', 'tblTempUsageDetail_20' ) start [2025-02-11 16:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453036', 'tblTempUsageDetail_20' ) end [2025-02-11 16:43:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:43:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:43:31] Production.INFO: ==776== Releasing lock... [2025-02-11 16:43:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:43:31] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:44:05 [end_date_ymd] => 2025-02-11 16:44:05 [RateCDR] => 1 ) [2025-02-11 16:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:44:05' and `end` < '2025-02-11 16:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:44:29] Production.INFO: count ==5031 [2025-02-11 16:44:32] Production.ERROR: pbx CDR StartTime 2025-02-11 13:44:05 - End Time 2025-02-11 16:44:05 [2025-02-11 16:44:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:44:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453041', 'tblTempUsageDetail_20' ) start [2025-02-11 16:44:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453041', 'tblTempUsageDetail_20' ) end [2025-02-11 16:44:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453041', 'tblTempVendorCDR_20' ) start [2025-02-11 16:44:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453041', 'tblTempVendorCDR_20' ) end [2025-02-11 16:44:32] Production.INFO: ProcessCDR(1,14453041,1,1,2) [2025-02-11 16:44:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:44:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:44:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:44:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:44:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453041', 'tblTempUsageDetail_20' ) start [2025-02-11 16:44:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453041', 'tblTempUsageDetail_20' ) end [2025-02-11 16:44:37] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:44:37] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:44:37] Production.INFO: ==860== Releasing lock... [2025-02-11 16:44:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:44:37] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 16:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:45:04 [end_date_ymd] => 2025-02-11 16:45:04 [RateCDR] => 1 ) [2025-02-11 16:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:45:04' and `end` < '2025-02-11 16:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:45:24] Production.INFO: count ==5019 [2025-02-11 16:45:26] Production.ERROR: pbx CDR StartTime 2025-02-11 13:45:04 - End Time 2025-02-11 16:45:04 [2025-02-11 16:45:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453046', 'tblTempUsageDetail_20' ) start [2025-02-11 16:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453046', 'tblTempUsageDetail_20' ) end [2025-02-11 16:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453046', 'tblTempVendorCDR_20' ) start [2025-02-11 16:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453046', 'tblTempVendorCDR_20' ) end [2025-02-11 16:45:26] Production.INFO: ProcessCDR(1,14453046,1,1,2) [2025-02-11 16:45:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:45:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:45:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:45:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453046', 'tblTempUsageDetail_20' ) start [2025-02-11 16:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453046', 'tblTempUsageDetail_20' ) end [2025-02-11 16:45:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:45:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:45:30] Production.INFO: ==942== Releasing lock... [2025-02-11 16:45:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:45:30] Production.INFO: 65.5 MB #Memory Used# [2025-02-11 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:46:05 [end_date_ymd] => 2025-02-11 16:46:05 [RateCDR] => 1 ) [2025-02-11 16:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:46:05' and `end` < '2025-02-11 16:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:46:26] Production.INFO: count ==5002 [2025-02-11 16:46:28] Production.ERROR: pbx CDR StartTime 2025-02-11 13:46:05 - End Time 2025-02-11 16:46:05 [2025-02-11 16:46:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453051', 'tblTempUsageDetail_20' ) start [2025-02-11 16:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453051', 'tblTempUsageDetail_20' ) end [2025-02-11 16:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453051', 'tblTempVendorCDR_20' ) start [2025-02-11 16:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453051', 'tblTempVendorCDR_20' ) end [2025-02-11 16:46:28] Production.INFO: ProcessCDR(1,14453051,1,1,2) [2025-02-11 16:46:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:46:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:46:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:46:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:46:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453051', 'tblTempUsageDetail_20' ) start [2025-02-11 16:46:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453051', 'tblTempUsageDetail_20' ) end [2025-02-11 16:46:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:46:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:46:33] Production.INFO: ==1027== Releasing lock... [2025-02-11 16:46:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:46:33] Production.INFO: 65.5 MB #Memory Used# [2025-02-11 16:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:47:04 [end_date_ymd] => 2025-02-11 16:47:04 [RateCDR] => 1 ) [2025-02-11 16:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:47:04' and `end` < '2025-02-11 16:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:47:25] Production.INFO: count ==5007 [2025-02-11 16:47:27] Production.ERROR: pbx CDR StartTime 2025-02-11 13:47:04 - End Time 2025-02-11 16:47:04 [2025-02-11 16:47:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453056', 'tblTempUsageDetail_20' ) start [2025-02-11 16:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453056', 'tblTempUsageDetail_20' ) end [2025-02-11 16:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453056', 'tblTempVendorCDR_20' ) start [2025-02-11 16:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453056', 'tblTempVendorCDR_20' ) end [2025-02-11 16:47:27] Production.INFO: ProcessCDR(1,14453056,1,1,2) [2025-02-11 16:47:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:47:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:47:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:47:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:47:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453056', 'tblTempUsageDetail_20' ) start [2025-02-11 16:47:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453056', 'tblTempUsageDetail_20' ) end [2025-02-11 16:47:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:47:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:47:32] Production.INFO: ==1160== Releasing lock... [2025-02-11 16:47:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:47:32] Production.INFO: 65.5 MB #Memory Used# [2025-02-11 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:48:05 [end_date_ymd] => 2025-02-11 16:48:05 [RateCDR] => 1 ) [2025-02-11 16:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:48:05' and `end` < '2025-02-11 16:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:48:28] Production.INFO: count ==5012 [2025-02-11 16:48:30] Production.ERROR: pbx CDR StartTime 2025-02-11 13:48:05 - End Time 2025-02-11 16:48:05 [2025-02-11 16:48:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453061', 'tblTempUsageDetail_20' ) start [2025-02-11 16:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453061', 'tblTempUsageDetail_20' ) end [2025-02-11 16:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453061', 'tblTempVendorCDR_20' ) start [2025-02-11 16:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453061', 'tblTempVendorCDR_20' ) end [2025-02-11 16:48:30] Production.INFO: ProcessCDR(1,14453061,1,1,2) [2025-02-11 16:48:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:48:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:48:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:48:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:48:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453061', 'tblTempUsageDetail_20' ) start [2025-02-11 16:48:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453061', 'tblTempUsageDetail_20' ) end [2025-02-11 16:48:35] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:48:35] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:48:35] Production.INFO: ==1269== Releasing lock... [2025-02-11 16:48:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:48:35] Production.INFO: 65.5 MB #Memory Used# [2025-02-11 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:49:05 [end_date_ymd] => 2025-02-11 16:49:05 [RateCDR] => 1 ) [2025-02-11 16:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:49:05' and `end` < '2025-02-11 16:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:49:25] Production.INFO: count ==5012 [2025-02-11 16:49:27] Production.ERROR: pbx CDR StartTime 2025-02-11 13:49:05 - End Time 2025-02-11 16:49:05 [2025-02-11 16:49:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453066', 'tblTempUsageDetail_20' ) start [2025-02-11 16:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453066', 'tblTempUsageDetail_20' ) end [2025-02-11 16:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453066', 'tblTempVendorCDR_20' ) start [2025-02-11 16:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453066', 'tblTempVendorCDR_20' ) end [2025-02-11 16:49:27] Production.INFO: ProcessCDR(1,14453066,1,1,2) [2025-02-11 16:49:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:49:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:49:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:49:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453066', 'tblTempUsageDetail_20' ) start [2025-02-11 16:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453066', 'tblTempUsageDetail_20' ) end [2025-02-11 16:49:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:49:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:49:32] Production.INFO: ==1361== Releasing lock... [2025-02-11 16:49:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:49:32] Production.INFO: 65.5 MB #Memory Used# [2025-02-11 16:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:50:05 [end_date_ymd] => 2025-02-11 16:50:05 [RateCDR] => 1 ) [2025-02-11 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-02-11 13:50:05' and `end` < '2025-02-11 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-02-11 16:50:25] Production.INFO: count ==5012 [2025-02-11 16:50:27] Production.ERROR: pbx CDR StartTime 2025-02-11 13:50:05 - End Time 2025-02-11 16:50:05 [2025-02-11 16:50:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453071', 'tblTempUsageDetail_20' ) start [2025-02-11 16:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453071', 'tblTempUsageDetail_20' ) end [2025-02-11 16:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453071', 'tblTempVendorCDR_20' ) start [2025-02-11 16:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453071', 'tblTempVendorCDR_20' ) end [2025-02-11 16:50:28] Production.INFO: ProcessCDR(1,14453071,1,1,2) [2025-02-11 16:50:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:50:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:50:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:50:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453071', 'tblTempUsageDetail_20' ) start [2025-02-11 16:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453071', 'tblTempUsageDetail_20' ) end [2025-02-11 16:50:33] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:50:33] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:50:33] Production.INFO: ==1452== Releasing lock... [2025-02-11 16:50:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:50:33] Production.INFO: 65.5 MB #Memory Used# [2025-02-11 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:51:05 [end_date_ymd] => 2025-02-11 16:51:05 [RateCDR] => 1 ) [2025-02-11 16:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:51:05' and `end` < '2025-02-11 16:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:51:23] Production.INFO: count ==5044 [2025-02-11 16:51:26] Production.ERROR: pbx CDR StartTime 2025-02-11 13:51:05 - End Time 2025-02-11 16:51:05 [2025-02-11 16:51:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453077', 'tblTempUsageDetail_20' ) start [2025-02-11 16:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453077', 'tblTempUsageDetail_20' ) end [2025-02-11 16:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453077', 'tblTempVendorCDR_20' ) start [2025-02-11 16:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453077', 'tblTempVendorCDR_20' ) end [2025-02-11 16:51:26] Production.INFO: ProcessCDR(1,14453077,1,1,2) [2025-02-11 16:51:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:51:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:51:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:51:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453077', 'tblTempUsageDetail_20' ) start [2025-02-11 16:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453077', 'tblTempUsageDetail_20' ) end [2025-02-11 16:51:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:51:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:51:31] Production.INFO: ==1587== Releasing lock... [2025-02-11 16:51:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:51:31] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:52:05 [end_date_ymd] => 2025-02-11 16:52:05 [RateCDR] => 1 ) [2025-02-11 16:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:52:05' and `end` < '2025-02-11 16:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:52:27] Production.INFO: count ==5043 [2025-02-11 16:52:29] Production.ERROR: pbx CDR StartTime 2025-02-11 13:52:05 - End Time 2025-02-11 16:52:05 [2025-02-11 16:52:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453082', 'tblTempUsageDetail_20' ) start [2025-02-11 16:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453082', 'tblTempUsageDetail_20' ) end [2025-02-11 16:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453082', 'tblTempVendorCDR_20' ) start [2025-02-11 16:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453082', 'tblTempVendorCDR_20' ) end [2025-02-11 16:52:29] Production.INFO: ProcessCDR(1,14453082,1,1,2) [2025-02-11 16:52:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:52:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:52:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:52:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:52:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453082', 'tblTempUsageDetail_20' ) start [2025-02-11 16:52:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453082', 'tblTempUsageDetail_20' ) end [2025-02-11 16:52:34] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:52:34] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:52:34] Production.INFO: ==1681== Releasing lock... [2025-02-11 16:52:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:52:34] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:53:05 [end_date_ymd] => 2025-02-11 16:53:05 [RateCDR] => 1 ) [2025-02-11 16:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:53:05' and `end` < '2025-02-11 16:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:53:24] Production.INFO: count ==5041 [2025-02-11 16:53:26] Production.ERROR: pbx CDR StartTime 2025-02-11 13:53:05 - End Time 2025-02-11 16:53:05 [2025-02-11 16:53:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453087', 'tblTempUsageDetail_20' ) start [2025-02-11 16:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453087', 'tblTempUsageDetail_20' ) end [2025-02-11 16:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453087', 'tblTempVendorCDR_20' ) start [2025-02-11 16:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453087', 'tblTempVendorCDR_20' ) end [2025-02-11 16:53:26] Production.INFO: ProcessCDR(1,14453087,1,1,2) [2025-02-11 16:53:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:53:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:53:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:53:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453087', 'tblTempUsageDetail_20' ) start [2025-02-11 16:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453087', 'tblTempUsageDetail_20' ) end [2025-02-11 16:53:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:53:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:53:31] Production.INFO: ==1780== Releasing lock... [2025-02-11 16:53:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:53:31] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:54:05 [end_date_ymd] => 2025-02-11 16:54:05 [RateCDR] => 1 ) [2025-02-11 16:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:54:05' and `end` < '2025-02-11 16:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:54:30] Production.INFO: count ==5047 [2025-02-11 16:54:32] Production.ERROR: pbx CDR StartTime 2025-02-11 13:54:05 - End Time 2025-02-11 16:54:05 [2025-02-11 16:54:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:54:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453092', 'tblTempUsageDetail_20' ) start [2025-02-11 16:54:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453092', 'tblTempUsageDetail_20' ) end [2025-02-11 16:54:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453092', 'tblTempVendorCDR_20' ) start [2025-02-11 16:54:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453092', 'tblTempVendorCDR_20' ) end [2025-02-11 16:54:32] Production.INFO: ProcessCDR(1,14453092,1,1,2) [2025-02-11 16:54:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:54:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:54:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:54:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:54:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453092', 'tblTempUsageDetail_20' ) start [2025-02-11 16:54:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453092', 'tblTempUsageDetail_20' ) end [2025-02-11 16:54:37] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:54:37] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:54:37] Production.INFO: ==1873== Releasing lock... [2025-02-11 16:54:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:54:37] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:55:05 [end_date_ymd] => 2025-02-11 16:55:05 [RateCDR] => 1 ) [2025-02-11 16:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:55:05' and `end` < '2025-02-11 16:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:55:29] Production.INFO: count ==5042 [2025-02-11 16:55:31] Production.ERROR: pbx CDR StartTime 2025-02-11 13:55:05 - End Time 2025-02-11 16:55:05 [2025-02-11 16:55:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:55:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453097', 'tblTempUsageDetail_20' ) start [2025-02-11 16:55:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453097', 'tblTempUsageDetail_20' ) end [2025-02-11 16:55:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453097', 'tblTempVendorCDR_20' ) start [2025-02-11 16:55:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453097', 'tblTempVendorCDR_20' ) end [2025-02-11 16:55:31] Production.INFO: ProcessCDR(1,14453097,1,1,2) [2025-02-11 16:55:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:55:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:55:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:55:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:55:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453097', 'tblTempUsageDetail_20' ) start [2025-02-11 16:55:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453097', 'tblTempUsageDetail_20' ) end [2025-02-11 16:55:36] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:55:36] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:55:36] Production.INFO: ==1965== Releasing lock... [2025-02-11 16:55:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:55:36] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:56:05 [end_date_ymd] => 2025-02-11 16:56:05 [RateCDR] => 1 ) [2025-02-11 16:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:56:05' and `end` < '2025-02-11 16:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:56:24] Production.INFO: count ==5045 [2025-02-11 16:56:26] Production.ERROR: pbx CDR StartTime 2025-02-11 13:56:05 - End Time 2025-02-11 16:56:05 [2025-02-11 16:56:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453102', 'tblTempUsageDetail_20' ) start [2025-02-11 16:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453102', 'tblTempUsageDetail_20' ) end [2025-02-11 16:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453102', 'tblTempVendorCDR_20' ) start [2025-02-11 16:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453102', 'tblTempVendorCDR_20' ) end [2025-02-11 16:56:26] Production.INFO: ProcessCDR(1,14453102,1,1,2) [2025-02-11 16:56:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:56:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:56:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:56:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453102', 'tblTempUsageDetail_20' ) start [2025-02-11 16:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453102', 'tblTempUsageDetail_20' ) end [2025-02-11 16:56:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:56:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:56:31] Production.INFO: ==2060== Releasing lock... [2025-02-11 16:56:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:56:31] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:57:05 [end_date_ymd] => 2025-02-11 16:57:05 [RateCDR] => 1 ) [2025-02-11 16:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:57:05' and `end` < '2025-02-11 16:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:57:21] Production.INFO: count ==5046 [2025-02-11 16:57:23] Production.ERROR: pbx CDR StartTime 2025-02-11 13:57:05 - End Time 2025-02-11 16:57:05 [2025-02-11 16:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453107', 'tblTempUsageDetail_20' ) start [2025-02-11 16:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453107', 'tblTempUsageDetail_20' ) end [2025-02-11 16:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453107', 'tblTempVendorCDR_20' ) start [2025-02-11 16:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453107', 'tblTempVendorCDR_20' ) end [2025-02-11 16:57:23] Production.INFO: ProcessCDR(1,14453107,1,1,2) [2025-02-11 16:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453107', 'tblTempUsageDetail_20' ) start [2025-02-11 16:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453107', 'tblTempUsageDetail_20' ) end [2025-02-11 16:57:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:57:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:57:29] Production.INFO: ==2150== Releasing lock... [2025-02-11 16:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:57:29] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:58:05 [end_date_ymd] => 2025-02-11 16:58:05 [RateCDR] => 1 ) [2025-02-11 16:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:58:05' and `end` < '2025-02-11 16:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:58:20] Production.INFO: count ==5052 [2025-02-11 16:58:23] Production.ERROR: pbx CDR StartTime 2025-02-11 13:58:05 - End Time 2025-02-11 16:58:05 [2025-02-11 16:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453112', 'tblTempUsageDetail_20' ) start [2025-02-11 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453112', 'tblTempUsageDetail_20' ) end [2025-02-11 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453112', 'tblTempVendorCDR_20' ) start [2025-02-11 16:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453112', 'tblTempVendorCDR_20' ) end [2025-02-11 16:58:23] Production.INFO: ProcessCDR(1,14453112,1,1,2) [2025-02-11 16:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453112', 'tblTempUsageDetail_20' ) start [2025-02-11 16:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453112', 'tblTempUsageDetail_20' ) end [2025-02-11 16:58:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:58:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:58:28] Production.INFO: ==2241== Releasing lock... [2025-02-11 16:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:58:28] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 13:59:05 [end_date_ymd] => 2025-02-11 16:59:05 [RateCDR] => 1 ) [2025-02-11 16:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 13:59:05' and `end` < '2025-02-11 16:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 16:59:28] Production.INFO: count ==5038 [2025-02-11 16:59:30] Production.ERROR: pbx CDR StartTime 2025-02-11 13:59:05 - End Time 2025-02-11 16:59:05 [2025-02-11 16:59:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 16:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453117', 'tblTempUsageDetail_20' ) start [2025-02-11 16:59:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453117', 'tblTempUsageDetail_20' ) end [2025-02-11 16:59:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453117', 'tblTempVendorCDR_20' ) start [2025-02-11 16:59:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453117', 'tblTempVendorCDR_20' ) end [2025-02-11 16:59:31] Production.INFO: ProcessCDR(1,14453117,1,1,2) [2025-02-11 16:59:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:59:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 16:59:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:59:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 16:59:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453117', 'tblTempUsageDetail_20' ) start [2025-02-11 16:59:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453117', 'tblTempUsageDetail_20' ) end [2025-02-11 16:59:35] Production.ERROR: pbx prc_insertCDR start [2025-02-11 16:59:35] Production.ERROR: pbx prc_insertCDR end [2025-02-11 16:59:35] Production.INFO: ==2328== Releasing lock... [2025-02-11 16:59:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 16:59:35] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:00:06 [end_date_ymd] => 2025-02-11 17:00:06 [RateCDR] => 1 ) [2025-02-11 17:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:00:06' and `end` < '2025-02-11 17:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:00:29] Production.INFO: count ==5041 [2025-02-11 17:00:31] Production.ERROR: pbx CDR StartTime 2025-02-11 14:00:06 - End Time 2025-02-11 17:00:06 [2025-02-11 17:00:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453123', 'tblTempUsageDetail_20' ) start [2025-02-11 17:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453123', 'tblTempUsageDetail_20' ) end [2025-02-11 17:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453123', 'tblTempVendorCDR_20' ) start [2025-02-11 17:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453123', 'tblTempVendorCDR_20' ) end [2025-02-11 17:00:31] Production.INFO: ProcessCDR(1,14453123,1,1,2) [2025-02-11 17:00:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:00:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:00:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453123', 'tblTempUsageDetail_20' ) start [2025-02-11 17:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453123', 'tblTempUsageDetail_20' ) end [2025-02-11 17:00:36] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:00:36] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:00:36] Production.INFO: ==2417== Releasing lock... [2025-02-11 17:00:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:00:36] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 17:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:01:06 [end_date_ymd] => 2025-02-11 17:01:06 [RateCDR] => 1 ) [2025-02-11 17:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:01:06' and `end` < '2025-02-11 17:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:01:22] Production.INFO: count ==5089 [2025-02-11 17:01:25] Production.ERROR: pbx CDR StartTime 2025-02-11 14:01:06 - End Time 2025-02-11 17:01:06 [2025-02-11 17:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453128', 'tblTempUsageDetail_20' ) start [2025-02-11 17:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453128', 'tblTempUsageDetail_20' ) end [2025-02-11 17:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453128', 'tblTempVendorCDR_20' ) start [2025-02-11 17:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453128', 'tblTempVendorCDR_20' ) end [2025-02-11 17:01:25] Production.INFO: ProcessCDR(1,14453128,1,1,2) [2025-02-11 17:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:01:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:01:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453128', 'tblTempUsageDetail_20' ) start [2025-02-11 17:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453128', 'tblTempUsageDetail_20' ) end [2025-02-11 17:01:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:01:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:01:30] Production.INFO: ==2520== Releasing lock... [2025-02-11 17:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:01:30] Production.INFO: 66 MB #Memory Used# [2025-02-11 17:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:02:06 [end_date_ymd] => 2025-02-11 17:02:06 [RateCDR] => 1 ) [2025-02-11 17:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:02:06' and `end` < '2025-02-11 17:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:02:23] Production.INFO: count ==5094 [2025-02-11 17:02:26] Production.ERROR: pbx CDR StartTime 2025-02-11 14:02:06 - End Time 2025-02-11 17:02:06 [2025-02-11 17:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453133', 'tblTempUsageDetail_20' ) start [2025-02-11 17:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453133', 'tblTempUsageDetail_20' ) end [2025-02-11 17:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453133', 'tblTempVendorCDR_20' ) start [2025-02-11 17:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453133', 'tblTempVendorCDR_20' ) end [2025-02-11 17:02:26] Production.INFO: ProcessCDR(1,14453133,1,1,2) [2025-02-11 17:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:02:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:02:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:02:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453133', 'tblTempUsageDetail_20' ) start [2025-02-11 17:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453133', 'tblTempUsageDetail_20' ) end [2025-02-11 17:02:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:02:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:02:31] Production.INFO: ==2642== Releasing lock... [2025-02-11 17:02:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:02:31] Production.INFO: 66.25 MB #Memory Used# [2025-02-11 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:03:05 [end_date_ymd] => 2025-02-11 17:03:05 [RateCDR] => 1 ) [2025-02-11 17:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:03:05' and `end` < '2025-02-11 17:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:03:20] Production.INFO: count ==5104 [2025-02-11 17:03:22] Production.ERROR: pbx CDR StartTime 2025-02-11 14:03:05 - End Time 2025-02-11 17:03:05 [2025-02-11 17:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453138', 'tblTempUsageDetail_20' ) start [2025-02-11 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453138', 'tblTempUsageDetail_20' ) end [2025-02-11 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453138', 'tblTempVendorCDR_20' ) start [2025-02-11 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453138', 'tblTempVendorCDR_20' ) end [2025-02-11 17:03:22] Production.INFO: ProcessCDR(1,14453138,1,1,2) [2025-02-11 17:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453138', 'tblTempUsageDetail_20' ) start [2025-02-11 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453138', 'tblTempUsageDetail_20' ) end [2025-02-11 17:03:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:03:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:03:27] Production.INFO: ==2725== Releasing lock... [2025-02-11 17:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:03:27] Production.INFO: 66.25 MB #Memory Used# [2025-02-11 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:04:05 [end_date_ymd] => 2025-02-11 17:04:05 [RateCDR] => 1 ) [2025-02-11 17:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:04:05' and `end` < '2025-02-11 17:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:04:23] Production.INFO: count ==5099 [2025-02-11 17:04:25] Production.ERROR: pbx CDR StartTime 2025-02-11 14:04:05 - End Time 2025-02-11 17:04:05 [2025-02-11 17:04:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453143', 'tblTempUsageDetail_20' ) start [2025-02-11 17:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453143', 'tblTempUsageDetail_20' ) end [2025-02-11 17:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453143', 'tblTempVendorCDR_20' ) start [2025-02-11 17:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453143', 'tblTempVendorCDR_20' ) end [2025-02-11 17:04:25] Production.INFO: ProcessCDR(1,14453143,1,1,2) [2025-02-11 17:04:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453143', 'tblTempUsageDetail_20' ) start [2025-02-11 17:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453143', 'tblTempUsageDetail_20' ) end [2025-02-11 17:04:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:04:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:04:30] Production.INFO: ==2808== Releasing lock... [2025-02-11 17:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:04:30] Production.INFO: 66.25 MB #Memory Used# [2025-02-11 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:05:05 [end_date_ymd] => 2025-02-11 17:05:05 [RateCDR] => 1 ) [2025-02-11 17:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:05:05' and `end` < '2025-02-11 17:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:05:22] Production.INFO: count ==5099 [2025-02-11 17:05:25] Production.ERROR: pbx CDR StartTime 2025-02-11 14:05:05 - End Time 2025-02-11 17:05:05 [2025-02-11 17:05:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453148', 'tblTempUsageDetail_20' ) start [2025-02-11 17:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453148', 'tblTempUsageDetail_20' ) end [2025-02-11 17:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453148', 'tblTempVendorCDR_20' ) start [2025-02-11 17:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453148', 'tblTempVendorCDR_20' ) end [2025-02-11 17:05:25] Production.INFO: ProcessCDR(1,14453148,1,1,2) [2025-02-11 17:05:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:05:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:05:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:05:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453148', 'tblTempUsageDetail_20' ) start [2025-02-11 17:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453148', 'tblTempUsageDetail_20' ) end [2025-02-11 17:05:30] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:05:30] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:05:30] Production.INFO: ==2890== Releasing lock... [2025-02-11 17:05:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:05:30] Production.INFO: 66.25 MB #Memory Used# [2025-02-11 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:06:05 [end_date_ymd] => 2025-02-11 17:06:05 [RateCDR] => 1 ) [2025-02-11 17:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:06:05' and `end` < '2025-02-11 17:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:06:19] Production.INFO: count ==5083 [2025-02-11 17:06:21] Production.ERROR: pbx CDR StartTime 2025-02-11 14:06:05 - End Time 2025-02-11 17:06:05 [2025-02-11 17:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453153', 'tblTempUsageDetail_20' ) start [2025-02-11 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453153', 'tblTempUsageDetail_20' ) end [2025-02-11 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453153', 'tblTempVendorCDR_20' ) start [2025-02-11 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453153', 'tblTempVendorCDR_20' ) end [2025-02-11 17:06:22] Production.INFO: ProcessCDR(1,14453153,1,1,2) [2025-02-11 17:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453153', 'tblTempUsageDetail_20' ) start [2025-02-11 17:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453153', 'tblTempUsageDetail_20' ) end [2025-02-11 17:06:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:06:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:06:27] Production.INFO: ==2980== Releasing lock... [2025-02-11 17:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:06:27] Production.INFO: 66 MB #Memory Used# [2025-02-11 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:07:05 [end_date_ymd] => 2025-02-11 17:07:05 [RateCDR] => 1 ) [2025-02-11 17:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:07:05' and `end` < '2025-02-11 17:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:07:21] Production.INFO: count ==5087 [2025-02-11 17:07:23] Production.ERROR: pbx CDR StartTime 2025-02-11 14:07:05 - End Time 2025-02-11 17:07:05 [2025-02-11 17:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453158', 'tblTempUsageDetail_20' ) start [2025-02-11 17:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453158', 'tblTempUsageDetail_20' ) end [2025-02-11 17:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453158', 'tblTempVendorCDR_20' ) start [2025-02-11 17:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453158', 'tblTempVendorCDR_20' ) end [2025-02-11 17:07:24] Production.INFO: ProcessCDR(1,14453158,1,1,2) [2025-02-11 17:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453158', 'tblTempUsageDetail_20' ) start [2025-02-11 17:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453158', 'tblTempUsageDetail_20' ) end [2025-02-11 17:07:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:07:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:07:29] Production.INFO: ==3060== Releasing lock... [2025-02-11 17:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:07:29] Production.INFO: 66 MB #Memory Used# [2025-02-11 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:08:05 [end_date_ymd] => 2025-02-11 17:08:05 [RateCDR] => 1 ) [2025-02-11 17:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:08:05' and `end` < '2025-02-11 17:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:08:23] Production.INFO: count ==5076 [2025-02-11 17:08:26] Production.ERROR: pbx CDR StartTime 2025-02-11 14:08:05 - End Time 2025-02-11 17:08:05 [2025-02-11 17:08:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453163', 'tblTempUsageDetail_20' ) start [2025-02-11 17:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453163', 'tblTempUsageDetail_20' ) end [2025-02-11 17:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453163', 'tblTempVendorCDR_20' ) start [2025-02-11 17:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453163', 'tblTempVendorCDR_20' ) end [2025-02-11 17:08:26] Production.INFO: ProcessCDR(1,14453163,1,1,2) [2025-02-11 17:08:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:08:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:08:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:08:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453163', 'tblTempUsageDetail_20' ) start [2025-02-11 17:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453163', 'tblTempUsageDetail_20' ) end [2025-02-11 17:08:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:08:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:08:31] Production.INFO: ==3144== Releasing lock... [2025-02-11 17:08:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:08:31] Production.INFO: 66 MB #Memory Used# [2025-02-11 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:09:05 [end_date_ymd] => 2025-02-11 17:09:05 [RateCDR] => 1 ) [2025-02-11 17:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:09:05' and `end` < '2025-02-11 17:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:09:22] Production.INFO: count ==5073 [2025-02-11 17:09:24] Production.ERROR: pbx CDR StartTime 2025-02-11 14:09:05 - End Time 2025-02-11 17:09:05 [2025-02-11 17:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453168', 'tblTempUsageDetail_20' ) start [2025-02-11 17:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453168', 'tblTempUsageDetail_20' ) end [2025-02-11 17:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453168', 'tblTempVendorCDR_20' ) start [2025-02-11 17:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453168', 'tblTempVendorCDR_20' ) end [2025-02-11 17:09:24] Production.INFO: ProcessCDR(1,14453168,1,1,2) [2025-02-11 17:09:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:09:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:09:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453168', 'tblTempUsageDetail_20' ) start [2025-02-11 17:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453168', 'tblTempUsageDetail_20' ) end [2025-02-11 17:09:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:09:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:09:29] Production.INFO: ==3227== Releasing lock... [2025-02-11 17:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:09:29] Production.INFO: 66 MB #Memory Used# [2025-02-11 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:10:06 [end_date_ymd] => 2025-02-11 17:10:06 [RateCDR] => 1 ) [2025-02-11 17:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:10:06' and `end` < '2025-02-11 17:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:10:20] Production.INFO: count ==5105 [2025-02-11 17:10:22] Production.ERROR: pbx CDR StartTime 2025-02-11 14:10:06 - End Time 2025-02-11 17:10:06 [2025-02-11 17:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453174', 'tblTempUsageDetail_20' ) start [2025-02-11 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453174', 'tblTempUsageDetail_20' ) end [2025-02-11 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453174', 'tblTempVendorCDR_20' ) start [2025-02-11 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453174', 'tblTempVendorCDR_20' ) end [2025-02-11 17:10:23] Production.INFO: ProcessCDR(1,14453174,1,1,2) [2025-02-11 17:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453174', 'tblTempUsageDetail_20' ) start [2025-02-11 17:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453174', 'tblTempUsageDetail_20' ) end [2025-02-11 17:10:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:10:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:10:28] Production.INFO: ==3310== Releasing lock... [2025-02-11 17:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:10:28] Production.INFO: 66.25 MB #Memory Used# [2025-02-11 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:11:05 [end_date_ymd] => 2025-02-11 17:11:05 [RateCDR] => 1 ) [2025-02-11 17:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:11:05' and `end` < '2025-02-11 17:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:11:20] Production.INFO: count ==5062 [2025-02-11 17:11:22] Production.ERROR: pbx CDR StartTime 2025-02-11 14:11:05 - End Time 2025-02-11 17:11:05 [2025-02-11 17:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453179', 'tblTempUsageDetail_20' ) start [2025-02-11 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453179', 'tblTempUsageDetail_20' ) end [2025-02-11 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453179', 'tblTempVendorCDR_20' ) start [2025-02-11 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453179', 'tblTempVendorCDR_20' ) end [2025-02-11 17:11:22] Production.INFO: ProcessCDR(1,14453179,1,1,2) [2025-02-11 17:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453179', 'tblTempUsageDetail_20' ) start [2025-02-11 17:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453179', 'tblTempUsageDetail_20' ) end [2025-02-11 17:11:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:11:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:11:27] Production.INFO: ==3390== Releasing lock... [2025-02-11 17:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:11:27] Production.INFO: 66 MB #Memory Used# [2025-02-11 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:12:05 [end_date_ymd] => 2025-02-11 17:12:05 [RateCDR] => 1 ) [2025-02-11 17:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:12:05' and `end` < '2025-02-11 17:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:12:19] Production.INFO: count ==5061 [2025-02-11 17:12:21] Production.ERROR: pbx CDR StartTime 2025-02-11 14:12:05 - End Time 2025-02-11 17:12:05 [2025-02-11 17:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453184', 'tblTempUsageDetail_20' ) start [2025-02-11 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453184', 'tblTempUsageDetail_20' ) end [2025-02-11 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453184', 'tblTempVendorCDR_20' ) start [2025-02-11 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453184', 'tblTempVendorCDR_20' ) end [2025-02-11 17:12:21] Production.INFO: ProcessCDR(1,14453184,1,1,2) [2025-02-11 17:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453184', 'tblTempUsageDetail_20' ) start [2025-02-11 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453184', 'tblTempUsageDetail_20' ) end [2025-02-11 17:12:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:12:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:12:26] Production.INFO: ==3475== Releasing lock... [2025-02-11 17:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:12:26] Production.INFO: 66 MB #Memory Used# [2025-02-11 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:13:05 [end_date_ymd] => 2025-02-11 17:13:05 [RateCDR] => 1 ) [2025-02-11 17:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:13:05' and `end` < '2025-02-11 17:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:13:19] Production.INFO: count ==5050 [2025-02-11 17:13:21] Production.ERROR: pbx CDR StartTime 2025-02-11 14:13:05 - End Time 2025-02-11 17:13:05 [2025-02-11 17:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453189', 'tblTempUsageDetail_20' ) start [2025-02-11 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453189', 'tblTempUsageDetail_20' ) end [2025-02-11 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453189', 'tblTempVendorCDR_20' ) start [2025-02-11 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453189', 'tblTempVendorCDR_20' ) end [2025-02-11 17:13:21] Production.INFO: ProcessCDR(1,14453189,1,1,2) [2025-02-11 17:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453189', 'tblTempUsageDetail_20' ) start [2025-02-11 17:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453189', 'tblTempUsageDetail_20' ) end [2025-02-11 17:13:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:13:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:13:25] Production.INFO: ==3559== Releasing lock... [2025-02-11 17:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:13:25] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:14:05 [end_date_ymd] => 2025-02-11 17:14:05 [RateCDR] => 1 ) [2025-02-11 17:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:14:05' and `end` < '2025-02-11 17:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:14:20] Production.INFO: count ==5064 [2025-02-11 17:14:22] Production.ERROR: pbx CDR StartTime 2025-02-11 14:14:05 - End Time 2025-02-11 17:14:05 [2025-02-11 17:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453194', 'tblTempUsageDetail_20' ) start [2025-02-11 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453194', 'tblTempUsageDetail_20' ) end [2025-02-11 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453194', 'tblTempVendorCDR_20' ) start [2025-02-11 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453194', 'tblTempVendorCDR_20' ) end [2025-02-11 17:14:22] Production.INFO: ProcessCDR(1,14453194,1,1,2) [2025-02-11 17:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453194', 'tblTempUsageDetail_20' ) start [2025-02-11 17:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453194', 'tblTempUsageDetail_20' ) end [2025-02-11 17:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:14:26] Production.INFO: ==3651== Releasing lock... [2025-02-11 17:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:14:26] Production.INFO: 66 MB #Memory Used# [2025-02-11 17:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:15:06 [end_date_ymd] => 2025-02-11 17:15:06 [RateCDR] => 1 ) [2025-02-11 17:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:15:06' and `end` < '2025-02-11 17:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:15:22] Production.INFO: count ==5078 [2025-02-11 17:15:24] Production.ERROR: pbx CDR StartTime 2025-02-11 14:15:06 - End Time 2025-02-11 17:15:06 [2025-02-11 17:15:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453199', 'tblTempUsageDetail_20' ) start [2025-02-11 17:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453199', 'tblTempUsageDetail_20' ) end [2025-02-11 17:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453199', 'tblTempVendorCDR_20' ) start [2025-02-11 17:15:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453199', 'tblTempVendorCDR_20' ) end [2025-02-11 17:15:25] Production.INFO: ProcessCDR(1,14453199,1,1,2) [2025-02-11 17:15:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:15:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:15:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:15:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453199', 'tblTempUsageDetail_20' ) start [2025-02-11 17:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453199', 'tblTempUsageDetail_20' ) end [2025-02-11 17:15:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:15:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:15:29] Production.INFO: ==3733== Releasing lock... [2025-02-11 17:15:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:15:29] Production.INFO: 66 MB #Memory Used# [2025-02-11 17:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:16:06 [end_date_ymd] => 2025-02-11 17:16:06 [RateCDR] => 1 ) [2025-02-11 17:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:16:06' and `end` < '2025-02-11 17:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:16:23] Production.INFO: count ==5067 [2025-02-11 17:16:25] Production.ERROR: pbx CDR StartTime 2025-02-11 14:16:06 - End Time 2025-02-11 17:16:06 [2025-02-11 17:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453204', 'tblTempUsageDetail_20' ) start [2025-02-11 17:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453204', 'tblTempUsageDetail_20' ) end [2025-02-11 17:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453204', 'tblTempVendorCDR_20' ) start [2025-02-11 17:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453204', 'tblTempVendorCDR_20' ) end [2025-02-11 17:16:25] Production.INFO: ProcessCDR(1,14453204,1,1,2) [2025-02-11 17:16:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453204', 'tblTempUsageDetail_20' ) start [2025-02-11 17:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453204', 'tblTempUsageDetail_20' ) end [2025-02-11 17:16:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:16:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:16:29] Production.INFO: ==3816== Releasing lock... [2025-02-11 17:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:16:29] Production.INFO: 66 MB #Memory Used# [2025-02-11 17:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:17:06 [end_date_ymd] => 2025-02-11 17:17:06 [RateCDR] => 1 ) [2025-02-11 17:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:17:06' and `end` < '2025-02-11 17:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:17:19] Production.INFO: count ==5064 [2025-02-11 17:17:21] Production.ERROR: pbx CDR StartTime 2025-02-11 14:17:06 - End Time 2025-02-11 17:17:06 [2025-02-11 17:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453209', 'tblTempUsageDetail_20' ) start [2025-02-11 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453209', 'tblTempUsageDetail_20' ) end [2025-02-11 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453209', 'tblTempVendorCDR_20' ) start [2025-02-11 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453209', 'tblTempVendorCDR_20' ) end [2025-02-11 17:17:22] Production.INFO: ProcessCDR(1,14453209,1,1,2) [2025-02-11 17:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453209', 'tblTempUsageDetail_20' ) start [2025-02-11 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453209', 'tblTempUsageDetail_20' ) end [2025-02-11 17:17:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:17:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:17:27] Production.INFO: ==3936== Releasing lock... [2025-02-11 17:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:17:27] Production.INFO: 66 MB #Memory Used# [2025-02-11 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:18:05 [end_date_ymd] => 2025-02-11 17:18:05 [RateCDR] => 1 ) [2025-02-11 17:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:18:05' and `end` < '2025-02-11 17:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:18:20] Production.INFO: count ==5056 [2025-02-11 17:18:22] Production.ERROR: pbx CDR StartTime 2025-02-11 14:18:05 - End Time 2025-02-11 17:18:05 [2025-02-11 17:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453214', 'tblTempUsageDetail_20' ) start [2025-02-11 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453214', 'tblTempUsageDetail_20' ) end [2025-02-11 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453214', 'tblTempVendorCDR_20' ) start [2025-02-11 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453214', 'tblTempVendorCDR_20' ) end [2025-02-11 17:18:22] Production.INFO: ProcessCDR(1,14453214,1,1,2) [2025-02-11 17:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453214', 'tblTempUsageDetail_20' ) start [2025-02-11 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453214', 'tblTempUsageDetail_20' ) end [2025-02-11 17:18:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:18:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:18:25] Production.INFO: ==4020== Releasing lock... [2025-02-11 17:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:18:25] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 17:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:19:06 [end_date_ymd] => 2025-02-11 17:19:06 [RateCDR] => 1 ) [2025-02-11 17:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:19:06' and `end` < '2025-02-11 17:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:19:23] Production.INFO: count ==5055 [2025-02-11 17:19:26] Production.ERROR: pbx CDR StartTime 2025-02-11 14:19:06 - End Time 2025-02-11 17:19:06 [2025-02-11 17:19:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453219', 'tblTempUsageDetail_20' ) start [2025-02-11 17:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453219', 'tblTempUsageDetail_20' ) end [2025-02-11 17:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453219', 'tblTempVendorCDR_20' ) start [2025-02-11 17:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453219', 'tblTempVendorCDR_20' ) end [2025-02-11 17:19:26] Production.INFO: ProcessCDR(1,14453219,1,1,2) [2025-02-11 17:19:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:19:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:19:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:19:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:19:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453219', 'tblTempUsageDetail_20' ) start [2025-02-11 17:19:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453219', 'tblTempUsageDetail_20' ) end [2025-02-11 17:19:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:19:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:19:31] Production.INFO: ==4108== Releasing lock... [2025-02-11 17:19:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:19:31] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:20:06 [end_date_ymd] => 2025-02-11 17:20:06 [RateCDR] => 1 ) [2025-02-11 17:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:20:06' and `end` < '2025-02-11 17:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:20:21] Production.INFO: count ==5039 [2025-02-11 17:20:23] Production.ERROR: pbx CDR StartTime 2025-02-11 14:20:06 - End Time 2025-02-11 17:20:06 [2025-02-11 17:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453225', 'tblTempUsageDetail_20' ) start [2025-02-11 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453225', 'tblTempUsageDetail_20' ) end [2025-02-11 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453225', 'tblTempVendorCDR_20' ) start [2025-02-11 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453225', 'tblTempVendorCDR_20' ) end [2025-02-11 17:20:23] Production.INFO: ProcessCDR(1,14453225,1,1,2) [2025-02-11 17:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453225', 'tblTempUsageDetail_20' ) start [2025-02-11 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453225', 'tblTempUsageDetail_20' ) end [2025-02-11 17:20:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:20:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:20:27] Production.INFO: ==4188== Releasing lock... [2025-02-11 17:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:20:27] Production.INFO: 65.75 MB #Memory Used# [2025-02-11 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:21:05 [end_date_ymd] => 2025-02-11 17:21:05 [RateCDR] => 1 ) [2025-02-11 17:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:21:05' and `end` < '2025-02-11 17:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:21:21] Production.INFO: count ==5004 [2025-02-11 17:21:23] Production.ERROR: pbx CDR StartTime 2025-02-11 14:21:05 - End Time 2025-02-11 17:21:05 [2025-02-11 17:21:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453230', 'tblTempUsageDetail_20' ) start [2025-02-11 17:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453230', 'tblTempUsageDetail_20' ) end [2025-02-11 17:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453230', 'tblTempVendorCDR_20' ) start [2025-02-11 17:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453230', 'tblTempVendorCDR_20' ) end [2025-02-11 17:21:23] Production.INFO: ProcessCDR(1,14453230,1,1,2) [2025-02-11 17:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453230', 'tblTempUsageDetail_20' ) start [2025-02-11 17:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453230', 'tblTempUsageDetail_20' ) end [2025-02-11 17:21:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:21:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:21:27] Production.INFO: ==4271== Releasing lock... [2025-02-11 17:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:21:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-11 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:22:05 [end_date_ymd] => 2025-02-11 17:22:05 [RateCDR] => 1 ) [2025-02-11 17:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:22:05' and `end` < '2025-02-11 17:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:22:19] Production.INFO: count ==5000 [2025-02-11 17:22:21] Production.ERROR: pbx CDR StartTime 2025-02-11 14:22:05 - End Time 2025-02-11 17:22:05 [2025-02-11 17:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453235', 'tblTempUsageDetail_20' ) start [2025-02-11 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453235', 'tblTempUsageDetail_20' ) end [2025-02-11 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453235', 'tblTempVendorCDR_20' ) start [2025-02-11 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453235', 'tblTempVendorCDR_20' ) end [2025-02-11 17:22:21] Production.INFO: ProcessCDR(1,14453235,1,1,2) [2025-02-11 17:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453235', 'tblTempUsageDetail_20' ) start [2025-02-11 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453235', 'tblTempUsageDetail_20' ) end [2025-02-11 17:22:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:22:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:22:26] Production.INFO: ==4345== Releasing lock... [2025-02-11 17:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:22:26] Production.INFO: 65.5 MB #Memory Used# [2025-02-11 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:23:05 [end_date_ymd] => 2025-02-11 17:23:05 [RateCDR] => 1 ) [2025-02-11 17:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:23:05' and `end` < '2025-02-11 17:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:23:20] Production.INFO: count ==4984 [2025-02-11 17:23:22] Production.ERROR: pbx CDR StartTime 2025-02-11 14:23:05 - End Time 2025-02-11 17:23:05 [2025-02-11 17:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453240', 'tblTempUsageDetail_20' ) start [2025-02-11 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453240', 'tblTempUsageDetail_20' ) end [2025-02-11 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453240', 'tblTempVendorCDR_20' ) start [2025-02-11 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453240', 'tblTempVendorCDR_20' ) end [2025-02-11 17:23:22] Production.INFO: ProcessCDR(1,14453240,1,1,2) [2025-02-11 17:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453240', 'tblTempUsageDetail_20' ) start [2025-02-11 17:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453240', 'tblTempUsageDetail_20' ) end [2025-02-11 17:23:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:23:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:23:27] Production.INFO: ==4430== Releasing lock... [2025-02-11 17:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:23:27] Production.INFO: 65.25 MB #Memory Used# [2025-02-11 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:24:05 [end_date_ymd] => 2025-02-11 17:24:05 [RateCDR] => 1 ) [2025-02-11 17:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:24:05' and `end` < '2025-02-11 17:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:24:19] Production.INFO: count ==4984 [2025-02-11 17:24:21] Production.ERROR: pbx CDR StartTime 2025-02-11 14:24:05 - End Time 2025-02-11 17:24:05 [2025-02-11 17:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453245', 'tblTempUsageDetail_20' ) start [2025-02-11 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453245', 'tblTempUsageDetail_20' ) end [2025-02-11 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453245', 'tblTempVendorCDR_20' ) start [2025-02-11 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453245', 'tblTempVendorCDR_20' ) end [2025-02-11 17:24:21] Production.INFO: ProcessCDR(1,14453245,1,1,2) [2025-02-11 17:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453245', 'tblTempUsageDetail_20' ) start [2025-02-11 17:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453245', 'tblTempUsageDetail_20' ) end [2025-02-11 17:24:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:24:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:24:26] Production.INFO: ==4508== Releasing lock... [2025-02-11 17:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:24:26] Production.INFO: 65.25 MB #Memory Used# [2025-02-11 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:25:05 [end_date_ymd] => 2025-02-11 17:25:05 [RateCDR] => 1 ) [2025-02-11 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:25:05' and `end` < '2025-02-11 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:25:19] Production.INFO: count ==4977 [2025-02-11 17:25:22] Production.ERROR: pbx CDR StartTime 2025-02-11 14:25:05 - End Time 2025-02-11 17:25:05 [2025-02-11 17:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453250', 'tblTempUsageDetail_20' ) start [2025-02-11 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453250', 'tblTempUsageDetail_20' ) end [2025-02-11 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453250', 'tblTempVendorCDR_20' ) start [2025-02-11 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453250', 'tblTempVendorCDR_20' ) end [2025-02-11 17:25:22] Production.INFO: ProcessCDR(1,14453250,1,1,2) [2025-02-11 17:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453250', 'tblTempUsageDetail_20' ) start [2025-02-11 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453250', 'tblTempUsageDetail_20' ) end [2025-02-11 17:25:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:25:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:25:27] Production.INFO: ==4589== Releasing lock... [2025-02-11 17:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:25:27] Production.INFO: 65.25 MB #Memory Used# [2025-02-11 17:26:19] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:26:17 [end_date_ymd] => 2025-02-11 17:26:17 [RateCDR] => 1 ) [2025-02-11 17:26:19] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:26:17' and `end` < '2025-02-11 17:26: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-02-11 17:26:34] Production.INFO: count ==4956 [2025-02-11 17:27:30] Production.ERROR: pbx CDR StartTime 2025-02-11 14:26:17 - End Time 2025-02-11 17:26:17 [2025-02-11 17:27:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:27:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453255', 'tblTempUsageDetail_20' ) start [2025-02-11 17:27:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453255', 'tblTempUsageDetail_20' ) end [2025-02-11 17:27:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453255', 'tblTempVendorCDR_20' ) start [2025-02-11 17:27:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453255', 'tblTempVendorCDR_20' ) end [2025-02-11 17:27:36] Production.INFO: ProcessCDR(1,14453255,1,1,2) [2025-02-11 17:27:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:27:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:27:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453255', 'tblTempUsageDetail_20' ) start [2025-02-11 17:28:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453255', 'tblTempUsageDetail_20' ) end [2025-02-11 17:28:36] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:28:36] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:28:36] Production.INFO: ==4667== Releasing lock... [2025-02-11 17:28:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:28:36] Production.INFO: 65 MB #Memory Used# [2025-02-11 17:29:20] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:29:20 [end_date_ymd] => 2025-02-11 17:29:20 [RateCDR] => 1 ) [2025-02-11 17:29:20] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:29:20' and `end` < '2025-02-11 17:29:20' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:29:33] Production.INFO: count ==4947 [2025-02-11 17:30:15] Production.ERROR: pbx CDR StartTime 2025-02-11 14:29:20 - End Time 2025-02-11 17:29:20 [2025-02-11 17:30:15] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:30:15] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453266', 'tblTempUsageDetail_20' ) start [2025-02-11 17:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453266', 'tblTempUsageDetail_20' ) end [2025-02-11 17:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453266', 'tblTempVendorCDR_20' ) start [2025-02-11 17:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453266', 'tblTempVendorCDR_20' ) end [2025-02-11 17:30:19] Production.INFO: ProcessCDR(1,14453266,1,1,2) [2025-02-11 17:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:30:51] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:30:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453266', 'tblTempUsageDetail_20' ) start [2025-02-11 17:31:06] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453266', 'tblTempUsageDetail_20' ) end [2025-02-11 17:31:06] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:31:06] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:31:09] Production.INFO: ==4883== Releasing lock... [2025-02-11 17:31:09] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:31:09] Production.INFO: 65 MB #Memory Used# [2025-02-11 17:32:23] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:32:23 [end_date_ymd] => 2025-02-11 17:32:23 [RateCDR] => 1 ) [2025-02-11 17:32:23] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:32:23' and `end` < '2025-02-11 17:32:23' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:32:38] Production.INFO: count ==4902 [2025-02-11 17:32:40] Production.ERROR: pbx CDR StartTime 2025-02-11 14:32:23 - End Time 2025-02-11 17:32:23 [2025-02-11 17:32:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:32:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453278', 'tblTempUsageDetail_20' ) start [2025-02-11 17:32:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453278', 'tblTempUsageDetail_20' ) end [2025-02-11 17:32:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453278', 'tblTempVendorCDR_20' ) start [2025-02-11 17:32:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453278', 'tblTempVendorCDR_20' ) end [2025-02-11 17:32:40] Production.INFO: ProcessCDR(1,14453278,1,1,2) [2025-02-11 17:32:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:32:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:32:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:32:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:32:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453278', 'tblTempUsageDetail_20' ) start [2025-02-11 17:32:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453278', 'tblTempUsageDetail_20' ) end [2025-02-11 17:32:45] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:32:45] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:32:45] Production.INFO: ==5092== Releasing lock... [2025-02-11 17:32:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:32:45] Production.INFO: 64.75 MB #Memory Used# [2025-02-11 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:33:05 [end_date_ymd] => 2025-02-11 17:33:05 [RateCDR] => 1 ) [2025-02-11 17:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:33:05' and `end` < '2025-02-11 17:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:33:19] Production.INFO: count ==4880 [2025-02-11 17:33:21] Production.ERROR: pbx CDR StartTime 2025-02-11 14:33:05 - End Time 2025-02-11 17:33:05 [2025-02-11 17:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453283', 'tblTempUsageDetail_20' ) start [2025-02-11 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453283', 'tblTempUsageDetail_20' ) end [2025-02-11 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453283', 'tblTempVendorCDR_20' ) start [2025-02-11 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453283', 'tblTempVendorCDR_20' ) end [2025-02-11 17:33:21] Production.INFO: ProcessCDR(1,14453283,1,1,2) [2025-02-11 17:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453283', 'tblTempUsageDetail_20' ) start [2025-02-11 17:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453283', 'tblTempUsageDetail_20' ) end [2025-02-11 17:33:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:33:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:33:26] Production.INFO: ==5206== Releasing lock... [2025-02-11 17:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:33:26] Production.INFO: 64.5 MB #Memory Used# [2025-02-11 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:34:05 [end_date_ymd] => 2025-02-11 17:34:05 [RateCDR] => 1 ) [2025-02-11 17:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:34:05' and `end` < '2025-02-11 17:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:34:21] Production.INFO: count ==4890 [2025-02-11 17:34:24] Production.ERROR: pbx CDR StartTime 2025-02-11 14:34:05 - End Time 2025-02-11 17:34:05 [2025-02-11 17:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453288', 'tblTempUsageDetail_20' ) start [2025-02-11 17:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453288', 'tblTempUsageDetail_20' ) end [2025-02-11 17:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453288', 'tblTempVendorCDR_20' ) start [2025-02-11 17:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453288', 'tblTempVendorCDR_20' ) end [2025-02-11 17:34:24] Production.INFO: ProcessCDR(1,14453288,1,1,2) [2025-02-11 17:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:34:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:34:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453288', 'tblTempUsageDetail_20' ) start [2025-02-11 17:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453288', 'tblTempUsageDetail_20' ) end [2025-02-11 17:34:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:34:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:34:29] Production.INFO: ==5279== Releasing lock... [2025-02-11 17:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:34:29] Production.INFO: 64.5 MB #Memory Used# [2025-02-11 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:35:05 [end_date_ymd] => 2025-02-11 17:35:05 [RateCDR] => 1 ) [2025-02-11 17:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:35:05' and `end` < '2025-02-11 17:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:35:20] Production.INFO: count ==4887 [2025-02-11 17:35:22] Production.ERROR: pbx CDR StartTime 2025-02-11 14:35:05 - End Time 2025-02-11 17:35:05 [2025-02-11 17:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453293', 'tblTempUsageDetail_20' ) start [2025-02-11 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453293', 'tblTempUsageDetail_20' ) end [2025-02-11 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453293', 'tblTempVendorCDR_20' ) start [2025-02-11 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453293', 'tblTempVendorCDR_20' ) end [2025-02-11 17:35:22] Production.INFO: ProcessCDR(1,14453293,1,1,2) [2025-02-11 17:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453293', 'tblTempUsageDetail_20' ) start [2025-02-11 17:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453293', 'tblTempUsageDetail_20' ) end [2025-02-11 17:35:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:35:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:35:28] Production.INFO: ==5351== Releasing lock... [2025-02-11 17:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:35:28] Production.INFO: 64.5 MB #Memory Used# [2025-02-11 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:36:05 [end_date_ymd] => 2025-02-11 17:36:05 [RateCDR] => 1 ) [2025-02-11 17:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:36:05' and `end` < '2025-02-11 17:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:36:23] Production.INFO: count ==4862 [2025-02-11 17:36:25] Production.ERROR: pbx CDR StartTime 2025-02-11 14:36:05 - End Time 2025-02-11 17:36:05 [2025-02-11 17:36:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453298', 'tblTempUsageDetail_20' ) start [2025-02-11 17:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453298', 'tblTempUsageDetail_20' ) end [2025-02-11 17:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453298', 'tblTempVendorCDR_20' ) start [2025-02-11 17:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453298', 'tblTempVendorCDR_20' ) end [2025-02-11 17:36:25] Production.INFO: ProcessCDR(1,14453298,1,1,2) [2025-02-11 17:36:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453298', 'tblTempUsageDetail_20' ) start [2025-02-11 17:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453298', 'tblTempUsageDetail_20' ) end [2025-02-11 17:36:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:36:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:36:28] Production.INFO: ==5421== Releasing lock... [2025-02-11 17:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:36:28] Production.INFO: 64.5 MB #Memory Used# [2025-02-11 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:37:05 [end_date_ymd] => 2025-02-11 17:37:05 [RateCDR] => 1 ) [2025-02-11 17:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:37:05' and `end` < '2025-02-11 17:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:37:19] Production.INFO: count ==4865 [2025-02-11 17:37:21] Production.ERROR: pbx CDR StartTime 2025-02-11 14:37:05 - End Time 2025-02-11 17:37:05 [2025-02-11 17:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453303', 'tblTempUsageDetail_20' ) start [2025-02-11 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453303', 'tblTempUsageDetail_20' ) end [2025-02-11 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453303', 'tblTempVendorCDR_20' ) start [2025-02-11 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453303', 'tblTempVendorCDR_20' ) end [2025-02-11 17:37:22] Production.INFO: ProcessCDR(1,14453303,1,1,2) [2025-02-11 17:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453303', 'tblTempUsageDetail_20' ) start [2025-02-11 17:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453303', 'tblTempUsageDetail_20' ) end [2025-02-11 17:37:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:37:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:37:27] Production.INFO: ==5489== Releasing lock... [2025-02-11 17:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:37:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-11 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:38:05 [end_date_ymd] => 2025-02-11 17:38:05 [RateCDR] => 1 ) [2025-02-11 17:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:38:05' and `end` < '2025-02-11 17:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:38:20] Production.INFO: count ==4861 [2025-02-11 17:38:22] Production.ERROR: pbx CDR StartTime 2025-02-11 14:38:05 - End Time 2025-02-11 17:38:05 [2025-02-11 17:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453308', 'tblTempUsageDetail_20' ) start [2025-02-11 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453308', 'tblTempUsageDetail_20' ) end [2025-02-11 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453308', 'tblTempVendorCDR_20' ) start [2025-02-11 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453308', 'tblTempVendorCDR_20' ) end [2025-02-11 17:38:22] Production.INFO: ProcessCDR(1,14453308,1,1,2) [2025-02-11 17:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453308', 'tblTempUsageDetail_20' ) start [2025-02-11 17:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453308', 'tblTempUsageDetail_20' ) end [2025-02-11 17:38:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:38:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:38:27] Production.INFO: ==5563== Releasing lock... [2025-02-11 17:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:38:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-11 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:39:05 [end_date_ymd] => 2025-02-11 17:39:05 [RateCDR] => 1 ) [2025-02-11 17:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:39:05' and `end` < '2025-02-11 17:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:39:20] Production.INFO: count ==4859 [2025-02-11 17:39:22] Production.ERROR: pbx CDR StartTime 2025-02-11 14:39:05 - End Time 2025-02-11 17:39:05 [2025-02-11 17:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453313', 'tblTempUsageDetail_20' ) start [2025-02-11 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453313', 'tblTempUsageDetail_20' ) end [2025-02-11 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453313', 'tblTempVendorCDR_20' ) start [2025-02-11 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453313', 'tblTempVendorCDR_20' ) end [2025-02-11 17:39:22] Production.INFO: ProcessCDR(1,14453313,1,1,2) [2025-02-11 17:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453313', 'tblTempUsageDetail_20' ) start [2025-02-11 17:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453313', 'tblTempUsageDetail_20' ) end [2025-02-11 17:39:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:39:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:39:27] Production.INFO: ==5637== Releasing lock... [2025-02-11 17:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:39:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-11 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:40:06 [end_date_ymd] => 2025-02-11 17:40:06 [RateCDR] => 1 ) [2025-02-11 17:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:40:06' and `end` < '2025-02-11 17:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:40:20] Production.INFO: count ==4850 [2025-02-11 17:40:22] Production.ERROR: pbx CDR StartTime 2025-02-11 14:40:06 - End Time 2025-02-11 17:40:06 [2025-02-11 17:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453319', 'tblTempUsageDetail_20' ) start [2025-02-11 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453319', 'tblTempUsageDetail_20' ) end [2025-02-11 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453319', 'tblTempVendorCDR_20' ) start [2025-02-11 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453319', 'tblTempVendorCDR_20' ) end [2025-02-11 17:40:22] Production.INFO: ProcessCDR(1,14453319,1,1,2) [2025-02-11 17:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453319', 'tblTempUsageDetail_20' ) start [2025-02-11 17:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453319', 'tblTempUsageDetail_20' ) end [2025-02-11 17:40:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:40:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:40:27] Production.INFO: ==5713== Releasing lock... [2025-02-11 17:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:40:27] Production.INFO: 64.25 MB #Memory Used# [2025-02-11 17:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:41:06 [end_date_ymd] => 2025-02-11 17:41:06 [RateCDR] => 1 ) [2025-02-11 17:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:41:06' and `end` < '2025-02-11 17:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:41:20] Production.INFO: count ==4846 [2025-02-11 17:41:22] Production.ERROR: pbx CDR StartTime 2025-02-11 14:41:06 - End Time 2025-02-11 17:41:06 [2025-02-11 17:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453324', 'tblTempUsageDetail_20' ) start [2025-02-11 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453324', 'tblTempUsageDetail_20' ) end [2025-02-11 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453324', 'tblTempVendorCDR_20' ) start [2025-02-11 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453324', 'tblTempVendorCDR_20' ) end [2025-02-11 17:41:22] Production.INFO: ProcessCDR(1,14453324,1,1,2) [2025-02-11 17:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453324', 'tblTempUsageDetail_20' ) start [2025-02-11 17:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453324', 'tblTempUsageDetail_20' ) end [2025-02-11 17:41:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:41:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:41:25] Production.INFO: ==5794== Releasing lock... [2025-02-11 17:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:41:25] Production.INFO: 64.25 MB #Memory Used# [2025-02-11 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:42:05 [end_date_ymd] => 2025-02-11 17:42:05 [RateCDR] => 1 ) [2025-02-11 17:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:42:05' and `end` < '2025-02-11 17:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:42:18] Production.INFO: count ==4834 [2025-02-11 17:42:20] Production.ERROR: pbx CDR StartTime 2025-02-11 14:42:05 - End Time 2025-02-11 17:42:05 [2025-02-11 17:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453329', 'tblTempUsageDetail_20' ) start [2025-02-11 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453329', 'tblTempUsageDetail_20' ) end [2025-02-11 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453329', 'tblTempVendorCDR_20' ) start [2025-02-11 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453329', 'tblTempVendorCDR_20' ) end [2025-02-11 17:42:20] Production.INFO: ProcessCDR(1,14453329,1,1,2) [2025-02-11 17:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453329', 'tblTempUsageDetail_20' ) start [2025-02-11 17:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453329', 'tblTempUsageDetail_20' ) end [2025-02-11 17:42:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:42:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:42:25] Production.INFO: ==5864== Releasing lock... [2025-02-11 17:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:42:25] Production.INFO: 64.25 MB #Memory Used# [2025-02-11 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:43:05 [end_date_ymd] => 2025-02-11 17:43:05 [RateCDR] => 1 ) [2025-02-11 17:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:43:05' and `end` < '2025-02-11 17:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:43:20] Production.INFO: count ==4789 [2025-02-11 17:43:22] Production.ERROR: pbx CDR StartTime 2025-02-11 14:43:05 - End Time 2025-02-11 17:43:05 [2025-02-11 17:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453334', 'tblTempUsageDetail_20' ) start [2025-02-11 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453334', 'tblTempUsageDetail_20' ) end [2025-02-11 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453334', 'tblTempVendorCDR_20' ) start [2025-02-11 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453334', 'tblTempVendorCDR_20' ) end [2025-02-11 17:43:22] Production.INFO: ProcessCDR(1,14453334,1,1,2) [2025-02-11 17:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453334', 'tblTempUsageDetail_20' ) start [2025-02-11 17:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453334', 'tblTempUsageDetail_20' ) end [2025-02-11 17:43:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:43:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:43:27] Production.INFO: ==5937== Releasing lock... [2025-02-11 17:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:43:27] Production.INFO: 63.75 MB #Memory Used# [2025-02-11 17:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:44:06 [end_date_ymd] => 2025-02-11 17:44:06 [RateCDR] => 1 ) [2025-02-11 17:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:44:06' and `end` < '2025-02-11 17:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:44:24] Production.INFO: count ==4740 [2025-02-11 17:44:26] Production.ERROR: pbx CDR StartTime 2025-02-11 14:44:06 - End Time 2025-02-11 17:44:06 [2025-02-11 17:44:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453339', 'tblTempUsageDetail_20' ) start [2025-02-11 17:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453339', 'tblTempUsageDetail_20' ) end [2025-02-11 17:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453339', 'tblTempVendorCDR_20' ) start [2025-02-11 17:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453339', 'tblTempVendorCDR_20' ) end [2025-02-11 17:44:26] Production.INFO: ProcessCDR(1,14453339,1,1,2) [2025-02-11 17:44:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:44:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:44:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453339', 'tblTempUsageDetail_20' ) start [2025-02-11 17:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453339', 'tblTempUsageDetail_20' ) end [2025-02-11 17:44:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:44:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:44:29] Production.INFO: ==6006== Releasing lock... [2025-02-11 17:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:44:29] Production.INFO: 63.5 MB #Memory Used# [2025-02-11 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:45:05 [end_date_ymd] => 2025-02-11 17:45:05 [RateCDR] => 1 ) [2025-02-11 17:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:45:05' and `end` < '2025-02-11 17:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:45:24] Production.INFO: count ==4702 [2025-02-11 17:45:26] Production.ERROR: pbx CDR StartTime 2025-02-11 14:45:05 - End Time 2025-02-11 17:45:05 [2025-02-11 17:45:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453344', 'tblTempUsageDetail_20' ) start [2025-02-11 17:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453344', 'tblTempUsageDetail_20' ) end [2025-02-11 17:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453344', 'tblTempVendorCDR_20' ) start [2025-02-11 17:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453344', 'tblTempVendorCDR_20' ) end [2025-02-11 17:45:26] Production.INFO: ProcessCDR(1,14453344,1,1,2) [2025-02-11 17:45:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:45:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:45:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:45:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:45:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453344', 'tblTempUsageDetail_20' ) start [2025-02-11 17:45:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453344', 'tblTempUsageDetail_20' ) end [2025-02-11 17:45:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:45:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:45:31] Production.INFO: ==6079== Releasing lock... [2025-02-11 17:45:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:45:31] Production.INFO: 63.25 MB #Memory Used# [2025-02-11 17:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:46:06 [end_date_ymd] => 2025-02-11 17:46:06 [RateCDR] => 1 ) [2025-02-11 17:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:46:06' and `end` < '2025-02-11 17:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:46:19] Production.INFO: count ==4665 [2025-02-11 17:46:21] Production.ERROR: pbx CDR StartTime 2025-02-11 14:46:06 - End Time 2025-02-11 17:46:06 [2025-02-11 17:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453349', 'tblTempUsageDetail_20' ) start [2025-02-11 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453349', 'tblTempUsageDetail_20' ) end [2025-02-11 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453349', 'tblTempVendorCDR_20' ) start [2025-02-11 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453349', 'tblTempVendorCDR_20' ) end [2025-02-11 17:46:22] Production.INFO: ProcessCDR(1,14453349,1,1,2) [2025-02-11 17:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453349', 'tblTempUsageDetail_20' ) start [2025-02-11 17:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453349', 'tblTempUsageDetail_20' ) end [2025-02-11 17:46:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:46:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:46:27] Production.INFO: ==6152== Releasing lock... [2025-02-11 17:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:46:27] Production.INFO: 63 MB #Memory Used# [2025-02-11 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:47:05 [end_date_ymd] => 2025-02-11 17:47:05 [RateCDR] => 1 ) [2025-02-11 17:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:47:05' and `end` < '2025-02-11 17:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:47:19] Production.INFO: count ==4632 [2025-02-11 17:47:21] Production.ERROR: pbx CDR StartTime 2025-02-11 14:47:05 - End Time 2025-02-11 17:47:05 [2025-02-11 17:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453354', 'tblTempUsageDetail_20' ) start [2025-02-11 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453354', 'tblTempUsageDetail_20' ) end [2025-02-11 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453354', 'tblTempVendorCDR_20' ) start [2025-02-11 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453354', 'tblTempVendorCDR_20' ) end [2025-02-11 17:47:21] Production.INFO: ProcessCDR(1,14453354,1,1,2) [2025-02-11 17:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453354', 'tblTempUsageDetail_20' ) start [2025-02-11 17:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453354', 'tblTempUsageDetail_20' ) end [2025-02-11 17:47:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:47:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:47:26] Production.INFO: ==6223== Releasing lock... [2025-02-11 17:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:47:26] Production.INFO: 62.75 MB #Memory Used# [2025-02-11 17:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:48:06 [end_date_ymd] => 2025-02-11 17:48:06 [RateCDR] => 1 ) [2025-02-11 17:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:48:06' and `end` < '2025-02-11 17:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:48:19] Production.INFO: count ==4597 [2025-02-11 17:48:21] Production.ERROR: pbx CDR StartTime 2025-02-11 14:48:06 - End Time 2025-02-11 17:48:06 [2025-02-11 17:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453359', 'tblTempUsageDetail_20' ) start [2025-02-11 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453359', 'tblTempUsageDetail_20' ) end [2025-02-11 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453359', 'tblTempVendorCDR_20' ) start [2025-02-11 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453359', 'tblTempVendorCDR_20' ) end [2025-02-11 17:48:21] Production.INFO: ProcessCDR(1,14453359,1,1,2) [2025-02-11 17:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453359', 'tblTempUsageDetail_20' ) start [2025-02-11 17:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453359', 'tblTempUsageDetail_20' ) end [2025-02-11 17:48:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:48:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:48:27] Production.INFO: ==6334== Releasing lock... [2025-02-11 17:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:48:27] Production.INFO: 62.5 MB #Memory Used# [2025-02-11 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:49:05 [end_date_ymd] => 2025-02-11 17:49:05 [RateCDR] => 1 ) [2025-02-11 17:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:49:05' and `end` < '2025-02-11 17:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:49:19] Production.INFO: count ==4561 [2025-02-11 17:49:21] Production.ERROR: pbx CDR StartTime 2025-02-11 14:49:05 - End Time 2025-02-11 17:49:05 [2025-02-11 17:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453364', 'tblTempUsageDetail_20' ) start [2025-02-11 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453364', 'tblTempUsageDetail_20' ) end [2025-02-11 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453364', 'tblTempVendorCDR_20' ) start [2025-02-11 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453364', 'tblTempVendorCDR_20' ) end [2025-02-11 17:49:21] Production.INFO: ProcessCDR(1,14453364,1,1,2) [2025-02-11 17:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453364', 'tblTempUsageDetail_20' ) start [2025-02-11 17:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453364', 'tblTempUsageDetail_20' ) end [2025-02-11 17:49:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:49:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:49:26] Production.INFO: ==6408== Releasing lock... [2025-02-11 17:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:49:26] Production.INFO: 62.25 MB #Memory Used# [2025-02-11 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:50:06 [end_date_ymd] => 2025-02-11 17:50:06 [RateCDR] => 1 ) [2025-02-11 17:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:50:06' and `end` < '2025-02-11 17:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:50:21] Production.INFO: count ==4524 [2025-02-11 17:50:23] Production.ERROR: pbx CDR StartTime 2025-02-11 14:50:06 - End Time 2025-02-11 17:50:06 [2025-02-11 17:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453370', 'tblTempUsageDetail_20' ) start [2025-02-11 17:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453370', 'tblTempUsageDetail_20' ) end [2025-02-11 17:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453370', 'tblTempVendorCDR_20' ) start [2025-02-11 17:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453370', 'tblTempVendorCDR_20' ) end [2025-02-11 17:50:23] Production.INFO: ProcessCDR(1,14453370,1,1,2) [2025-02-11 17:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453370', 'tblTempUsageDetail_20' ) start [2025-02-11 17:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453370', 'tblTempUsageDetail_20' ) end [2025-02-11 17:50:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:50:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:50:28] Production.INFO: ==6481== Releasing lock... [2025-02-11 17:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:50:28] Production.INFO: 61.75 MB #Memory Used# [2025-02-11 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:51:05 [end_date_ymd] => 2025-02-11 17:51:05 [RateCDR] => 1 ) [2025-02-11 17:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:51:05' and `end` < '2025-02-11 17:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:51:19] Production.INFO: count ==4498 [2025-02-11 17:51:20] Production.ERROR: pbx CDR StartTime 2025-02-11 14:51:05 - End Time 2025-02-11 17:51:05 [2025-02-11 17:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453375', 'tblTempUsageDetail_20' ) start [2025-02-11 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453375', 'tblTempUsageDetail_20' ) end [2025-02-11 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453375', 'tblTempVendorCDR_20' ) start [2025-02-11 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453375', 'tblTempVendorCDR_20' ) end [2025-02-11 17:51:21] Production.INFO: ProcessCDR(1,14453375,1,1,2) [2025-02-11 17:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453375', 'tblTempUsageDetail_20' ) start [2025-02-11 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453375', 'tblTempUsageDetail_20' ) end [2025-02-11 17:51:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:51:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:51:25] Production.INFO: ==6554== Releasing lock... [2025-02-11 17:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:51:25] Production.INFO: 61.75 MB #Memory Used# [2025-02-11 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:52:05 [end_date_ymd] => 2025-02-11 17:52:05 [RateCDR] => 1 ) [2025-02-11 17:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:52:05' and `end` < '2025-02-11 17:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:52:20] Production.INFO: count ==4476 [2025-02-11 17:52:22] Production.ERROR: pbx CDR StartTime 2025-02-11 14:52:05 - End Time 2025-02-11 17:52:05 [2025-02-11 17:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453380', 'tblTempUsageDetail_20' ) start [2025-02-11 17:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453380', 'tblTempUsageDetail_20' ) end [2025-02-11 17:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453380', 'tblTempVendorCDR_20' ) start [2025-02-11 17:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453380', 'tblTempVendorCDR_20' ) end [2025-02-11 17:52:22] Production.INFO: ProcessCDR(1,14453380,1,1,2) [2025-02-11 17:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453380', 'tblTempUsageDetail_20' ) start [2025-02-11 17:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453380', 'tblTempUsageDetail_20' ) end [2025-02-11 17:52:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:52:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:52:28] Production.INFO: ==6629== Releasing lock... [2025-02-11 17:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:52:28] Production.INFO: 61.5 MB #Memory Used# [2025-02-11 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:53:05 [end_date_ymd] => 2025-02-11 17:53:05 [RateCDR] => 1 ) [2025-02-11 17:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:53:05' and `end` < '2025-02-11 17:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:53:22] Production.INFO: count ==4476 [2025-02-11 17:53:24] Production.ERROR: pbx CDR StartTime 2025-02-11 14:53:05 - End Time 2025-02-11 17:53:05 [2025-02-11 17:53:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453385', 'tblTempUsageDetail_20' ) start [2025-02-11 17:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453385', 'tblTempUsageDetail_20' ) end [2025-02-11 17:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453385', 'tblTempVendorCDR_20' ) start [2025-02-11 17:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453385', 'tblTempVendorCDR_20' ) end [2025-02-11 17:53:24] Production.INFO: ProcessCDR(1,14453385,1,1,2) [2025-02-11 17:53:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:53:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:53:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453385', 'tblTempUsageDetail_20' ) start [2025-02-11 17:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453385', 'tblTempUsageDetail_20' ) end [2025-02-11 17:53:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:53:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:53:29] Production.INFO: ==6705== Releasing lock... [2025-02-11 17:53:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:53:29] Production.INFO: 61.5 MB #Memory Used# [2025-02-11 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:54:05 [end_date_ymd] => 2025-02-11 17:54:05 [RateCDR] => 1 ) [2025-02-11 17:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:54:05' and `end` < '2025-02-11 17:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:54:19] Production.INFO: count ==4449 [2025-02-11 17:54:20] Production.ERROR: pbx CDR StartTime 2025-02-11 14:54:05 - End Time 2025-02-11 17:54:05 [2025-02-11 17:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453390', 'tblTempUsageDetail_20' ) start [2025-02-11 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453390', 'tblTempUsageDetail_20' ) end [2025-02-11 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453390', 'tblTempVendorCDR_20' ) start [2025-02-11 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453390', 'tblTempVendorCDR_20' ) end [2025-02-11 17:54:21] Production.INFO: ProcessCDR(1,14453390,1,1,2) [2025-02-11 17:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453390', 'tblTempUsageDetail_20' ) start [2025-02-11 17:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453390', 'tblTempUsageDetail_20' ) end [2025-02-11 17:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:54:24] Production.INFO: ==6779== Releasing lock... [2025-02-11 17:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:54:24] Production.INFO: 61.25 MB #Memory Used# [2025-02-11 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:55:05 [end_date_ymd] => 2025-02-11 17:55:05 [RateCDR] => 1 ) [2025-02-11 17:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:55:05' and `end` < '2025-02-11 17:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:55:18] Production.INFO: count ==4423 [2025-02-11 17:55:20] Production.ERROR: pbx CDR StartTime 2025-02-11 14:55:05 - End Time 2025-02-11 17:55:05 [2025-02-11 17:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453395', 'tblTempUsageDetail_20' ) start [2025-02-11 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453395', 'tblTempUsageDetail_20' ) end [2025-02-11 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453395', 'tblTempVendorCDR_20' ) start [2025-02-11 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453395', 'tblTempVendorCDR_20' ) end [2025-02-11 17:55:20] Production.INFO: ProcessCDR(1,14453395,1,1,2) [2025-02-11 17:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453395', 'tblTempUsageDetail_20' ) start [2025-02-11 17:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453395', 'tblTempUsageDetail_20' ) end [2025-02-11 17:55:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:55:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:55:24] Production.INFO: ==6857== Releasing lock... [2025-02-11 17:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:55:24] Production.INFO: 61 MB #Memory Used# [2025-02-11 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:56:05 [end_date_ymd] => 2025-02-11 17:56:05 [RateCDR] => 1 ) [2025-02-11 17:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:56:05' and `end` < '2025-02-11 17:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:56:21] Production.INFO: count ==4392 [2025-02-11 17:56:22] Production.ERROR: pbx CDR StartTime 2025-02-11 14:56:05 - End Time 2025-02-11 17:56:05 [2025-02-11 17:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453400', 'tblTempUsageDetail_20' ) start [2025-02-11 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453400', 'tblTempUsageDetail_20' ) end [2025-02-11 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453400', 'tblTempVendorCDR_20' ) start [2025-02-11 17:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453400', 'tblTempVendorCDR_20' ) end [2025-02-11 17:56:22] Production.INFO: ProcessCDR(1,14453400,1,1,2) [2025-02-11 17:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453400', 'tblTempUsageDetail_20' ) start [2025-02-11 17:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453400', 'tblTempUsageDetail_20' ) end [2025-02-11 17:56:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:56:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:56:26] Production.INFO: ==6933== Releasing lock... [2025-02-11 17:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:56:26] Production.INFO: 60.75 MB #Memory Used# [2025-02-11 17:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:57:04 [end_date_ymd] => 2025-02-11 17:57:04 [RateCDR] => 1 ) [2025-02-11 17:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:57:04' and `end` < '2025-02-11 17:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:57:19] Production.INFO: count ==4352 [2025-02-11 17:57:20] Production.ERROR: pbx CDR StartTime 2025-02-11 14:57:04 - End Time 2025-02-11 17:57:04 [2025-02-11 17:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453405', 'tblTempUsageDetail_20' ) start [2025-02-11 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453405', 'tblTempUsageDetail_20' ) end [2025-02-11 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453405', 'tblTempVendorCDR_20' ) start [2025-02-11 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453405', 'tblTempVendorCDR_20' ) end [2025-02-11 17:57:21] Production.INFO: ProcessCDR(1,14453405,1,1,2) [2025-02-11 17:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453405', 'tblTempUsageDetail_20' ) start [2025-02-11 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453405', 'tblTempUsageDetail_20' ) end [2025-02-11 17:57:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:57:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:57:25] Production.INFO: ==7006== Releasing lock... [2025-02-11 17:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:57:25] Production.INFO: 60.5 MB #Memory Used# [2025-02-11 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:58:05 [end_date_ymd] => 2025-02-11 17:58:05 [RateCDR] => 1 ) [2025-02-11 17:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:58:05' and `end` < '2025-02-11 17:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:58:19] Production.INFO: count ==4288 [2025-02-11 17:58:21] Production.ERROR: pbx CDR StartTime 2025-02-11 14:58:05 - End Time 2025-02-11 17:58:05 [2025-02-11 17:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453410', 'tblTempUsageDetail_20' ) start [2025-02-11 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453410', 'tblTempUsageDetail_20' ) end [2025-02-11 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453410', 'tblTempVendorCDR_20' ) start [2025-02-11 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453410', 'tblTempVendorCDR_20' ) end [2025-02-11 17:58:21] Production.INFO: ProcessCDR(1,14453410,1,1,2) [2025-02-11 17:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453410', 'tblTempUsageDetail_20' ) start [2025-02-11 17:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453410', 'tblTempUsageDetail_20' ) end [2025-02-11 17:58:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:58:24] Production.INFO: ==7079== Releasing lock... [2025-02-11 17:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:58:24] Production.INFO: 60.25 MB #Memory Used# [2025-02-11 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 14:59:05 [end_date_ymd] => 2025-02-11 17:59:05 [RateCDR] => 1 ) [2025-02-11 17:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 14:59:05' and `end` < '2025-02-11 17:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 17:59:19] Production.INFO: count ==4238 [2025-02-11 17:59:21] Production.ERROR: pbx CDR StartTime 2025-02-11 14:59:05 - End Time 2025-02-11 17:59:05 [2025-02-11 17:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453415', 'tblTempUsageDetail_20' ) start [2025-02-11 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453415', 'tblTempUsageDetail_20' ) end [2025-02-11 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453415', 'tblTempVendorCDR_20' ) start [2025-02-11 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453415', 'tblTempVendorCDR_20' ) end [2025-02-11 17:59:21] Production.INFO: ProcessCDR(1,14453415,1,1,2) [2025-02-11 17:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 17:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453415', 'tblTempUsageDetail_20' ) start [2025-02-11 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453415', 'tblTempUsageDetail_20' ) end [2025-02-11 17:59:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 17:59:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 17:59:25] Production.INFO: ==7156== Releasing lock... [2025-02-11 17:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 17:59:25] Production.INFO: 59.75 MB #Memory Used# [2025-02-11 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:00:06 [end_date_ymd] => 2025-02-11 18:00:06 [RateCDR] => 1 ) [2025-02-11 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:00:06' and `end` < '2025-02-11 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:00:21] Production.INFO: count ==4211 [2025-02-11 18:00:22] Production.ERROR: pbx CDR StartTime 2025-02-11 15:00:06 - End Time 2025-02-11 18:00:06 [2025-02-11 18:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453421', 'tblTempUsageDetail_20' ) start [2025-02-11 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453421', 'tblTempUsageDetail_20' ) end [2025-02-11 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453421', 'tblTempVendorCDR_20' ) start [2025-02-11 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453421', 'tblTempVendorCDR_20' ) end [2025-02-11 18:00:22] Production.INFO: ProcessCDR(1,14453421,1,1,2) [2025-02-11 18:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453421', 'tblTempUsageDetail_20' ) start [2025-02-11 18:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453421', 'tblTempUsageDetail_20' ) end [2025-02-11 18:00:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:00:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:00:28] Production.INFO: ==7232== Releasing lock... [2025-02-11 18:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:00:28] Production.INFO: 59.5 MB #Memory Used# [2025-02-11 18:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:01:06 [end_date_ymd] => 2025-02-11 18:01:06 [RateCDR] => 1 ) [2025-02-11 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-02-11 15:01:06' and `end` < '2025-02-11 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-02-11 18:01:29] Production.INFO: count ==4200 [2025-02-11 18:01:31] Production.ERROR: pbx CDR StartTime 2025-02-11 15:01:06 - End Time 2025-02-11 18:01:06 [2025-02-11 18:01:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453426', 'tblTempUsageDetail_20' ) start [2025-02-11 18:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453426', 'tblTempUsageDetail_20' ) end [2025-02-11 18:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453426', 'tblTempVendorCDR_20' ) start [2025-02-11 18:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453426', 'tblTempVendorCDR_20' ) end [2025-02-11 18:01:31] Production.INFO: ProcessCDR(1,14453426,1,1,2) [2025-02-11 18:01:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:01:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:01:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:01:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:01:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453426', 'tblTempUsageDetail_20' ) start [2025-02-11 18:01:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453426', 'tblTempUsageDetail_20' ) end [2025-02-11 18:01:36] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:01:36] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:01:36] Production.INFO: ==7320== Releasing lock... [2025-02-11 18:01:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:01:36] Production.INFO: 59.5 MB #Memory Used# [2025-02-11 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:02:05 [end_date_ymd] => 2025-02-11 18:02:05 [RateCDR] => 1 ) [2025-02-11 18:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:02:05' and `end` < '2025-02-11 18:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:02:24] Production.INFO: count ==4204 [2025-02-11 18:02:26] Production.ERROR: pbx CDR StartTime 2025-02-11 15:02:05 - End Time 2025-02-11 18:02:05 [2025-02-11 18:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453431', 'tblTempUsageDetail_20' ) start [2025-02-11 18:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453431', 'tblTempUsageDetail_20' ) end [2025-02-11 18:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453431', 'tblTempVendorCDR_20' ) start [2025-02-11 18:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453431', 'tblTempVendorCDR_20' ) end [2025-02-11 18:02:26] Production.INFO: ProcessCDR(1,14453431,1,1,2) [2025-02-11 18:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:02:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:02:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:02:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453431', 'tblTempUsageDetail_20' ) start [2025-02-11 18:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453431', 'tblTempUsageDetail_20' ) end [2025-02-11 18:02:31] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:02:31] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:02:31] Production.INFO: ==7401== Releasing lock... [2025-02-11 18:02:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:02:31] Production.INFO: 59.5 MB #Memory Used# [2025-02-11 18:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:03:06 [end_date_ymd] => 2025-02-11 18:03:06 [RateCDR] => 1 ) [2025-02-11 18:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:03:06' and `end` < '2025-02-11 18:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:03:19] Production.INFO: count ==4181 [2025-02-11 18:03:21] Production.ERROR: pbx CDR StartTime 2025-02-11 15:03:06 - End Time 2025-02-11 18:03:06 [2025-02-11 18:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453436', 'tblTempUsageDetail_20' ) start [2025-02-11 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453436', 'tblTempUsageDetail_20' ) end [2025-02-11 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453436', 'tblTempVendorCDR_20' ) start [2025-02-11 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453436', 'tblTempVendorCDR_20' ) end [2025-02-11 18:03:21] Production.INFO: ProcessCDR(1,14453436,1,1,2) [2025-02-11 18:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453436', 'tblTempUsageDetail_20' ) start [2025-02-11 18:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453436', 'tblTempUsageDetail_20' ) end [2025-02-11 18:03:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:03:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:03:27] Production.INFO: ==7474== Releasing lock... [2025-02-11 18:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:03:27] Production.INFO: 59.25 MB #Memory Used# [2025-02-11 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:04:05 [end_date_ymd] => 2025-02-11 18:04:05 [RateCDR] => 1 ) [2025-02-11 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-02-11 15:04:05' and `end` < '2025-02-11 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-02-11 18:04:21] Production.INFO: count ==4176 [2025-02-11 18:04:22] Production.ERROR: pbx CDR StartTime 2025-02-11 15:04:05 - End Time 2025-02-11 18:04:05 [2025-02-11 18:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453441', 'tblTempUsageDetail_20' ) start [2025-02-11 18:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453441', 'tblTempUsageDetail_20' ) end [2025-02-11 18:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453441', 'tblTempVendorCDR_20' ) start [2025-02-11 18:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453441', 'tblTempVendorCDR_20' ) end [2025-02-11 18:04:23] Production.INFO: ProcessCDR(1,14453441,1,1,2) [2025-02-11 18:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453441', 'tblTempUsageDetail_20' ) start [2025-02-11 18:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453441', 'tblTempUsageDetail_20' ) end [2025-02-11 18:04:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:04:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:04:26] Production.INFO: ==7588== Releasing lock... [2025-02-11 18:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:04:26] Production.INFO: 59.25 MB #Memory Used# [2025-02-11 18:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:05:06 [end_date_ymd] => 2025-02-11 18:05:06 [RateCDR] => 1 ) [2025-02-11 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-02-11 15:05:06' and `end` < '2025-02-11 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-02-11 18:05:19] Production.INFO: count ==4167 [2025-02-11 18:05:21] Production.ERROR: pbx CDR StartTime 2025-02-11 15:05:06 - End Time 2025-02-11 18:05:06 [2025-02-11 18:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453446', 'tblTempUsageDetail_20' ) start [2025-02-11 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453446', 'tblTempUsageDetail_20' ) end [2025-02-11 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453446', 'tblTempVendorCDR_20' ) start [2025-02-11 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453446', 'tblTempVendorCDR_20' ) end [2025-02-11 18:05:21] Production.INFO: ProcessCDR(1,14453446,1,1,2) [2025-02-11 18:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453446', 'tblTempUsageDetail_20' ) start [2025-02-11 18:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453446', 'tblTempUsageDetail_20' ) end [2025-02-11 18:05:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:05:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:05:26] Production.INFO: ==7660== Releasing lock... [2025-02-11 18:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:05:26] Production.INFO: 59.25 MB #Memory Used# [2025-02-11 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:06:05 [end_date_ymd] => 2025-02-11 18:06:05 [RateCDR] => 1 ) [2025-02-11 18:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:06:05' and `end` < '2025-02-11 18:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:06:19] Production.INFO: count ==4159 [2025-02-11 18:06:21] Production.ERROR: pbx CDR StartTime 2025-02-11 15:06:05 - End Time 2025-02-11 18:06:05 [2025-02-11 18:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453451', 'tblTempUsageDetail_20' ) start [2025-02-11 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453451', 'tblTempUsageDetail_20' ) end [2025-02-11 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453451', 'tblTempVendorCDR_20' ) start [2025-02-11 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453451', 'tblTempVendorCDR_20' ) end [2025-02-11 18:06:21] Production.INFO: ProcessCDR(1,14453451,1,1,2) [2025-02-11 18:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453451', 'tblTempUsageDetail_20' ) start [2025-02-11 18:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453451', 'tblTempUsageDetail_20' ) end [2025-02-11 18:06:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:06:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:06:26] Production.INFO: ==7738== Releasing lock... [2025-02-11 18:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:06:26] Production.INFO: 59 MB #Memory Used# [2025-02-11 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:07:05 [end_date_ymd] => 2025-02-11 18:07:05 [RateCDR] => 1 ) [2025-02-11 18:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:07:05' and `end` < '2025-02-11 18:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:07:19] Production.INFO: count ==4157 [2025-02-11 18:07:21] Production.ERROR: pbx CDR StartTime 2025-02-11 15:07:05 - End Time 2025-02-11 18:07:05 [2025-02-11 18:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453456', 'tblTempUsageDetail_20' ) start [2025-02-11 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453456', 'tblTempUsageDetail_20' ) end [2025-02-11 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453456', 'tblTempVendorCDR_20' ) start [2025-02-11 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453456', 'tblTempVendorCDR_20' ) end [2025-02-11 18:07:21] Production.INFO: ProcessCDR(1,14453456,1,1,2) [2025-02-11 18:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453456', 'tblTempUsageDetail_20' ) start [2025-02-11 18:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453456', 'tblTempUsageDetail_20' ) end [2025-02-11 18:07:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:07:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:07:27] Production.INFO: ==7811== Releasing lock... [2025-02-11 18:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:07:27] Production.INFO: 59 MB #Memory Used# [2025-02-11 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:08:05 [end_date_ymd] => 2025-02-11 18:08:05 [RateCDR] => 1 ) [2025-02-11 18:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:08:05' and `end` < '2025-02-11 18:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:08:18] Production.INFO: count ==4151 [2025-02-11 18:08:20] Production.ERROR: pbx CDR StartTime 2025-02-11 15:08:05 - End Time 2025-02-11 18:08:05 [2025-02-11 18:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453461', 'tblTempUsageDetail_20' ) start [2025-02-11 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453461', 'tblTempUsageDetail_20' ) end [2025-02-11 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453461', 'tblTempVendorCDR_20' ) start [2025-02-11 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453461', 'tblTempVendorCDR_20' ) end [2025-02-11 18:08:20] Production.INFO: ProcessCDR(1,14453461,1,1,2) [2025-02-11 18:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453461', 'tblTempUsageDetail_20' ) start [2025-02-11 18:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453461', 'tblTempUsageDetail_20' ) end [2025-02-11 18:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:08:24] Production.INFO: ==7888== Releasing lock... [2025-02-11 18:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:08:24] Production.INFO: 59 MB #Memory Used# [2025-02-11 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:09:05 [end_date_ymd] => 2025-02-11 18:09:05 [RateCDR] => 1 ) [2025-02-11 18:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:09:05' and `end` < '2025-02-11 18:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:09:20] Production.INFO: count ==4147 [2025-02-11 18:09:22] Production.ERROR: pbx CDR StartTime 2025-02-11 15:09:05 - End Time 2025-02-11 18:09:05 [2025-02-11 18:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453466', 'tblTempUsageDetail_20' ) start [2025-02-11 18:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453466', 'tblTempUsageDetail_20' ) end [2025-02-11 18:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453466', 'tblTempVendorCDR_20' ) start [2025-02-11 18:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453466', 'tblTempVendorCDR_20' ) end [2025-02-11 18:09:22] Production.INFO: ProcessCDR(1,14453466,1,1,2) [2025-02-11 18:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453466', 'tblTempUsageDetail_20' ) start [2025-02-11 18:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453466', 'tblTempUsageDetail_20' ) end [2025-02-11 18:09:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:09:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:09:28] Production.INFO: ==7967== Releasing lock... [2025-02-11 18:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:09:28] Production.INFO: 59 MB #Memory Used# [2025-02-11 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:10:06 [end_date_ymd] => 2025-02-11 18:10:06 [RateCDR] => 1 ) [2025-02-11 18:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:10:06' and `end` < '2025-02-11 18:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:10:21] Production.INFO: count ==4141 [2025-02-11 18:10:23] Production.ERROR: pbx CDR StartTime 2025-02-11 15:10:06 - End Time 2025-02-11 18:10:06 [2025-02-11 18:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453472', 'tblTempUsageDetail_20' ) start [2025-02-11 18:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453472', 'tblTempUsageDetail_20' ) end [2025-02-11 18:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453472', 'tblTempVendorCDR_20' ) start [2025-02-11 18:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453472', 'tblTempVendorCDR_20' ) end [2025-02-11 18:10:23] Production.INFO: ProcessCDR(1,14453472,1,1,2) [2025-02-11 18:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453472', 'tblTempUsageDetail_20' ) start [2025-02-11 18:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453472', 'tblTempUsageDetail_20' ) end [2025-02-11 18:10:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:10:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:10:29] Production.INFO: ==8045== Releasing lock... [2025-02-11 18:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:10:29] Production.INFO: 59 MB #Memory Used# [2025-02-11 18:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:11:06 [end_date_ymd] => 2025-02-11 18:11:06 [RateCDR] => 1 ) [2025-02-11 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-02-11 15:11:06' and `end` < '2025-02-11 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-02-11 18:11:22] Production.INFO: count ==4079 [2025-02-11 18:11:24] Production.ERROR: pbx CDR StartTime 2025-02-11 15:11:06 - End Time 2025-02-11 18:11:06 [2025-02-11 18:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453477', 'tblTempUsageDetail_20' ) start [2025-02-11 18:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453477', 'tblTempUsageDetail_20' ) end [2025-02-11 18:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453477', 'tblTempVendorCDR_20' ) start [2025-02-11 18:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453477', 'tblTempVendorCDR_20' ) end [2025-02-11 18:11:24] Production.INFO: ProcessCDR(1,14453477,1,1,2) [2025-02-11 18:11:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:11:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453477', 'tblTempUsageDetail_20' ) start [2025-02-11 18:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453477', 'tblTempUsageDetail_20' ) end [2025-02-11 18:11:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:11:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:11:29] Production.INFO: ==8125== Releasing lock... [2025-02-11 18:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:11:29] Production.INFO: 58.5 MB #Memory Used# [2025-02-11 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:12:05 [end_date_ymd] => 2025-02-11 18:12:05 [RateCDR] => 1 ) [2025-02-11 18:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:12:05' and `end` < '2025-02-11 18:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:12:19] Production.INFO: count ==4069 [2025-02-11 18:12:20] Production.ERROR: pbx CDR StartTime 2025-02-11 15:12:05 - End Time 2025-02-11 18:12:05 [2025-02-11 18:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453482', 'tblTempUsageDetail_20' ) start [2025-02-11 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453482', 'tblTempUsageDetail_20' ) end [2025-02-11 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453482', 'tblTempVendorCDR_20' ) start [2025-02-11 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453482', 'tblTempVendorCDR_20' ) end [2025-02-11 18:12:21] Production.INFO: ProcessCDR(1,14453482,1,1,2) [2025-02-11 18:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453482', 'tblTempUsageDetail_20' ) start [2025-02-11 18:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453482', 'tblTempUsageDetail_20' ) end [2025-02-11 18:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:12:24] Production.INFO: ==8204== Releasing lock... [2025-02-11 18:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:12:24] Production.INFO: 58.5 MB #Memory Used# [2025-02-11 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:13:05 [end_date_ymd] => 2025-02-11 18:13:05 [RateCDR] => 1 ) [2025-02-11 18:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:13:05' and `end` < '2025-02-11 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:13:18] Production.INFO: count ==4056 [2025-02-11 18:13:20] Production.ERROR: pbx CDR StartTime 2025-02-11 15:13:05 - End Time 2025-02-11 18:13:05 [2025-02-11 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453487', 'tblTempUsageDetail_20' ) start [2025-02-11 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453487', 'tblTempUsageDetail_20' ) end [2025-02-11 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453487', 'tblTempVendorCDR_20' ) start [2025-02-11 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453487', 'tblTempVendorCDR_20' ) end [2025-02-11 18:13:20] Production.INFO: ProcessCDR(1,14453487,1,1,2) [2025-02-11 18:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453487', 'tblTempUsageDetail_20' ) start [2025-02-11 18:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453487', 'tblTempUsageDetail_20' ) end [2025-02-11 18:13:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:13:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:13:25] Production.INFO: ==8277== Releasing lock... [2025-02-11 18:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:13:25] Production.INFO: 58.5 MB #Memory Used# [2025-02-11 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:14:05 [end_date_ymd] => 2025-02-11 18:14:05 [RateCDR] => 1 ) [2025-02-11 18:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:14:05' and `end` < '2025-02-11 18:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:14:20] Production.INFO: count ==4055 [2025-02-11 18:14:21] Production.ERROR: pbx CDR StartTime 2025-02-11 15:14:05 - End Time 2025-02-11 18:14:05 [2025-02-11 18:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453492', 'tblTempUsageDetail_20' ) start [2025-02-11 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453492', 'tblTempUsageDetail_20' ) end [2025-02-11 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453492', 'tblTempVendorCDR_20' ) start [2025-02-11 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453492', 'tblTempVendorCDR_20' ) end [2025-02-11 18:14:21] Production.INFO: ProcessCDR(1,14453492,1,1,2) [2025-02-11 18:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453492', 'tblTempUsageDetail_20' ) start [2025-02-11 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453492', 'tblTempUsageDetail_20' ) end [2025-02-11 18:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:14:25] Production.INFO: ==8349== Releasing lock... [2025-02-11 18:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:14:25] Production.INFO: 58.25 MB #Memory Used# [2025-02-11 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:15:05 [end_date_ymd] => 2025-02-11 18:15:05 [RateCDR] => 1 ) [2025-02-11 18:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:15:05' and `end` < '2025-02-11 18:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:15:21] Production.INFO: count ==4041 [2025-02-11 18:15:23] Production.ERROR: pbx CDR StartTime 2025-02-11 15:15:05 - End Time 2025-02-11 18:15:05 [2025-02-11 18:15:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453497', 'tblTempUsageDetail_20' ) start [2025-02-11 18:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453497', 'tblTempUsageDetail_20' ) end [2025-02-11 18:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453497', 'tblTempVendorCDR_20' ) start [2025-02-11 18:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453497', 'tblTempVendorCDR_20' ) end [2025-02-11 18:15:23] Production.INFO: ProcessCDR(1,14453497,1,1,2) [2025-02-11 18:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453497', 'tblTempUsageDetail_20' ) start [2025-02-11 18:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453497', 'tblTempUsageDetail_20' ) end [2025-02-11 18:15:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:15:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:15:28] Production.INFO: ==8429== Releasing lock... [2025-02-11 18:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:15:28] Production.INFO: 58.25 MB #Memory Used# [2025-02-11 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:16:05 [end_date_ymd] => 2025-02-11 18:16:05 [RateCDR] => 1 ) [2025-02-11 18:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:16:05' and `end` < '2025-02-11 18:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:16:19] Production.INFO: count ==4033 [2025-02-11 18:16:21] Production.ERROR: pbx CDR StartTime 2025-02-11 15:16:05 - End Time 2025-02-11 18:16:05 [2025-02-11 18:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453502', 'tblTempUsageDetail_20' ) start [2025-02-11 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453502', 'tblTempUsageDetail_20' ) end [2025-02-11 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453502', 'tblTempVendorCDR_20' ) start [2025-02-11 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453502', 'tblTempVendorCDR_20' ) end [2025-02-11 18:16:21] Production.INFO: ProcessCDR(1,14453502,1,1,2) [2025-02-11 18:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453502', 'tblTempUsageDetail_20' ) start [2025-02-11 18:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453502', 'tblTempUsageDetail_20' ) end [2025-02-11 18:16:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:16:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:16:26] Production.INFO: ==8504== Releasing lock... [2025-02-11 18:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:16:26] Production.INFO: 58 MB #Memory Used# [2025-02-11 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:17:05 [end_date_ymd] => 2025-02-11 18:17:05 [RateCDR] => 1 ) [2025-02-11 18:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:17:05' and `end` < '2025-02-11 18:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:17:20] Production.INFO: count ==4021 [2025-02-11 18:17:21] Production.ERROR: pbx CDR StartTime 2025-02-11 15:17:05 - End Time 2025-02-11 18:17:05 [2025-02-11 18:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453507', 'tblTempUsageDetail_20' ) start [2025-02-11 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453507', 'tblTempUsageDetail_20' ) end [2025-02-11 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453507', 'tblTempVendorCDR_20' ) start [2025-02-11 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453507', 'tblTempVendorCDR_20' ) end [2025-02-11 18:17:21] Production.INFO: ProcessCDR(1,14453507,1,1,2) [2025-02-11 18:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453507', 'tblTempUsageDetail_20' ) start [2025-02-11 18:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453507', 'tblTempUsageDetail_20' ) end [2025-02-11 18:17:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:17:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:17:25] Production.INFO: ==8578== Releasing lock... [2025-02-11 18:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:17:25] Production.INFO: 58 MB #Memory Used# [2025-02-11 18:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:18:04 [end_date_ymd] => 2025-02-11 18:18:04 [RateCDR] => 1 ) [2025-02-11 18:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:18:04' and `end` < '2025-02-11 18:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:18:19] Production.INFO: count ==4013 [2025-02-11 18:18:21] Production.ERROR: pbx CDR StartTime 2025-02-11 15:18:04 - End Time 2025-02-11 18:18:04 [2025-02-11 18:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453512', 'tblTempUsageDetail_20' ) start [2025-02-11 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453512', 'tblTempUsageDetail_20' ) end [2025-02-11 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453512', 'tblTempVendorCDR_20' ) start [2025-02-11 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453512', 'tblTempVendorCDR_20' ) end [2025-02-11 18:18:21] Production.INFO: ProcessCDR(1,14453512,1,1,2) [2025-02-11 18:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453512', 'tblTempUsageDetail_20' ) start [2025-02-11 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453512', 'tblTempUsageDetail_20' ) end [2025-02-11 18:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:18:24] Production.INFO: ==8654== Releasing lock... [2025-02-11 18:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:18:24] Production.INFO: 58.25 MB #Memory Used# [2025-02-11 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:19:05 [end_date_ymd] => 2025-02-11 18:19:05 [RateCDR] => 1 ) [2025-02-11 18:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:19:05' and `end` < '2025-02-11 18:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:19:19] Production.INFO: count ==4004 [2025-02-11 18:19:20] Production.ERROR: pbx CDR StartTime 2025-02-11 15:19:05 - End Time 2025-02-11 18:19:05 [2025-02-11 18:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453517', 'tblTempUsageDetail_20' ) start [2025-02-11 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453517', 'tblTempUsageDetail_20' ) end [2025-02-11 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453517', 'tblTempVendorCDR_20' ) start [2025-02-11 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453517', 'tblTempVendorCDR_20' ) end [2025-02-11 18:19:21] Production.INFO: ProcessCDR(1,14453517,1,1,2) [2025-02-11 18:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453517', 'tblTempUsageDetail_20' ) start [2025-02-11 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453517', 'tblTempUsageDetail_20' ) end [2025-02-11 18:19:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:19:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:19:25] Production.INFO: ==8769== Releasing lock... [2025-02-11 18:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:19:25] Production.INFO: 58 MB #Memory Used# [2025-02-11 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:20:06 [end_date_ymd] => 2025-02-11 18:20:06 [RateCDR] => 1 ) [2025-02-11 18:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:20:06' and `end` < '2025-02-11 18:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:20:20] Production.INFO: count ==3990 [2025-02-11 18:20:21] Production.ERROR: pbx CDR StartTime 2025-02-11 15:20:06 - End Time 2025-02-11 18:20:06 [2025-02-11 18:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453523', 'tblTempUsageDetail_20' ) start [2025-02-11 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453523', 'tblTempUsageDetail_20' ) end [2025-02-11 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453523', 'tblTempVendorCDR_20' ) start [2025-02-11 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453523', 'tblTempVendorCDR_20' ) end [2025-02-11 18:20:21] Production.INFO: ProcessCDR(1,14453523,1,1,2) [2025-02-11 18:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453523', 'tblTempUsageDetail_20' ) start [2025-02-11 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453523', 'tblTempUsageDetail_20' ) end [2025-02-11 18:20:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:20:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:20:26] Production.INFO: ==8843== Releasing lock... [2025-02-11 18:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:20:26] Production.INFO: 57.75 MB #Memory Used# [2025-02-11 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:21:05 [end_date_ymd] => 2025-02-11 18:21:05 [RateCDR] => 1 ) [2025-02-11 18:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:21:05' and `end` < '2025-02-11 18:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:21:21] Production.INFO: count ==3954 [2025-02-11 18:21:23] Production.ERROR: pbx CDR StartTime 2025-02-11 15:21:05 - End Time 2025-02-11 18:21:05 [2025-02-11 18:21:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453528', 'tblTempUsageDetail_20' ) start [2025-02-11 18:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453528', 'tblTempUsageDetail_20' ) end [2025-02-11 18:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453528', 'tblTempVendorCDR_20' ) start [2025-02-11 18:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453528', 'tblTempVendorCDR_20' ) end [2025-02-11 18:21:23] Production.INFO: ProcessCDR(1,14453528,1,1,2) [2025-02-11 18:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:21:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:21:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:21:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453528', 'tblTempUsageDetail_20' ) start [2025-02-11 18:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453528', 'tblTempUsageDetail_20' ) end [2025-02-11 18:21:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:21:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:21:28] Production.INFO: ==8924== Releasing lock... [2025-02-11 18:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:21:28] Production.INFO: 57.5 MB #Memory Used# [2025-02-11 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:22:05 [end_date_ymd] => 2025-02-11 18:22:05 [RateCDR] => 1 ) [2025-02-11 18:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:22:05' and `end` < '2025-02-11 18:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:22:20] Production.INFO: count ==3949 [2025-02-11 18:22:22] Production.ERROR: pbx CDR StartTime 2025-02-11 15:22:05 - End Time 2025-02-11 18:22:05 [2025-02-11 18:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453533', 'tblTempUsageDetail_20' ) start [2025-02-11 18:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453533', 'tblTempUsageDetail_20' ) end [2025-02-11 18:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453533', 'tblTempVendorCDR_20' ) start [2025-02-11 18:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453533', 'tblTempVendorCDR_20' ) end [2025-02-11 18:22:22] Production.INFO: ProcessCDR(1,14453533,1,1,2) [2025-02-11 18:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453533', 'tblTempUsageDetail_20' ) start [2025-02-11 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453533', 'tblTempUsageDetail_20' ) end [2025-02-11 18:22:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:22:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:22:25] Production.INFO: ==8999== Releasing lock... [2025-02-11 18:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:22:25] Production.INFO: 57.75 MB #Memory Used# [2025-02-11 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:23:05 [end_date_ymd] => 2025-02-11 18:23:05 [RateCDR] => 1 ) [2025-02-11 18:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:23:05' and `end` < '2025-02-11 18:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:23:19] Production.INFO: count ==3943 [2025-02-11 18:23:20] Production.ERROR: pbx CDR StartTime 2025-02-11 15:23:05 - End Time 2025-02-11 18:23:05 [2025-02-11 18:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453538', 'tblTempUsageDetail_20' ) start [2025-02-11 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453538', 'tblTempUsageDetail_20' ) end [2025-02-11 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453538', 'tblTempVendorCDR_20' ) start [2025-02-11 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453538', 'tblTempVendorCDR_20' ) end [2025-02-11 18:23:20] Production.INFO: ProcessCDR(1,14453538,1,1,2) [2025-02-11 18:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453538', 'tblTempUsageDetail_20' ) start [2025-02-11 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453538', 'tblTempUsageDetail_20' ) end [2025-02-11 18:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:23:24] Production.INFO: ==9114== Releasing lock... [2025-02-11 18:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:23:24] Production.INFO: 57.5 MB #Memory Used# [2025-02-11 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:24:05 [end_date_ymd] => 2025-02-11 18:24:05 [RateCDR] => 1 ) [2025-02-11 18:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:24:05' and `end` < '2025-02-11 18:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:24:20] Production.INFO: count ==3923 [2025-02-11 18:24:22] Production.ERROR: pbx CDR StartTime 2025-02-11 15:24:05 - End Time 2025-02-11 18:24:05 [2025-02-11 18:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453543', 'tblTempUsageDetail_20' ) start [2025-02-11 18:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453543', 'tblTempUsageDetail_20' ) end [2025-02-11 18:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453543', 'tblTempVendorCDR_20' ) start [2025-02-11 18:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453543', 'tblTempVendorCDR_20' ) end [2025-02-11 18:24:22] Production.INFO: ProcessCDR(1,14453543,1,1,2) [2025-02-11 18:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453543', 'tblTempUsageDetail_20' ) start [2025-02-11 18:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453543', 'tblTempUsageDetail_20' ) end [2025-02-11 18:24:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:24:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:24:26] Production.INFO: ==9192== Releasing lock... [2025-02-11 18:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:24:26] Production.INFO: 57.25 MB #Memory Used# [2025-02-11 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:25:05 [end_date_ymd] => 2025-02-11 18:25:05 [RateCDR] => 1 ) [2025-02-11 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:25:05' and `end` < '2025-02-11 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:25:22] Production.INFO: count ==3908 [2025-02-11 18:25:24] Production.ERROR: pbx CDR StartTime 2025-02-11 15:25:05 - End Time 2025-02-11 18:25:05 [2025-02-11 18:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453548', 'tblTempUsageDetail_20' ) start [2025-02-11 18:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453548', 'tblTempUsageDetail_20' ) end [2025-02-11 18:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453548', 'tblTempVendorCDR_20' ) start [2025-02-11 18:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453548', 'tblTempVendorCDR_20' ) end [2025-02-11 18:25:24] Production.INFO: ProcessCDR(1,14453548,1,1,2) [2025-02-11 18:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453548', 'tblTempUsageDetail_20' ) start [2025-02-11 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453548', 'tblTempUsageDetail_20' ) end [2025-02-11 18:25:29] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:25:29] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:25:29] Production.INFO: ==9269== Releasing lock... [2025-02-11 18:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:25:29] Production.INFO: 57.5 MB #Memory Used# [2025-02-11 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:26:05 [end_date_ymd] => 2025-02-11 18:26:05 [RateCDR] => 1 ) [2025-02-11 18:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:26:05' and `end` < '2025-02-11 18:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:26:19] Production.INFO: count ==3877 [2025-02-11 18:26:20] Production.ERROR: pbx CDR StartTime 2025-02-11 15:26:05 - End Time 2025-02-11 18:26:05 [2025-02-11 18:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453553', 'tblTempUsageDetail_20' ) start [2025-02-11 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453553', 'tblTempUsageDetail_20' ) end [2025-02-11 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453553', 'tblTempVendorCDR_20' ) start [2025-02-11 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453553', 'tblTempVendorCDR_20' ) end [2025-02-11 18:26:20] Production.INFO: ProcessCDR(1,14453553,1,1,2) [2025-02-11 18:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453553', 'tblTempUsageDetail_20' ) start [2025-02-11 18:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453553', 'tblTempUsageDetail_20' ) end [2025-02-11 18:26:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:26:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:26:24] Production.INFO: ==9346== Releasing lock... [2025-02-11 18:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:26:24] Production.INFO: 57 MB #Memory Used# [2025-02-11 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:27:05 [end_date_ymd] => 2025-02-11 18:27:05 [RateCDR] => 1 ) [2025-02-11 18:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:27:05' and `end` < '2025-02-11 18:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:27:19] Production.INFO: count ==3873 [2025-02-11 18:27:21] Production.ERROR: pbx CDR StartTime 2025-02-11 15:27:05 - End Time 2025-02-11 18:27:05 [2025-02-11 18:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453558', 'tblTempUsageDetail_20' ) start [2025-02-11 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453558', 'tblTempUsageDetail_20' ) end [2025-02-11 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453558', 'tblTempVendorCDR_20' ) start [2025-02-11 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453558', 'tblTempVendorCDR_20' ) end [2025-02-11 18:27:21] Production.INFO: ProcessCDR(1,14453558,1,1,2) [2025-02-11 18:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453558', 'tblTempUsageDetail_20' ) start [2025-02-11 18:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453558', 'tblTempUsageDetail_20' ) end [2025-02-11 18:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:27:24] Production.INFO: ==9418== Releasing lock... [2025-02-11 18:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:27:24] Production.INFO: 57.25 MB #Memory Used# [2025-02-11 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:28:05 [end_date_ymd] => 2025-02-11 18:28:05 [RateCDR] => 1 ) [2025-02-11 18:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:28:05' and `end` < '2025-02-11 18:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:28:19] Production.INFO: count ==3872 [2025-02-11 18:28:20] Production.ERROR: pbx CDR StartTime 2025-02-11 15:28:05 - End Time 2025-02-11 18:28:05 [2025-02-11 18:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453563', 'tblTempUsageDetail_20' ) start [2025-02-11 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453563', 'tblTempUsageDetail_20' ) end [2025-02-11 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453563', 'tblTempVendorCDR_20' ) start [2025-02-11 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453563', 'tblTempVendorCDR_20' ) end [2025-02-11 18:28:20] Production.INFO: ProcessCDR(1,14453563,1,1,2) [2025-02-11 18:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453563', 'tblTempUsageDetail_20' ) start [2025-02-11 18:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453563', 'tblTempUsageDetail_20' ) end [2025-02-11 18:28:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:28:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:28:24] Production.INFO: ==9495== Releasing lock... [2025-02-11 18:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:28:24] Production.INFO: 57.75 MB #Memory Used# [2025-02-11 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:29:05 [end_date_ymd] => 2025-02-11 18:29:05 [RateCDR] => 1 ) [2025-02-11 18:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:29:05' and `end` < '2025-02-11 18:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:29:19] Production.INFO: count ==3868 [2025-02-11 18:29:21] Production.ERROR: pbx CDR StartTime 2025-02-11 15:29:05 - End Time 2025-02-11 18:29:05 [2025-02-11 18:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453568', 'tblTempUsageDetail_20' ) start [2025-02-11 18:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453568', 'tblTempUsageDetail_20' ) end [2025-02-11 18:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453568', 'tblTempVendorCDR_20' ) start [2025-02-11 18:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453568', 'tblTempVendorCDR_20' ) end [2025-02-11 18:29:21] Production.INFO: ProcessCDR(1,14453568,1,1,2) [2025-02-11 18:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453568', 'tblTempUsageDetail_20' ) start [2025-02-11 18:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453568', 'tblTempUsageDetail_20' ) end [2025-02-11 18:29:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:29:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:29:26] Production.INFO: ==9568== Releasing lock... [2025-02-11 18:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:29:26] Production.INFO: 56.75 MB #Memory Used# [2025-02-11 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:30:06 [end_date_ymd] => 2025-02-11 18:30:06 [RateCDR] => 1 ) [2025-02-11 18:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:30:06' and `end` < '2025-02-11 18:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:30:20] Production.INFO: count ==3864 [2025-02-11 18:30:21] Production.ERROR: pbx CDR StartTime 2025-02-11 15:30:06 - End Time 2025-02-11 18:30:06 [2025-02-11 18:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453574', 'tblTempUsageDetail_20' ) start [2025-02-11 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453574', 'tblTempUsageDetail_20' ) end [2025-02-11 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453574', 'tblTempVendorCDR_20' ) start [2025-02-11 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453574', 'tblTempVendorCDR_20' ) end [2025-02-11 18:30:21] Production.INFO: ProcessCDR(1,14453574,1,1,2) [2025-02-11 18:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453574', 'tblTempUsageDetail_20' ) start [2025-02-11 18:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453574', 'tblTempUsageDetail_20' ) end [2025-02-11 18:30:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:30:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:30:25] Production.INFO: ==9649== Releasing lock... [2025-02-11 18:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:30:25] Production.INFO: 57.5 MB #Memory Used# [2025-02-11 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:31:05 [end_date_ymd] => 2025-02-11 18:31:05 [RateCDR] => 1 ) [2025-02-11 18:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:31:05' and `end` < '2025-02-11 18:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:31:18] Production.INFO: count ==3835 [2025-02-11 18:31:19] Production.ERROR: pbx CDR StartTime 2025-02-11 15:31:05 - End Time 2025-02-11 18:31:05 [2025-02-11 18:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453579', 'tblTempUsageDetail_20' ) start [2025-02-11 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453579', 'tblTempUsageDetail_20' ) end [2025-02-11 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453579', 'tblTempVendorCDR_20' ) start [2025-02-11 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453579', 'tblTempVendorCDR_20' ) end [2025-02-11 18:31:20] Production.INFO: ProcessCDR(1,14453579,1,1,2) [2025-02-11 18:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453579', 'tblTempUsageDetail_20' ) start [2025-02-11 18:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453579', 'tblTempUsageDetail_20' ) end [2025-02-11 18:31:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:31:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:31:25] Production.INFO: ==9724== Releasing lock... [2025-02-11 18:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:31:25] Production.INFO: 56.75 MB #Memory Used# [2025-02-11 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:32:05 [end_date_ymd] => 2025-02-11 18:32:05 [RateCDR] => 1 ) [2025-02-11 18:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:32:05' and `end` < '2025-02-11 18:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:32:19] Production.INFO: count ==3826 [2025-02-11 18:32:20] Production.ERROR: pbx CDR StartTime 2025-02-11 15:32:05 - End Time 2025-02-11 18:32:05 [2025-02-11 18:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453584', 'tblTempUsageDetail_20' ) start [2025-02-11 18:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453584', 'tblTempUsageDetail_20' ) end [2025-02-11 18:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453584', 'tblTempVendorCDR_20' ) start [2025-02-11 18:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453584', 'tblTempVendorCDR_20' ) end [2025-02-11 18:32:21] Production.INFO: ProcessCDR(1,14453584,1,1,2) [2025-02-11 18:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453584', 'tblTempUsageDetail_20' ) start [2025-02-11 18:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453584', 'tblTempUsageDetail_20' ) end [2025-02-11 18:32:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:32:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:32:24] Production.INFO: ==9799== Releasing lock... [2025-02-11 18:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:32:24] Production.INFO: 56.75 MB #Memory Used# [2025-02-11 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:33:05 [end_date_ymd] => 2025-02-11 18:33:05 [RateCDR] => 1 ) [2025-02-11 18:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:33:05' and `end` < '2025-02-11 18:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:33:19] Production.INFO: count ==3799 [2025-02-11 18:33:20] Production.ERROR: pbx CDR StartTime 2025-02-11 15:33:05 - End Time 2025-02-11 18:33:05 [2025-02-11 18:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453589', 'tblTempUsageDetail_20' ) start [2025-02-11 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453589', 'tblTempUsageDetail_20' ) end [2025-02-11 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453589', 'tblTempVendorCDR_20' ) start [2025-02-11 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453589', 'tblTempVendorCDR_20' ) end [2025-02-11 18:33:20] Production.INFO: ProcessCDR(1,14453589,1,1,2) [2025-02-11 18:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453589', 'tblTempUsageDetail_20' ) start [2025-02-11 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453589', 'tblTempUsageDetail_20' ) end [2025-02-11 18:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:33:24] Production.INFO: ==9873== Releasing lock... [2025-02-11 18:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:33:24] Production.INFO: 56.25 MB #Memory Used# [2025-02-11 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:34:05 [end_date_ymd] => 2025-02-11 18:34:05 [RateCDR] => 1 ) [2025-02-11 18:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:34:05' and `end` < '2025-02-11 18:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:34:19] Production.INFO: count ==3790 [2025-02-11 18:34:20] Production.ERROR: pbx CDR StartTime 2025-02-11 15:34:05 - End Time 2025-02-11 18:34:05 [2025-02-11 18:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453594', 'tblTempUsageDetail_20' ) start [2025-02-11 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453594', 'tblTempUsageDetail_20' ) end [2025-02-11 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453594', 'tblTempVendorCDR_20' ) start [2025-02-11 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453594', 'tblTempVendorCDR_20' ) end [2025-02-11 18:34:20] Production.INFO: ProcessCDR(1,14453594,1,1,2) [2025-02-11 18:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453594', 'tblTempUsageDetail_20' ) start [2025-02-11 18:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453594', 'tblTempUsageDetail_20' ) end [2025-02-11 18:34:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:34:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:34:25] Production.INFO: ==9952== Releasing lock... [2025-02-11 18:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:34:25] Production.INFO: 56.5 MB #Memory Used# [2025-02-11 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:35:05 [end_date_ymd] => 2025-02-11 18:35:05 [RateCDR] => 1 ) [2025-02-11 18:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:35:05' and `end` < '2025-02-11 18:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:35:19] Production.INFO: count ==3778 [2025-02-11 18:35:20] Production.ERROR: pbx CDR StartTime 2025-02-11 15:35:05 - End Time 2025-02-11 18:35:05 [2025-02-11 18:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453599', 'tblTempUsageDetail_20' ) start [2025-02-11 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453599', 'tblTempUsageDetail_20' ) end [2025-02-11 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453599', 'tblTempVendorCDR_20' ) start [2025-02-11 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453599', 'tblTempVendorCDR_20' ) end [2025-02-11 18:35:20] Production.INFO: ProcessCDR(1,14453599,1,1,2) [2025-02-11 18:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453599', 'tblTempUsageDetail_20' ) start [2025-02-11 18:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453599', 'tblTempUsageDetail_20' ) end [2025-02-11 18:35:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:35:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:35:25] Production.INFO: ==10070== Releasing lock... [2025-02-11 18:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:35:25] Production.INFO: 56.25 MB #Memory Used# [2025-02-11 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:36:05 [end_date_ymd] => 2025-02-11 18:36:05 [RateCDR] => 1 ) [2025-02-11 18:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:36:05' and `end` < '2025-02-11 18:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:36:19] Production.INFO: count ==3771 [2025-02-11 18:36:21] Production.ERROR: pbx CDR StartTime 2025-02-11 15:36:05 - End Time 2025-02-11 18:36:05 [2025-02-11 18:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453604', 'tblTempUsageDetail_20' ) start [2025-02-11 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453604', 'tblTempUsageDetail_20' ) end [2025-02-11 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453604', 'tblTempVendorCDR_20' ) start [2025-02-11 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453604', 'tblTempVendorCDR_20' ) end [2025-02-11 18:36:21] Production.INFO: ProcessCDR(1,14453604,1,1,2) [2025-02-11 18:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453604', 'tblTempUsageDetail_20' ) start [2025-02-11 18:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453604', 'tblTempUsageDetail_20' ) end [2025-02-11 18:36:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:36:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:36:26] Production.INFO: ==10142== Releasing lock... [2025-02-11 18:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:36:26] Production.INFO: 56.25 MB #Memory Used# [2025-02-11 18:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:37:06 [end_date_ymd] => 2025-02-11 18:37:06 [RateCDR] => 1 ) [2025-02-11 18:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:37:06' and `end` < '2025-02-11 18:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:37:19] Production.INFO: count ==3745 [2025-02-11 18:37:21] Production.ERROR: pbx CDR StartTime 2025-02-11 15:37:06 - End Time 2025-02-11 18:37:06 [2025-02-11 18:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453609', 'tblTempUsageDetail_20' ) start [2025-02-11 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453609', 'tblTempUsageDetail_20' ) end [2025-02-11 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453609', 'tblTempVendorCDR_20' ) start [2025-02-11 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453609', 'tblTempVendorCDR_20' ) end [2025-02-11 18:37:21] Production.INFO: ProcessCDR(1,14453609,1,1,2) [2025-02-11 18:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453609', 'tblTempUsageDetail_20' ) start [2025-02-11 18:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453609', 'tblTempUsageDetail_20' ) end [2025-02-11 18:37:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:37:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:37:26] Production.INFO: ==10218== Releasing lock... [2025-02-11 18:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:37:26] Production.INFO: 56 MB #Memory Used# [2025-02-11 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:38:05 [end_date_ymd] => 2025-02-11 18:38:05 [RateCDR] => 1 ) [2025-02-11 18:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:38:05' and `end` < '2025-02-11 18:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:38:22] Production.INFO: count ==3729 [2025-02-11 18:38:23] Production.ERROR: pbx CDR StartTime 2025-02-11 15:38:05 - End Time 2025-02-11 18:38:05 [2025-02-11 18:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453614', 'tblTempUsageDetail_20' ) start [2025-02-11 18:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453614', 'tblTempUsageDetail_20' ) end [2025-02-11 18:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453614', 'tblTempVendorCDR_20' ) start [2025-02-11 18:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453614', 'tblTempVendorCDR_20' ) end [2025-02-11 18:38:23] Production.INFO: ProcessCDR(1,14453614,1,1,2) [2025-02-11 18:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453614', 'tblTempUsageDetail_20' ) start [2025-02-11 18:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453614', 'tblTempUsageDetail_20' ) end [2025-02-11 18:38:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:38:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:38:28] Production.INFO: ==10293== Releasing lock... [2025-02-11 18:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:38:28] Production.INFO: 56.25 MB #Memory Used# [2025-02-11 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:39:05 [end_date_ymd] => 2025-02-11 18:39:05 [RateCDR] => 1 ) [2025-02-11 18:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:39:05' and `end` < '2025-02-11 18:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:39:19] Production.INFO: count ==3696 [2025-02-11 18:39:20] Production.ERROR: pbx CDR StartTime 2025-02-11 15:39:05 - End Time 2025-02-11 18:39:05 [2025-02-11 18:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453619', 'tblTempUsageDetail_20' ) start [2025-02-11 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453619', 'tblTempUsageDetail_20' ) end [2025-02-11 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453619', 'tblTempVendorCDR_20' ) start [2025-02-11 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453619', 'tblTempVendorCDR_20' ) end [2025-02-11 18:39:20] Production.INFO: ProcessCDR(1,14453619,1,1,2) [2025-02-11 18:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453619', 'tblTempUsageDetail_20' ) start [2025-02-11 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453619', 'tblTempUsageDetail_20' ) end [2025-02-11 18:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:39:24] Production.INFO: ==10365== Releasing lock... [2025-02-11 18:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:39:24] Production.INFO: 55.75 MB #Memory Used# [2025-02-11 18:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:40:05 [end_date_ymd] => 2025-02-11 18:40:05 [RateCDR] => 1 ) [2025-02-11 18:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:40:05' and `end` < '2025-02-11 18:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:40:18] Production.INFO: count ==3687 [2025-02-11 18:40:19] Production.ERROR: pbx CDR StartTime 2025-02-11 15:40:05 - End Time 2025-02-11 18:40:05 [2025-02-11 18:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453623', 'tblTempUsageDetail_20' ) start [2025-02-11 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453623', 'tblTempUsageDetail_20' ) end [2025-02-11 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453623', 'tblTempVendorCDR_20' ) start [2025-02-11 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453623', 'tblTempVendorCDR_20' ) end [2025-02-11 18:40:19] Production.INFO: ProcessCDR(1,14453623,1,1,2) [2025-02-11 18:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453623', 'tblTempUsageDetail_20' ) start [2025-02-11 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453623', 'tblTempUsageDetail_20' ) end [2025-02-11 18:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:40:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:40:25] Production.INFO: ==10439== Releasing lock... [2025-02-11 18:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:40:25] Production.INFO: 56.5 MB #Memory Used# [2025-02-11 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:41:05 [end_date_ymd] => 2025-02-11 18:41:05 [RateCDR] => 1 ) [2025-02-11 18:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:41:05' and `end` < '2025-02-11 18:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:41:18] Production.INFO: count ==3621 [2025-02-11 18:41:20] Production.ERROR: pbx CDR StartTime 2025-02-11 15:41:05 - End Time 2025-02-11 18:41:05 [2025-02-11 18:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453630', 'tblTempUsageDetail_20' ) start [2025-02-11 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453630', 'tblTempUsageDetail_20' ) end [2025-02-11 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453630', 'tblTempVendorCDR_20' ) start [2025-02-11 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453630', 'tblTempVendorCDR_20' ) end [2025-02-11 18:41:20] Production.INFO: ProcessCDR(1,14453630,1,1,2) [2025-02-11 18:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453630', 'tblTempUsageDetail_20' ) start [2025-02-11 18:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453630', 'tblTempUsageDetail_20' ) end [2025-02-11 18:41:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:41:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:41:25] Production.INFO: ==10515== Releasing lock... [2025-02-11 18:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:41:25] Production.INFO: 55.5 MB #Memory Used# [2025-02-11 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:42:05 [end_date_ymd] => 2025-02-11 18:42:05 [RateCDR] => 1 ) [2025-02-11 18:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:42:05' and `end` < '2025-02-11 18:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:42:21] Production.INFO: count ==3592 [2025-02-11 18:42:22] Production.ERROR: pbx CDR StartTime 2025-02-11 15:42:05 - End Time 2025-02-11 18:42:05 [2025-02-11 18:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453635', 'tblTempUsageDetail_20' ) start [2025-02-11 18:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453635', 'tblTempUsageDetail_20' ) end [2025-02-11 18:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453635', 'tblTempVendorCDR_20' ) start [2025-02-11 18:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453635', 'tblTempVendorCDR_20' ) end [2025-02-11 18:42:22] Production.INFO: ProcessCDR(1,14453635,1,1,2) [2025-02-11 18:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453635', 'tblTempUsageDetail_20' ) start [2025-02-11 18:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453635', 'tblTempUsageDetail_20' ) end [2025-02-11 18:42:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:42:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:42:28] Production.INFO: ==10589== Releasing lock... [2025-02-11 18:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:42:28] Production.INFO: 55 MB #Memory Used# [2025-02-11 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:43:05 [end_date_ymd] => 2025-02-11 18:43:05 [RateCDR] => 1 ) [2025-02-11 18:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:43:05' and `end` < '2025-02-11 18:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:43:19] Production.INFO: count ==3565 [2025-02-11 18:43:20] Production.ERROR: pbx CDR StartTime 2025-02-11 15:43:05 - End Time 2025-02-11 18:43:05 [2025-02-11 18:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453640', 'tblTempUsageDetail_20' ) start [2025-02-11 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453640', 'tblTempUsageDetail_20' ) end [2025-02-11 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453640', 'tblTempVendorCDR_20' ) start [2025-02-11 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453640', 'tblTempVendorCDR_20' ) end [2025-02-11 18:43:20] Production.INFO: ProcessCDR(1,14453640,1,1,2) [2025-02-11 18:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453640', 'tblTempUsageDetail_20' ) start [2025-02-11 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453640', 'tblTempUsageDetail_20' ) end [2025-02-11 18:43:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:43:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:43:25] Production.INFO: ==10659== Releasing lock... [2025-02-11 18:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:43:25] Production.INFO: 54.5 MB #Memory Used# [2025-02-11 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:44:05 [end_date_ymd] => 2025-02-11 18:44:05 [RateCDR] => 1 ) [2025-02-11 18:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:44:05' and `end` < '2025-02-11 18:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:44:19] Production.INFO: count ==3565 [2025-02-11 18:44:21] Production.ERROR: pbx CDR StartTime 2025-02-11 15:44:05 - End Time 2025-02-11 18:44:05 [2025-02-11 18:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453645', 'tblTempUsageDetail_20' ) start [2025-02-11 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453645', 'tblTempUsageDetail_20' ) end [2025-02-11 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453645', 'tblTempVendorCDR_20' ) start [2025-02-11 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453645', 'tblTempVendorCDR_20' ) end [2025-02-11 18:44:21] Production.INFO: ProcessCDR(1,14453645,1,1,2) [2025-02-11 18:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453645', 'tblTempUsageDetail_20' ) start [2025-02-11 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453645', 'tblTempUsageDetail_20' ) end [2025-02-11 18:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:44:24] Production.INFO: ==10732== Releasing lock... [2025-02-11 18:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:44:24] Production.INFO: 55.5 MB #Memory Used# [2025-02-11 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:45:05 [end_date_ymd] => 2025-02-11 18:45:05 [RateCDR] => 1 ) [2025-02-11 18:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:45:05' and `end` < '2025-02-11 18:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:45:19] Production.INFO: count ==3563 [2025-02-11 18:45:20] Production.ERROR: pbx CDR StartTime 2025-02-11 15:45:05 - End Time 2025-02-11 18:45:05 [2025-02-11 18:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453650', 'tblTempUsageDetail_20' ) start [2025-02-11 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453650', 'tblTempUsageDetail_20' ) end [2025-02-11 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453650', 'tblTempVendorCDR_20' ) start [2025-02-11 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453650', 'tblTempVendorCDR_20' ) end [2025-02-11 18:45:21] Production.INFO: ProcessCDR(1,14453650,1,1,2) [2025-02-11 18:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453650', 'tblTempUsageDetail_20' ) start [2025-02-11 18:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453650', 'tblTempUsageDetail_20' ) end [2025-02-11 18:45:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:45:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:45:26] Production.INFO: ==10804== Releasing lock... [2025-02-11 18:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:45:26] Production.INFO: 55.5 MB #Memory Used# [2025-02-11 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:46:05 [end_date_ymd] => 2025-02-11 18:46:05 [RateCDR] => 1 ) [2025-02-11 18:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:46:05' and `end` < '2025-02-11 18:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:46:19] Production.INFO: count ==3550 [2025-02-11 18:46:20] Production.ERROR: pbx CDR StartTime 2025-02-11 15:46:05 - End Time 2025-02-11 18:46:05 [2025-02-11 18:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453655', 'tblTempUsageDetail_20' ) start [2025-02-11 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453655', 'tblTempUsageDetail_20' ) end [2025-02-11 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453655', 'tblTempVendorCDR_20' ) start [2025-02-11 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453655', 'tblTempVendorCDR_20' ) end [2025-02-11 18:46:20] Production.INFO: ProcessCDR(1,14453655,1,1,2) [2025-02-11 18:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453655', 'tblTempUsageDetail_20' ) start [2025-02-11 18:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453655', 'tblTempUsageDetail_20' ) end [2025-02-11 18:46:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:46:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:46:25] Production.INFO: ==10883== Releasing lock... [2025-02-11 18:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:46:25] Production.INFO: 55.75 MB #Memory Used# [2025-02-11 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:47:05 [end_date_ymd] => 2025-02-11 18:47:05 [RateCDR] => 1 ) [2025-02-11 18:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:47:05' and `end` < '2025-02-11 18:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:47:18] Production.INFO: count ==3509 [2025-02-11 18:47:19] Production.ERROR: pbx CDR StartTime 2025-02-11 15:47:05 - End Time 2025-02-11 18:47:05 [2025-02-11 18:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453660', 'tblTempUsageDetail_20' ) start [2025-02-11 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453660', 'tblTempUsageDetail_20' ) end [2025-02-11 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453660', 'tblTempVendorCDR_20' ) start [2025-02-11 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453660', 'tblTempVendorCDR_20' ) end [2025-02-11 18:47:19] Production.INFO: ProcessCDR(1,14453660,1,1,2) [2025-02-11 18:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453660', 'tblTempUsageDetail_20' ) start [2025-02-11 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453660', 'tblTempUsageDetail_20' ) end [2025-02-11 18:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:47:25] Production.INFO: ==10957== Releasing lock... [2025-02-11 18:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:47:25] Production.INFO: 55.25 MB #Memory Used# [2025-02-11 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:48:05 [end_date_ymd] => 2025-02-11 18:48:05 [RateCDR] => 1 ) [2025-02-11 18:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:48:05' and `end` < '2025-02-11 18:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:48:19] Production.INFO: count ==3505 [2025-02-11 18:48:20] Production.ERROR: pbx CDR StartTime 2025-02-11 15:48:05 - End Time 2025-02-11 18:48:05 [2025-02-11 18:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453665', 'tblTempUsageDetail_20' ) start [2025-02-11 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453665', 'tblTempUsageDetail_20' ) end [2025-02-11 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453665', 'tblTempVendorCDR_20' ) start [2025-02-11 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453665', 'tblTempVendorCDR_20' ) end [2025-02-11 18:48:20] Production.INFO: ProcessCDR(1,14453665,1,1,2) [2025-02-11 18:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453665', 'tblTempUsageDetail_20' ) start [2025-02-11 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453665', 'tblTempUsageDetail_20' ) end [2025-02-11 18:48:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:48:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:48:25] Production.INFO: ==11029== Releasing lock... [2025-02-11 18:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:48:25] Production.INFO: 54.25 MB #Memory Used# [2025-02-11 18:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:49:05 [end_date_ymd] => 2025-02-11 18:49:05 [RateCDR] => 1 ) [2025-02-11 18:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:49:05' and `end` < '2025-02-11 18:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:49:19] Production.INFO: count ==3488 [2025-02-11 18:49:20] Production.ERROR: pbx CDR StartTime 2025-02-11 15:49:05 - End Time 2025-02-11 18:49:05 [2025-02-11 18:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453670', 'tblTempUsageDetail_20' ) start [2025-02-11 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453670', 'tblTempUsageDetail_20' ) end [2025-02-11 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453670', 'tblTempVendorCDR_20' ) start [2025-02-11 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453670', 'tblTempVendorCDR_20' ) end [2025-02-11 18:49:20] Production.INFO: ProcessCDR(1,14453670,1,1,2) [2025-02-11 18:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453670', 'tblTempUsageDetail_20' ) start [2025-02-11 18:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453670', 'tblTempUsageDetail_20' ) end [2025-02-11 18:49:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:49:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:49:25] Production.INFO: ==11361== Releasing lock... [2025-02-11 18:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:49:25] Production.INFO: 54 MB #Memory Used# [2025-02-11 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:50:06 [end_date_ymd] => 2025-02-11 18:50:06 [RateCDR] => 1 ) [2025-02-11 18:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:50:06' and `end` < '2025-02-11 18:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:50:21] Production.INFO: count ==3489 [2025-02-11 18:50:22] Production.ERROR: pbx CDR StartTime 2025-02-11 15:50:06 - End Time 2025-02-11 18:50:06 [2025-02-11 18:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453676', 'tblTempUsageDetail_20' ) start [2025-02-11 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453676', 'tblTempUsageDetail_20' ) end [2025-02-11 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453676', 'tblTempVendorCDR_20' ) start [2025-02-11 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453676', 'tblTempVendorCDR_20' ) end [2025-02-11 18:50:22] Production.INFO: ProcessCDR(1,14453676,1,1,2) [2025-02-11 18:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453676', 'tblTempUsageDetail_20' ) start [2025-02-11 18:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453676', 'tblTempUsageDetail_20' ) end [2025-02-11 18:50:28] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:50:28] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:50:28] Production.INFO: ==11481== Releasing lock... [2025-02-11 18:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:50:28] Production.INFO: 54.25 MB #Memory Used# [2025-02-11 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:51:05 [end_date_ymd] => 2025-02-11 18:51:05 [RateCDR] => 1 ) [2025-02-11 18:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:51:05' and `end` < '2025-02-11 18:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:51:19] Production.INFO: count ==3442 [2025-02-11 18:51:20] Production.ERROR: pbx CDR StartTime 2025-02-11 15:51:05 - End Time 2025-02-11 18:51:05 [2025-02-11 18:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453681', 'tblTempUsageDetail_20' ) start [2025-02-11 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453681', 'tblTempUsageDetail_20' ) end [2025-02-11 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453681', 'tblTempVendorCDR_20' ) start [2025-02-11 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453681', 'tblTempVendorCDR_20' ) end [2025-02-11 18:51:20] Production.INFO: ProcessCDR(1,14453681,1,1,2) [2025-02-11 18:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453681', 'tblTempUsageDetail_20' ) start [2025-02-11 18:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453681', 'tblTempUsageDetail_20' ) end [2025-02-11 18:51:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:51:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:51:25] Production.INFO: ==11563== Releasing lock... [2025-02-11 18:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:51:25] Production.INFO: 54.25 MB #Memory Used# [2025-02-11 18:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:52:04 [end_date_ymd] => 2025-02-11 18:52:04 [RateCDR] => 1 ) [2025-02-11 18:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:52:04' and `end` < '2025-02-11 18:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:52:18] Production.INFO: count ==3443 [2025-02-11 18:52:20] Production.ERROR: pbx CDR StartTime 2025-02-11 15:52:04 - End Time 2025-02-11 18:52:04 [2025-02-11 18:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453686', 'tblTempUsageDetail_20' ) start [2025-02-11 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453686', 'tblTempUsageDetail_20' ) end [2025-02-11 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453686', 'tblTempVendorCDR_20' ) start [2025-02-11 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453686', 'tblTempVendorCDR_20' ) end [2025-02-11 18:52:20] Production.INFO: ProcessCDR(1,14453686,1,1,2) [2025-02-11 18:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453686', 'tblTempUsageDetail_20' ) start [2025-02-11 18:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453686', 'tblTempUsageDetail_20' ) end [2025-02-11 18:52:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:52:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:52:25] Production.INFO: ==11648== Releasing lock... [2025-02-11 18:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:52:25] Production.INFO: 54.25 MB #Memory Used# [2025-02-11 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:53:05 [end_date_ymd] => 2025-02-11 18:53:05 [RateCDR] => 1 ) [2025-02-11 18:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:53:05' and `end` < '2025-02-11 18:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:53:19] Production.INFO: count ==3429 [2025-02-11 18:53:20] Production.ERROR: pbx CDR StartTime 2025-02-11 15:53:05 - End Time 2025-02-11 18:53:05 [2025-02-11 18:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453691', 'tblTempUsageDetail_20' ) start [2025-02-11 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453691', 'tblTempUsageDetail_20' ) end [2025-02-11 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453691', 'tblTempVendorCDR_20' ) start [2025-02-11 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453691', 'tblTempVendorCDR_20' ) end [2025-02-11 18:53:20] Production.INFO: ProcessCDR(1,14453691,1,1,2) [2025-02-11 18:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453691', 'tblTempUsageDetail_20' ) start [2025-02-11 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453691', 'tblTempUsageDetail_20' ) end [2025-02-11 18:53:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:53:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:53:25] Production.INFO: ==11733== Releasing lock... [2025-02-11 18:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:53:25] Production.INFO: 53.5 MB #Memory Used# [2025-02-11 18:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:54:04 [end_date_ymd] => 2025-02-11 18:54:04 [RateCDR] => 1 ) [2025-02-11 18:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:54:04' and `end` < '2025-02-11 18:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:54:19] Production.INFO: count ==3431 [2025-02-11 18:54:20] Production.ERROR: pbx CDR StartTime 2025-02-11 15:54:04 - End Time 2025-02-11 18:54:04 [2025-02-11 18:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453696', 'tblTempUsageDetail_20' ) start [2025-02-11 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453696', 'tblTempUsageDetail_20' ) end [2025-02-11 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453696', 'tblTempVendorCDR_20' ) start [2025-02-11 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453696', 'tblTempVendorCDR_20' ) end [2025-02-11 18:54:20] Production.INFO: ProcessCDR(1,14453696,1,1,2) [2025-02-11 18:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453696', 'tblTempUsageDetail_20' ) start [2025-02-11 18:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453696', 'tblTempUsageDetail_20' ) end [2025-02-11 18:54:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:54:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:54:25] Production.INFO: ==11806== Releasing lock... [2025-02-11 18:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:54:25] Production.INFO: 53.5 MB #Memory Used# [2025-02-11 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:55:05 [end_date_ymd] => 2025-02-11 18:55:05 [RateCDR] => 1 ) [2025-02-11 18:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:55:05' and `end` < '2025-02-11 18:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:55:19] Production.INFO: count ==3407 [2025-02-11 18:55:20] Production.ERROR: pbx CDR StartTime 2025-02-11 15:55:05 - End Time 2025-02-11 18:55:05 [2025-02-11 18:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453701', 'tblTempUsageDetail_20' ) start [2025-02-11 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453701', 'tblTempUsageDetail_20' ) end [2025-02-11 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453701', 'tblTempVendorCDR_20' ) start [2025-02-11 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453701', 'tblTempVendorCDR_20' ) end [2025-02-11 18:55:20] Production.INFO: ProcessCDR(1,14453701,1,1,2) [2025-02-11 18:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453701', 'tblTempUsageDetail_20' ) start [2025-02-11 18:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453701', 'tblTempUsageDetail_20' ) end [2025-02-11 18:55:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:55:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:55:25] Production.INFO: ==11886== Releasing lock... [2025-02-11 18:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:55:25] Production.INFO: 53.5 MB #Memory Used# [2025-02-11 18:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:56:06 [end_date_ymd] => 2025-02-11 18:56:06 [RateCDR] => 1 ) [2025-02-11 18:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:56:06' and `end` < '2025-02-11 18:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:56:19] Production.INFO: count ==3395 [2025-02-11 18:56:20] Production.ERROR: pbx CDR StartTime 2025-02-11 15:56:06 - End Time 2025-02-11 18:56:06 [2025-02-11 18:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453706', 'tblTempUsageDetail_20' ) start [2025-02-11 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453706', 'tblTempUsageDetail_20' ) end [2025-02-11 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453706', 'tblTempVendorCDR_20' ) start [2025-02-11 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453706', 'tblTempVendorCDR_20' ) end [2025-02-11 18:56:20] Production.INFO: ProcessCDR(1,14453706,1,1,2) [2025-02-11 18:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453706', 'tblTempUsageDetail_20' ) start [2025-02-11 18:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453706', 'tblTempUsageDetail_20' ) end [2025-02-11 18:56:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:56:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:56:26] Production.INFO: ==11971== Releasing lock... [2025-02-11 18:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:56:26] Production.INFO: 53.25 MB #Memory Used# [2025-02-11 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:57:05 [end_date_ymd] => 2025-02-11 18:57:05 [RateCDR] => 1 ) [2025-02-11 18:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:57:05' and `end` < '2025-02-11 18:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:57:21] Production.INFO: count ==3376 [2025-02-11 18:57:22] Production.ERROR: pbx CDR StartTime 2025-02-11 15:57:05 - End Time 2025-02-11 18:57:05 [2025-02-11 18:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453711', 'tblTempUsageDetail_20' ) start [2025-02-11 18:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453711', 'tblTempUsageDetail_20' ) end [2025-02-11 18:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453711', 'tblTempVendorCDR_20' ) start [2025-02-11 18:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453711', 'tblTempVendorCDR_20' ) end [2025-02-11 18:57:22] Production.INFO: ProcessCDR(1,14453711,1,1,2) [2025-02-11 18:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453711', 'tblTempUsageDetail_20' ) start [2025-02-11 18:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453711', 'tblTempUsageDetail_20' ) end [2025-02-11 18:57:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:57:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:57:27] Production.INFO: ==12049== Releasing lock... [2025-02-11 18:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:57:27] Production.INFO: 53.25 MB #Memory Used# [2025-02-11 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:58:05 [end_date_ymd] => 2025-02-11 18:58:05 [RateCDR] => 1 ) [2025-02-11 18:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:58:05' and `end` < '2025-02-11 18:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:58:19] Production.INFO: count ==3384 [2025-02-11 18:58:20] Production.ERROR: pbx CDR StartTime 2025-02-11 15:58:05 - End Time 2025-02-11 18:58:05 [2025-02-11 18:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453716', 'tblTempUsageDetail_20' ) start [2025-02-11 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453716', 'tblTempUsageDetail_20' ) end [2025-02-11 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453716', 'tblTempVendorCDR_20' ) start [2025-02-11 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453716', 'tblTempVendorCDR_20' ) end [2025-02-11 18:58:20] Production.INFO: ProcessCDR(1,14453716,1,1,2) [2025-02-11 18:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453716', 'tblTempUsageDetail_20' ) start [2025-02-11 18:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453716', 'tblTempUsageDetail_20' ) end [2025-02-11 18:58:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:58:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:58:25] Production.INFO: ==12133== Releasing lock... [2025-02-11 18:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:58:25] Production.INFO: 53.25 MB #Memory Used# [2025-02-11 18:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 15:59:04 [end_date_ymd] => 2025-02-11 18:59:04 [RateCDR] => 1 ) [2025-02-11 18:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 15:59:04' and `end` < '2025-02-11 18:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 18:59:19] Production.INFO: count ==3376 [2025-02-11 18:59:20] Production.ERROR: pbx CDR StartTime 2025-02-11 15:59:04 - End Time 2025-02-11 18:59:04 [2025-02-11 18:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453721', 'tblTempUsageDetail_20' ) start [2025-02-11 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453721', 'tblTempUsageDetail_20' ) end [2025-02-11 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453721', 'tblTempVendorCDR_20' ) start [2025-02-11 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453721', 'tblTempVendorCDR_20' ) end [2025-02-11 18:59:20] Production.INFO: ProcessCDR(1,14453721,1,1,2) [2025-02-11 18:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 18:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 18:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453721', 'tblTempUsageDetail_20' ) start [2025-02-11 18:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453721', 'tblTempUsageDetail_20' ) end [2025-02-11 18:59:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 18:59:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 18:59:25] Production.INFO: ==12214== Releasing lock... [2025-02-11 18:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 18:59:25] Production.INFO: 53.25 MB #Memory Used# [2025-02-11 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:00:06 [end_date_ymd] => 2025-02-11 19:00:06 [RateCDR] => 1 ) [2025-02-11 19:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:00:06' and `end` < '2025-02-11 19:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:00:21] Production.INFO: count ==3367 [2025-02-11 19:00:22] Production.ERROR: pbx CDR StartTime 2025-02-11 16:00:06 - End Time 2025-02-11 19:00:06 [2025-02-11 19:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453727', 'tblTempUsageDetail_20' ) start [2025-02-11 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453727', 'tblTempUsageDetail_20' ) end [2025-02-11 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453727', 'tblTempVendorCDR_20' ) start [2025-02-11 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453727', 'tblTempVendorCDR_20' ) end [2025-02-11 19:00:22] Production.INFO: ProcessCDR(1,14453727,1,1,2) [2025-02-11 19:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453727', 'tblTempUsageDetail_20' ) start [2025-02-11 19:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453727', 'tblTempUsageDetail_20' ) end [2025-02-11 19:00:26] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:00:26] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:00:26] Production.INFO: ==12301== Releasing lock... [2025-02-11 19:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:00:26] Production.INFO: 53.25 MB #Memory Used# [2025-02-11 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:01:05 [end_date_ymd] => 2025-02-11 19:01:05 [RateCDR] => 1 ) [2025-02-11 19:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:01:05' and `end` < '2025-02-11 19:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:01:19] Production.INFO: count ==3322 [2025-02-11 19:01:20] Production.ERROR: pbx CDR StartTime 2025-02-11 16:01:05 - End Time 2025-02-11 19:01:05 [2025-02-11 19:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453732', 'tblTempUsageDetail_20' ) start [2025-02-11 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453732', 'tblTempUsageDetail_20' ) end [2025-02-11 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453732', 'tblTempVendorCDR_20' ) start [2025-02-11 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453732', 'tblTempVendorCDR_20' ) end [2025-02-11 19:01:20] Production.INFO: ProcessCDR(1,14453732,1,1,2) [2025-02-11 19:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453732', 'tblTempUsageDetail_20' ) start [2025-02-11 19:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453732', 'tblTempUsageDetail_20' ) end [2025-02-11 19:01:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:01:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:01:25] Production.INFO: ==12435== Releasing lock... [2025-02-11 19:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:01:25] Production.INFO: 52.75 MB #Memory Used# [2025-02-11 19:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:02:06 [end_date_ymd] => 2025-02-11 19:02:06 [RateCDR] => 1 ) [2025-02-11 19:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:02:06' and `end` < '2025-02-11 19:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:02:20] Production.INFO: count ==3307 [2025-02-11 19:02:21] Production.ERROR: pbx CDR StartTime 2025-02-11 16:02:06 - End Time 2025-02-11 19:02:06 [2025-02-11 19:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453737', 'tblTempUsageDetail_20' ) start [2025-02-11 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453737', 'tblTempUsageDetail_20' ) end [2025-02-11 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453737', 'tblTempVendorCDR_20' ) start [2025-02-11 19:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453737', 'tblTempVendorCDR_20' ) end [2025-02-11 19:02:21] Production.INFO: ProcessCDR(1,14453737,1,1,2) [2025-02-11 19:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453737', 'tblTempUsageDetail_20' ) start [2025-02-11 19:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453737', 'tblTempUsageDetail_20' ) end [2025-02-11 19:02:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:02:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:02:27] Production.INFO: ==12555== Releasing lock... [2025-02-11 19:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:02:27] Production.INFO: 52.75 MB #Memory Used# [2025-02-11 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:03:05 [end_date_ymd] => 2025-02-11 19:03:05 [RateCDR] => 1 ) [2025-02-11 19:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:03:05' and `end` < '2025-02-11 19:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:03:21] Production.INFO: count ==3285 [2025-02-11 19:03:22] Production.ERROR: pbx CDR StartTime 2025-02-11 16:03:05 - End Time 2025-02-11 19:03:05 [2025-02-11 19:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453742', 'tblTempUsageDetail_20' ) start [2025-02-11 19:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453742', 'tblTempUsageDetail_20' ) end [2025-02-11 19:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453742', 'tblTempVendorCDR_20' ) start [2025-02-11 19:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453742', 'tblTempVendorCDR_20' ) end [2025-02-11 19:03:22] Production.INFO: ProcessCDR(1,14453742,1,1,2) [2025-02-11 19:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453742', 'tblTempUsageDetail_20' ) start [2025-02-11 19:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453742', 'tblTempUsageDetail_20' ) end [2025-02-11 19:03:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:03:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:03:27] Production.INFO: ==12640== Releasing lock... [2025-02-11 19:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:03:27] Production.INFO: 53 MB #Memory Used# [2025-02-11 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:04:05 [end_date_ymd] => 2025-02-11 19:04:05 [RateCDR] => 1 ) [2025-02-11 19:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:04:05' and `end` < '2025-02-11 19:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:04:18] Production.INFO: count ==3273 [2025-02-11 19:04:19] Production.ERROR: pbx CDR StartTime 2025-02-11 16:04:05 - End Time 2025-02-11 19:04:05 [2025-02-11 19:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453747', 'tblTempUsageDetail_20' ) start [2025-02-11 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453747', 'tblTempUsageDetail_20' ) end [2025-02-11 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453747', 'tblTempVendorCDR_20' ) start [2025-02-11 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453747', 'tblTempVendorCDR_20' ) end [2025-02-11 19:04:20] Production.INFO: ProcessCDR(1,14453747,1,1,2) [2025-02-11 19:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453747', 'tblTempUsageDetail_20' ) start [2025-02-11 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453747', 'tblTempUsageDetail_20' ) end [2025-02-11 19:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:04:24] Production.INFO: ==12725== Releasing lock... [2025-02-11 19:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:04:24] Production.INFO: 52.75 MB #Memory Used# [2025-02-11 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:05:05 [end_date_ymd] => 2025-02-11 19:05:05 [RateCDR] => 1 ) [2025-02-11 19:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:05:05' and `end` < '2025-02-11 19:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:05:19] Production.INFO: count ==3261 [2025-02-11 19:05:20] Production.ERROR: pbx CDR StartTime 2025-02-11 16:05:05 - End Time 2025-02-11 19:05:05 [2025-02-11 19:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453752', 'tblTempUsageDetail_20' ) start [2025-02-11 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453752', 'tblTempUsageDetail_20' ) end [2025-02-11 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453752', 'tblTempVendorCDR_20' ) start [2025-02-11 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453752', 'tblTempVendorCDR_20' ) end [2025-02-11 19:05:20] Production.INFO: ProcessCDR(1,14453752,1,1,2) [2025-02-11 19:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453752', 'tblTempUsageDetail_20' ) start [2025-02-11 19:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453752', 'tblTempUsageDetail_20' ) end [2025-02-11 19:05:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:05:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:05:25] Production.INFO: ==12899== Releasing lock... [2025-02-11 19:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:05:25] Production.INFO: 52.25 MB #Memory Used# [2025-02-11 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:06:05 [end_date_ymd] => 2025-02-11 19:06:05 [RateCDR] => 1 ) [2025-02-11 19:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:06:05' and `end` < '2025-02-11 19:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:06:19] Production.INFO: count ==3230 [2025-02-11 19:06:20] Production.ERROR: pbx CDR StartTime 2025-02-11 16:06:05 - End Time 2025-02-11 19:06:05 [2025-02-11 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453757', 'tblTempUsageDetail_20' ) start [2025-02-11 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453757', 'tblTempUsageDetail_20' ) end [2025-02-11 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453757', 'tblTempVendorCDR_20' ) start [2025-02-11 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453757', 'tblTempVendorCDR_20' ) end [2025-02-11 19:06:20] Production.INFO: ProcessCDR(1,14453757,1,1,2) [2025-02-11 19:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453757', 'tblTempUsageDetail_20' ) start [2025-02-11 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453757', 'tblTempUsageDetail_20' ) end [2025-02-11 19:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:06:24] Production.INFO: ==13019== Releasing lock... [2025-02-11 19:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:06:24] Production.INFO: 53 MB #Memory Used# [2025-02-11 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:07:05 [end_date_ymd] => 2025-02-11 19:07:05 [RateCDR] => 1 ) [2025-02-11 19:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:07:05' and `end` < '2025-02-11 19:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:07:19] Production.INFO: count ==3196 [2025-02-11 19:07:20] Production.ERROR: pbx CDR StartTime 2025-02-11 16:07:05 - End Time 2025-02-11 19:07:05 [2025-02-11 19:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453762', 'tblTempUsageDetail_20' ) start [2025-02-11 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453762', 'tblTempUsageDetail_20' ) end [2025-02-11 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453762', 'tblTempVendorCDR_20' ) start [2025-02-11 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453762', 'tblTempVendorCDR_20' ) end [2025-02-11 19:07:20] Production.INFO: ProcessCDR(1,14453762,1,1,2) [2025-02-11 19:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453762', 'tblTempUsageDetail_20' ) start [2025-02-11 19:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453762', 'tblTempUsageDetail_20' ) end [2025-02-11 19:07:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:07:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:07:25] Production.INFO: ==13104== Releasing lock... [2025-02-11 19:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:07:25] Production.INFO: 52.5 MB #Memory Used# [2025-02-11 19:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:08:06 [end_date_ymd] => 2025-02-11 19:08:06 [RateCDR] => 1 ) [2025-02-11 19:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:08:06' and `end` < '2025-02-11 19:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:08:19] Production.INFO: count ==3171 [2025-02-11 19:08:20] Production.ERROR: pbx CDR StartTime 2025-02-11 16:08:06 - End Time 2025-02-11 19:08:06 [2025-02-11 19:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453767', 'tblTempUsageDetail_20' ) start [2025-02-11 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453767', 'tblTempUsageDetail_20' ) end [2025-02-11 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453767', 'tblTempVendorCDR_20' ) start [2025-02-11 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453767', 'tblTempVendorCDR_20' ) end [2025-02-11 19:08:20] Production.INFO: ProcessCDR(1,14453767,1,1,2) [2025-02-11 19:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453767', 'tblTempUsageDetail_20' ) start [2025-02-11 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453767', 'tblTempUsageDetail_20' ) end [2025-02-11 19:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:08:23] Production.INFO: ==13267== Releasing lock... [2025-02-11 19:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:08:23] Production.INFO: 51.75 MB #Memory Used# [2025-02-11 19:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:09:05 [end_date_ymd] => 2025-02-11 19:09:05 [RateCDR] => 1 ) [2025-02-11 19:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:09:05' and `end` < '2025-02-11 19:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:09:19] Production.INFO: count ==3170 [2025-02-11 19:09:20] Production.ERROR: pbx CDR StartTime 2025-02-11 16:09:05 - End Time 2025-02-11 19:09:05 [2025-02-11 19:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453772', 'tblTempUsageDetail_20' ) start [2025-02-11 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453772', 'tblTempUsageDetail_20' ) end [2025-02-11 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453772', 'tblTempVendorCDR_20' ) start [2025-02-11 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453772', 'tblTempVendorCDR_20' ) end [2025-02-11 19:09:20] Production.INFO: ProcessCDR(1,14453772,1,1,2) [2025-02-11 19:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453772', 'tblTempUsageDetail_20' ) start [2025-02-11 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453772', 'tblTempUsageDetail_20' ) end [2025-02-11 19:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:09:23] Production.INFO: ==13356== Releasing lock... [2025-02-11 19:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:09:23] Production.INFO: 51.75 MB #Memory Used# [2025-02-11 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:10:06 [end_date_ymd] => 2025-02-11 19:10:06 [RateCDR] => 1 ) [2025-02-11 19:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:10:06' and `end` < '2025-02-11 19:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:10:26] Production.INFO: count ==3154 [2025-02-11 19:10:27] Production.ERROR: pbx CDR StartTime 2025-02-11 16:10:06 - End Time 2025-02-11 19:10:06 [2025-02-11 19:10:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453777', 'tblTempUsageDetail_20' ) start [2025-02-11 19:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453777', 'tblTempUsageDetail_20' ) end [2025-02-11 19:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453777', 'tblTempVendorCDR_20' ) start [2025-02-11 19:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453777', 'tblTempVendorCDR_20' ) end [2025-02-11 19:10:27] Production.INFO: ProcessCDR(1,14453777,1,1,2) [2025-02-11 19:10:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:10:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:10:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:10:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453777', 'tblTempUsageDetail_20' ) start [2025-02-11 19:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453777', 'tblTempUsageDetail_20' ) end [2025-02-11 19:10:32] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:10:32] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:10:32] Production.INFO: ==13442== Releasing lock... [2025-02-11 19:10:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:10:32] Production.INFO: 51.75 MB #Memory Used# [2025-02-11 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:11:05 [end_date_ymd] => 2025-02-11 19:11:05 [RateCDR] => 1 ) [2025-02-11 19:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:11:05' and `end` < '2025-02-11 19:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:11:19] Production.INFO: count ==3100 [2025-02-11 19:11:20] Production.ERROR: pbx CDR StartTime 2025-02-11 16:11:05 - End Time 2025-02-11 19:11:05 [2025-02-11 19:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453783', 'tblTempUsageDetail_20' ) start [2025-02-11 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453783', 'tblTempUsageDetail_20' ) end [2025-02-11 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453783', 'tblTempVendorCDR_20' ) start [2025-02-11 19:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453783', 'tblTempVendorCDR_20' ) end [2025-02-11 19:11:20] Production.INFO: ProcessCDR(1,14453783,1,1,2) [2025-02-11 19:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453783', 'tblTempUsageDetail_20' ) start [2025-02-11 19:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453783', 'tblTempUsageDetail_20' ) end [2025-02-11 19:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:11:25] Production.INFO: ==13533== Releasing lock... [2025-02-11 19:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:11:25] Production.INFO: 51.5 MB #Memory Used# [2025-02-11 19:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:12:06 [end_date_ymd] => 2025-02-11 19:12:06 [RateCDR] => 1 ) [2025-02-11 19:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:12:06' and `end` < '2025-02-11 19:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:12:19] Production.INFO: count ==3091 [2025-02-11 19:12:20] Production.ERROR: pbx CDR StartTime 2025-02-11 16:12:06 - End Time 2025-02-11 19:12:06 [2025-02-11 19:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453788', 'tblTempUsageDetail_20' ) start [2025-02-11 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453788', 'tblTempUsageDetail_20' ) end [2025-02-11 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453788', 'tblTempVendorCDR_20' ) start [2025-02-11 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453788', 'tblTempVendorCDR_20' ) end [2025-02-11 19:12:20] Production.INFO: ProcessCDR(1,14453788,1,1,2) [2025-02-11 19:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453788', 'tblTempUsageDetail_20' ) start [2025-02-11 19:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453788', 'tblTempUsageDetail_20' ) end [2025-02-11 19:12:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:12:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:12:25] Production.INFO: ==13697== Releasing lock... [2025-02-11 19:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:12:25] Production.INFO: 51 MB #Memory Used# [2025-02-11 19:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:13:04 [end_date_ymd] => 2025-02-11 19:13:04 [RateCDR] => 1 ) [2025-02-11 19:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:13:04' and `end` < '2025-02-11 19:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:13:17] Production.INFO: count ==3075 [2025-02-11 19:13:18] Production.ERROR: pbx CDR StartTime 2025-02-11 16:13:04 - End Time 2025-02-11 19:13:04 [2025-02-11 19:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453791', 'tblTempUsageDetail_20' ) start [2025-02-11 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453791', 'tblTempUsageDetail_20' ) end [2025-02-11 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453791', 'tblTempVendorCDR_20' ) start [2025-02-11 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453791', 'tblTempVendorCDR_20' ) end [2025-02-11 19:13:19] Production.INFO: ProcessCDR(1,14453791,1,1,2) [2025-02-11 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453791', 'tblTempUsageDetail_20' ) start [2025-02-11 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453791', 'tblTempUsageDetail_20' ) end [2025-02-11 19:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:13:22] Production.INFO: ==13786== Releasing lock... [2025-02-11 19:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:13:22] Production.INFO: 51 MB #Memory Used# [2025-02-11 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:14:05 [end_date_ymd] => 2025-02-11 19:14:05 [RateCDR] => 1 ) [2025-02-11 19:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:14:05' and `end` < '2025-02-11 19:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:14:19] Production.INFO: count ==3061 [2025-02-11 19:14:20] Production.ERROR: pbx CDR StartTime 2025-02-11 16:14:05 - End Time 2025-02-11 19:14:05 [2025-02-11 19:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453798', 'tblTempUsageDetail_20' ) start [2025-02-11 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453798', 'tblTempUsageDetail_20' ) end [2025-02-11 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453798', 'tblTempVendorCDR_20' ) start [2025-02-11 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453798', 'tblTempVendorCDR_20' ) end [2025-02-11 19:14:20] Production.INFO: ProcessCDR(1,14453798,1,1,2) [2025-02-11 19:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453798', 'tblTempUsageDetail_20' ) start [2025-02-11 19:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453798', 'tblTempUsageDetail_20' ) end [2025-02-11 19:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:14:25] Production.INFO: ==13875== Releasing lock... [2025-02-11 19:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:14:25] Production.INFO: 51 MB #Memory Used# [2025-02-11 19:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:15:04 [end_date_ymd] => 2025-02-11 19:15:04 [RateCDR] => 1 ) [2025-02-11 19:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:15:04' and `end` < '2025-02-11 19:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:15:17] Production.INFO: count ==3050 [2025-02-11 19:15:18] Production.ERROR: pbx CDR StartTime 2025-02-11 16:15:04 - End Time 2025-02-11 19:15:04 [2025-02-11 19:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453803', 'tblTempUsageDetail_20' ) start [2025-02-11 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453803', 'tblTempUsageDetail_20' ) end [2025-02-11 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453803', 'tblTempVendorCDR_20' ) start [2025-02-11 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453803', 'tblTempVendorCDR_20' ) end [2025-02-11 19:15:18] Production.INFO: ProcessCDR(1,14453803,1,1,2) [2025-02-11 19:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453803', 'tblTempUsageDetail_20' ) start [2025-02-11 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453803', 'tblTempUsageDetail_20' ) end [2025-02-11 19:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:15:22] Production.INFO: ==14036== Releasing lock... [2025-02-11 19:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:15:22] Production.INFO: 50.75 MB #Memory Used# [2025-02-11 19:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:16:06 [end_date_ymd] => 2025-02-11 19:16:06 [RateCDR] => 1 ) [2025-02-11 19:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:16:06' and `end` < '2025-02-11 19:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:16:20] Production.INFO: count ==3030 [2025-02-11 19:16:21] Production.ERROR: pbx CDR StartTime 2025-02-11 16:16:06 - End Time 2025-02-11 19:16:06 [2025-02-11 19:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453808', 'tblTempUsageDetail_20' ) start [2025-02-11 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453808', 'tblTempUsageDetail_20' ) end [2025-02-11 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453808', 'tblTempVendorCDR_20' ) start [2025-02-11 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453808', 'tblTempVendorCDR_20' ) end [2025-02-11 19:16:21] Production.INFO: ProcessCDR(1,14453808,1,1,2) [2025-02-11 19:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453808', 'tblTempUsageDetail_20' ) start [2025-02-11 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453808', 'tblTempUsageDetail_20' ) end [2025-02-11 19:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:16:24] Production.INFO: ==14126== Releasing lock... [2025-02-11 19:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:16:24] Production.INFO: 50.5 MB #Memory Used# [2025-02-11 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:17:05 [end_date_ymd] => 2025-02-11 19:17:05 [RateCDR] => 1 ) [2025-02-11 19:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:17:05' and `end` < '2025-02-11 19:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:17:18] Production.INFO: count ==3027 [2025-02-11 19:17:19] Production.ERROR: pbx CDR StartTime 2025-02-11 16:17:05 - End Time 2025-02-11 19:17:05 [2025-02-11 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453813', 'tblTempUsageDetail_20' ) start [2025-02-11 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453813', 'tblTempUsageDetail_20' ) end [2025-02-11 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453813', 'tblTempVendorCDR_20' ) start [2025-02-11 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453813', 'tblTempVendorCDR_20' ) end [2025-02-11 19:17:19] Production.INFO: ProcessCDR(1,14453813,1,1,2) [2025-02-11 19:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453813', 'tblTempUsageDetail_20' ) start [2025-02-11 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453813', 'tblTempUsageDetail_20' ) end [2025-02-11 19:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:17:22] Production.INFO: ==14215== Releasing lock... [2025-02-11 19:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:17:22] Production.INFO: 50.5 MB #Memory Used# [2025-02-11 19:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:18:06 [end_date_ymd] => 2025-02-11 19:18:06 [RateCDR] => 1 ) [2025-02-11 19:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:18:06' and `end` < '2025-02-11 19:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:18:20] Production.INFO: count ==3007 [2025-02-11 19:18:21] Production.ERROR: pbx CDR StartTime 2025-02-11 16:18:06 - End Time 2025-02-11 19:18:06 [2025-02-11 19:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453818', 'tblTempUsageDetail_20' ) start [2025-02-11 19:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453818', 'tblTempUsageDetail_20' ) end [2025-02-11 19:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453818', 'tblTempVendorCDR_20' ) start [2025-02-11 19:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453818', 'tblTempVendorCDR_20' ) end [2025-02-11 19:18:21] Production.INFO: ProcessCDR(1,14453818,1,1,2) [2025-02-11 19:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453818', 'tblTempUsageDetail_20' ) start [2025-02-11 19:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453818', 'tblTempUsageDetail_20' ) end [2025-02-11 19:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:18:24] Production.INFO: ==14297== Releasing lock... [2025-02-11 19:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:18:24] Production.INFO: 50.75 MB #Memory Used# [2025-02-11 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:19:05 [end_date_ymd] => 2025-02-11 19:19:05 [RateCDR] => 1 ) [2025-02-11 19:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:19:05' and `end` < '2025-02-11 19:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:19:19] Production.INFO: count ==2997 [2025-02-11 19:19:20] Production.ERROR: pbx CDR StartTime 2025-02-11 16:19:05 - End Time 2025-02-11 19:19:05 [2025-02-11 19:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453823', 'tblTempUsageDetail_20' ) start [2025-02-11 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453823', 'tblTempUsageDetail_20' ) end [2025-02-11 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453823', 'tblTempVendorCDR_20' ) start [2025-02-11 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453823', 'tblTempVendorCDR_20' ) end [2025-02-11 19:19:20] Production.INFO: ProcessCDR(1,14453823,1,1,2) [2025-02-11 19:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453823', 'tblTempUsageDetail_20' ) start [2025-02-11 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453823', 'tblTempUsageDetail_20' ) end [2025-02-11 19:19:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:19:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:19:24] Production.INFO: ==14385== Releasing lock... [2025-02-11 19:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:19:24] Production.INFO: 50.25 MB #Memory Used# [2025-02-11 19:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:20:05 [end_date_ymd] => 2025-02-11 19:20:05 [RateCDR] => 1 ) [2025-02-11 19:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:20:05' and `end` < '2025-02-11 19:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:20:19] Production.INFO: count ==2984 [2025-02-11 19:20:20] Production.ERROR: pbx CDR StartTime 2025-02-11 16:20:05 - End Time 2025-02-11 19:20:05 [2025-02-11 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453829', 'tblTempUsageDetail_20' ) start [2025-02-11 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453829', 'tblTempUsageDetail_20' ) end [2025-02-11 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453829', 'tblTempVendorCDR_20' ) start [2025-02-11 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453829', 'tblTempVendorCDR_20' ) end [2025-02-11 19:20:20] Production.INFO: ProcessCDR(1,14453829,1,1,2) [2025-02-11 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453829', 'tblTempUsageDetail_20' ) start [2025-02-11 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453829', 'tblTempUsageDetail_20' ) end [2025-02-11 19:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:20:24] Production.INFO: ==14482== Releasing lock... [2025-02-11 19:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:20:24] Production.INFO: 50.25 MB #Memory Used# [2025-02-11 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:21:05 [end_date_ymd] => 2025-02-11 19:21:05 [RateCDR] => 1 ) [2025-02-11 19:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:21:05' and `end` < '2025-02-11 19:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:21:19] Production.INFO: count ==2936 [2025-02-11 19:21:19] Production.ERROR: pbx CDR StartTime 2025-02-11 16:21:05 - End Time 2025-02-11 19:21:05 [2025-02-11 19:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453834', 'tblTempUsageDetail_20' ) start [2025-02-11 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453834', 'tblTempUsageDetail_20' ) end [2025-02-11 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453834', 'tblTempVendorCDR_20' ) start [2025-02-11 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453834', 'tblTempVendorCDR_20' ) end [2025-02-11 19:21:20] Production.INFO: ProcessCDR(1,14453834,1,1,2) [2025-02-11 19:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453834', 'tblTempUsageDetail_20' ) start [2025-02-11 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453834', 'tblTempUsageDetail_20' ) end [2025-02-11 19:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:21:24] Production.INFO: ==14612== Releasing lock... [2025-02-11 19:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:21:24] Production.INFO: 50.25 MB #Memory Used# [2025-02-11 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:22:05 [end_date_ymd] => 2025-02-11 19:22:05 [RateCDR] => 1 ) [2025-02-11 19:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:22:05' and `end` < '2025-02-11 19:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:22:18] Production.INFO: count ==2934 [2025-02-11 19:22:19] Production.ERROR: pbx CDR StartTime 2025-02-11 16:22:05 - End Time 2025-02-11 19:22:05 [2025-02-11 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453839', 'tblTempUsageDetail_20' ) start [2025-02-11 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453839', 'tblTempUsageDetail_20' ) end [2025-02-11 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453839', 'tblTempVendorCDR_20' ) start [2025-02-11 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453839', 'tblTempVendorCDR_20' ) end [2025-02-11 19:22:19] Production.INFO: ProcessCDR(1,14453839,1,1,2) [2025-02-11 19:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453839', 'tblTempUsageDetail_20' ) start [2025-02-11 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453839', 'tblTempUsageDetail_20' ) end [2025-02-11 19:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:22:22] Production.INFO: ==14698== Releasing lock... [2025-02-11 19:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:22:22] Production.INFO: 49.75 MB #Memory Used# [2025-02-11 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:23:05 [end_date_ymd] => 2025-02-11 19:23:05 [RateCDR] => 1 ) [2025-02-11 19:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:23:05' and `end` < '2025-02-11 19:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:23:18] Production.INFO: count ==2924 [2025-02-11 19:23:19] Production.ERROR: pbx CDR StartTime 2025-02-11 16:23:05 - End Time 2025-02-11 19:23:05 [2025-02-11 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453844', 'tblTempUsageDetail_20' ) start [2025-02-11 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453844', 'tblTempUsageDetail_20' ) end [2025-02-11 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453844', 'tblTempVendorCDR_20' ) start [2025-02-11 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453844', 'tblTempVendorCDR_20' ) end [2025-02-11 19:23:19] Production.INFO: ProcessCDR(1,14453844,1,1,2) [2025-02-11 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453844', 'tblTempUsageDetail_20' ) start [2025-02-11 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453844', 'tblTempUsageDetail_20' ) end [2025-02-11 19:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:23:22] Production.INFO: ==14789== Releasing lock... [2025-02-11 19:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:23:22] Production.INFO: 50 MB #Memory Used# [2025-02-11 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:24:05 [end_date_ymd] => 2025-02-11 19:24:05 [RateCDR] => 1 ) [2025-02-11 19:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:24:05' and `end` < '2025-02-11 19:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:24:19] Production.INFO: count ==2920 [2025-02-11 19:24:20] Production.ERROR: pbx CDR StartTime 2025-02-11 16:24:05 - End Time 2025-02-11 19:24:05 [2025-02-11 19:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453849', 'tblTempUsageDetail_20' ) start [2025-02-11 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453849', 'tblTempUsageDetail_20' ) end [2025-02-11 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453849', 'tblTempVendorCDR_20' ) start [2025-02-11 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453849', 'tblTempVendorCDR_20' ) end [2025-02-11 19:24:20] Production.INFO: ProcessCDR(1,14453849,1,1,2) [2025-02-11 19:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453849', 'tblTempUsageDetail_20' ) start [2025-02-11 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453849', 'tblTempUsageDetail_20' ) end [2025-02-11 19:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:24:24] Production.INFO: ==14880== Releasing lock... [2025-02-11 19:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:24:24] Production.INFO: 49.75 MB #Memory Used# [2025-02-11 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:25:05 [end_date_ymd] => 2025-02-11 19:25:05 [RateCDR] => 1 ) [2025-02-11 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:25:05' and `end` < '2025-02-11 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:25:19] Production.INFO: count ==2917 [2025-02-11 19:25:20] Production.ERROR: pbx CDR StartTime 2025-02-11 16:25:05 - End Time 2025-02-11 19:25:05 [2025-02-11 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453854', 'tblTempUsageDetail_20' ) start [2025-02-11 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453854', 'tblTempUsageDetail_20' ) end [2025-02-11 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453854', 'tblTempVendorCDR_20' ) start [2025-02-11 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453854', 'tblTempVendorCDR_20' ) end [2025-02-11 19:25:20] Production.INFO: ProcessCDR(1,14453854,1,1,2) [2025-02-11 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453854', 'tblTempUsageDetail_20' ) start [2025-02-11 19:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453854', 'tblTempUsageDetail_20' ) end [2025-02-11 19:25:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:25:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:25:25] Production.INFO: ==14962== Releasing lock... [2025-02-11 19:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:25:25] Production.INFO: 49.75 MB #Memory Used# [2025-02-11 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:26:05 [end_date_ymd] => 2025-02-11 19:26:05 [RateCDR] => 1 ) [2025-02-11 19:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:26:05' and `end` < '2025-02-11 19:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:26:19] Production.INFO: count ==2914 [2025-02-11 19:26:20] Production.ERROR: pbx CDR StartTime 2025-02-11 16:26:05 - End Time 2025-02-11 19:26:05 [2025-02-11 19:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453859', 'tblTempUsageDetail_20' ) start [2025-02-11 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453859', 'tblTempUsageDetail_20' ) end [2025-02-11 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453859', 'tblTempVendorCDR_20' ) start [2025-02-11 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453859', 'tblTempVendorCDR_20' ) end [2025-02-11 19:26:20] Production.INFO: ProcessCDR(1,14453859,1,1,2) [2025-02-11 19:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453859', 'tblTempUsageDetail_20' ) start [2025-02-11 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453859', 'tblTempUsageDetail_20' ) end [2025-02-11 19:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:26:23] Production.INFO: ==15052== Releasing lock... [2025-02-11 19:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:26:23] Production.INFO: 49.75 MB #Memory Used# [2025-02-11 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:27:05 [end_date_ymd] => 2025-02-11 19:27:05 [RateCDR] => 1 ) [2025-02-11 19:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:27:05' and `end` < '2025-02-11 19:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:27:19] Production.INFO: count ==2909 [2025-02-11 19:27:20] Production.ERROR: pbx CDR StartTime 2025-02-11 16:27:05 - End Time 2025-02-11 19:27:05 [2025-02-11 19:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453864', 'tblTempUsageDetail_20' ) start [2025-02-11 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453864', 'tblTempUsageDetail_20' ) end [2025-02-11 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453864', 'tblTempVendorCDR_20' ) start [2025-02-11 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453864', 'tblTempVendorCDR_20' ) end [2025-02-11 19:27:20] Production.INFO: ProcessCDR(1,14453864,1,1,2) [2025-02-11 19:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453864', 'tblTempUsageDetail_20' ) start [2025-02-11 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453864', 'tblTempUsageDetail_20' ) end [2025-02-11 19:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:27:23] Production.INFO: ==15160== Releasing lock... [2025-02-11 19:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:27:23] Production.INFO: 50 MB #Memory Used# [2025-02-11 19:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:28:04 [end_date_ymd] => 2025-02-11 19:28:04 [RateCDR] => 1 ) [2025-02-11 19:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:28:04' and `end` < '2025-02-11 19:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:28:18] Production.INFO: count ==2912 [2025-02-11 19:28:19] Production.ERROR: pbx CDR StartTime 2025-02-11 16:28:04 - End Time 2025-02-11 19:28:04 [2025-02-11 19:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453869', 'tblTempUsageDetail_20' ) start [2025-02-11 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453869', 'tblTempUsageDetail_20' ) end [2025-02-11 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453869', 'tblTempVendorCDR_20' ) start [2025-02-11 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453869', 'tblTempVendorCDR_20' ) end [2025-02-11 19:28:19] Production.INFO: ProcessCDR(1,14453869,1,1,2) [2025-02-11 19:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453869', 'tblTempUsageDetail_20' ) start [2025-02-11 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453869', 'tblTempUsageDetail_20' ) end [2025-02-11 19:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:28:23] Production.INFO: ==15246== Releasing lock... [2025-02-11 19:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:28:23] Production.INFO: 49.5 MB #Memory Used# [2025-02-11 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:29:05 [end_date_ymd] => 2025-02-11 19:29:05 [RateCDR] => 1 ) [2025-02-11 19:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:29:05' and `end` < '2025-02-11 19:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:29:19] Production.INFO: count ==2912 [2025-02-11 19:29:20] Production.ERROR: pbx CDR StartTime 2025-02-11 16:29:05 - End Time 2025-02-11 19:29:05 [2025-02-11 19:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453874', 'tblTempUsageDetail_20' ) start [2025-02-11 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453874', 'tblTempUsageDetail_20' ) end [2025-02-11 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453874', 'tblTempVendorCDR_20' ) start [2025-02-11 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453874', 'tblTempVendorCDR_20' ) end [2025-02-11 19:29:20] Production.INFO: ProcessCDR(1,14453874,1,1,2) [2025-02-11 19:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453874', 'tblTempUsageDetail_20' ) start [2025-02-11 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453874', 'tblTempUsageDetail_20' ) end [2025-02-11 19:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:29:24] Production.INFO: ==15328== Releasing lock... [2025-02-11 19:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:29:24] Production.INFO: 49.5 MB #Memory Used# [2025-02-11 19:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:30:05 [end_date_ymd] => 2025-02-11 19:30:05 [RateCDR] => 1 ) [2025-02-11 19:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:30:05' and `end` < '2025-02-11 19:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:30:18] Production.INFO: count ==2894 [2025-02-11 19:30:19] Production.ERROR: pbx CDR StartTime 2025-02-11 16:30:05 - End Time 2025-02-11 19:30:05 [2025-02-11 19:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453880', 'tblTempUsageDetail_20' ) start [2025-02-11 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453880', 'tblTempUsageDetail_20' ) end [2025-02-11 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453880', 'tblTempVendorCDR_20' ) start [2025-02-11 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453880', 'tblTempVendorCDR_20' ) end [2025-02-11 19:30:19] Production.INFO: ProcessCDR(1,14453880,1,1,2) [2025-02-11 19:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453880', 'tblTempUsageDetail_20' ) start [2025-02-11 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453880', 'tblTempUsageDetail_20' ) end [2025-02-11 19:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:30:23] Production.INFO: ==15413== Releasing lock... [2025-02-11 19:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:30:23] Production.INFO: 49.5 MB #Memory Used# [2025-02-11 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:31:05 [end_date_ymd] => 2025-02-11 19:31:05 [RateCDR] => 1 ) [2025-02-11 19:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:31:05' and `end` < '2025-02-11 19:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:31:19] Production.INFO: count ==2846 [2025-02-11 19:31:20] Production.ERROR: pbx CDR StartTime 2025-02-11 16:31:05 - End Time 2025-02-11 19:31:05 [2025-02-11 19:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453885', 'tblTempUsageDetail_20' ) start [2025-02-11 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453885', 'tblTempUsageDetail_20' ) end [2025-02-11 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453885', 'tblTempVendorCDR_20' ) start [2025-02-11 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453885', 'tblTempVendorCDR_20' ) end [2025-02-11 19:31:20] Production.INFO: ProcessCDR(1,14453885,1,1,2) [2025-02-11 19:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453885', 'tblTempUsageDetail_20' ) start [2025-02-11 19:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453885', 'tblTempUsageDetail_20' ) end [2025-02-11 19:31:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:31:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:31:25] Production.INFO: ==15503== Releasing lock... [2025-02-11 19:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:31:25] Production.INFO: 49.25 MB #Memory Used# [2025-02-11 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:32:05 [end_date_ymd] => 2025-02-11 19:32:05 [RateCDR] => 1 ) [2025-02-11 19:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:32:05' and `end` < '2025-02-11 19:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:32:20] Production.INFO: count ==2823 [2025-02-11 19:32:21] Production.ERROR: pbx CDR StartTime 2025-02-11 16:32:05 - End Time 2025-02-11 19:32:05 [2025-02-11 19:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453890', 'tblTempUsageDetail_20' ) start [2025-02-11 19:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453890', 'tblTempUsageDetail_20' ) end [2025-02-11 19:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453890', 'tblTempVendorCDR_20' ) start [2025-02-11 19:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453890', 'tblTempVendorCDR_20' ) end [2025-02-11 19:32:21] Production.INFO: ProcessCDR(1,14453890,1,1,2) [2025-02-11 19:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453890', 'tblTempUsageDetail_20' ) start [2025-02-11 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453890', 'tblTempUsageDetail_20' ) end [2025-02-11 19:32:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:32:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:32:24] Production.INFO: ==15585== Releasing lock... [2025-02-11 19:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:32:24] Production.INFO: 49.25 MB #Memory Used# [2025-02-11 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:33:05 [end_date_ymd] => 2025-02-11 19:33:05 [RateCDR] => 1 ) [2025-02-11 19:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:33:05' and `end` < '2025-02-11 19:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:33:19] Production.INFO: count ==2813 [2025-02-11 19:33:19] Production.ERROR: pbx CDR StartTime 2025-02-11 16:33:05 - End Time 2025-02-11 19:33:05 [2025-02-11 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453895', 'tblTempUsageDetail_20' ) start [2025-02-11 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453895', 'tblTempUsageDetail_20' ) end [2025-02-11 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453895', 'tblTempVendorCDR_20' ) start [2025-02-11 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453895', 'tblTempVendorCDR_20' ) end [2025-02-11 19:33:20] Production.INFO: ProcessCDR(1,14453895,1,1,2) [2025-02-11 19:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453895', 'tblTempUsageDetail_20' ) start [2025-02-11 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453895', 'tblTempUsageDetail_20' ) end [2025-02-11 19:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:33:23] Production.INFO: ==15663== Releasing lock... [2025-02-11 19:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:33:23] Production.INFO: 49.25 MB #Memory Used# [2025-02-11 19:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:34:06 [end_date_ymd] => 2025-02-11 19:34:06 [RateCDR] => 1 ) [2025-02-11 19:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:34:06' and `end` < '2025-02-11 19:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:34:19] Production.INFO: count ==2789 [2025-02-11 19:34:20] Production.ERROR: pbx CDR StartTime 2025-02-11 16:34:06 - End Time 2025-02-11 19:34:06 [2025-02-11 19:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453900', 'tblTempUsageDetail_20' ) start [2025-02-11 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453900', 'tblTempUsageDetail_20' ) end [2025-02-11 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453900', 'tblTempVendorCDR_20' ) start [2025-02-11 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453900', 'tblTempVendorCDR_20' ) end [2025-02-11 19:34:20] Production.INFO: ProcessCDR(1,14453900,1,1,2) [2025-02-11 19:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453900', 'tblTempUsageDetail_20' ) start [2025-02-11 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453900', 'tblTempUsageDetail_20' ) end [2025-02-11 19:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:34:23] Production.INFO: ==15751== Releasing lock... [2025-02-11 19:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:34:23] Production.INFO: 49 MB #Memory Used# [2025-02-11 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:35:05 [end_date_ymd] => 2025-02-11 19:35:05 [RateCDR] => 1 ) [2025-02-11 19:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:35:05' and `end` < '2025-02-11 19:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:35:18] Production.INFO: count ==2752 [2025-02-11 19:35:19] Production.ERROR: pbx CDR StartTime 2025-02-11 16:35:05 - End Time 2025-02-11 19:35:05 [2025-02-11 19:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453905', 'tblTempUsageDetail_20' ) start [2025-02-11 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453905', 'tblTempUsageDetail_20' ) end [2025-02-11 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453905', 'tblTempVendorCDR_20' ) start [2025-02-11 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453905', 'tblTempVendorCDR_20' ) end [2025-02-11 19:35:19] Production.INFO: ProcessCDR(1,14453905,1,1,2) [2025-02-11 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453905', 'tblTempUsageDetail_20' ) start [2025-02-11 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453905', 'tblTempUsageDetail_20' ) end [2025-02-11 19:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:35:23] Production.INFO: ==15838== Releasing lock... [2025-02-11 19:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:35:23] Production.INFO: 48.75 MB #Memory Used# [2025-02-11 19:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:36:06 [end_date_ymd] => 2025-02-11 19:36:06 [RateCDR] => 1 ) [2025-02-11 19:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:36:06' and `end` < '2025-02-11 19:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:36:20] Production.INFO: count ==2716 [2025-02-11 19:36:21] Production.ERROR: pbx CDR StartTime 2025-02-11 16:36:06 - End Time 2025-02-11 19:36:06 [2025-02-11 19:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453910', 'tblTempUsageDetail_20' ) start [2025-02-11 19:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453910', 'tblTempUsageDetail_20' ) end [2025-02-11 19:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453910', 'tblTempVendorCDR_20' ) start [2025-02-11 19:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453910', 'tblTempVendorCDR_20' ) end [2025-02-11 19:36:21] Production.INFO: ProcessCDR(1,14453910,1,1,2) [2025-02-11 19:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453910', 'tblTempUsageDetail_20' ) start [2025-02-11 19:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453910', 'tblTempUsageDetail_20' ) end [2025-02-11 19:36:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:36:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:36:25] Production.INFO: ==15966== Releasing lock... [2025-02-11 19:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:36:25] Production.INFO: 48.5 MB #Memory Used# [2025-02-11 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:37:05 [end_date_ymd] => 2025-02-11 19:37:05 [RateCDR] => 1 ) [2025-02-11 19:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:37:05' and `end` < '2025-02-11 19:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:37:18] Production.INFO: count ==2697 [2025-02-11 19:37:19] Production.ERROR: pbx CDR StartTime 2025-02-11 16:37:05 - End Time 2025-02-11 19:37:05 [2025-02-11 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453915', 'tblTempUsageDetail_20' ) start [2025-02-11 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453915', 'tblTempUsageDetail_20' ) end [2025-02-11 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453915', 'tblTempVendorCDR_20' ) start [2025-02-11 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453915', 'tblTempVendorCDR_20' ) end [2025-02-11 19:37:19] Production.INFO: ProcessCDR(1,14453915,1,1,2) [2025-02-11 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453915', 'tblTempUsageDetail_20' ) start [2025-02-11 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453915', 'tblTempUsageDetail_20' ) end [2025-02-11 19:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:37:24] Production.INFO: ==16061== Releasing lock... [2025-02-11 19:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:37:24] Production.INFO: 48.25 MB #Memory Used# [2025-02-11 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:38:05 [end_date_ymd] => 2025-02-11 19:38:05 [RateCDR] => 1 ) [2025-02-11 19:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:38:05' and `end` < '2025-02-11 19:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:38:19] Production.INFO: count ==2687 [2025-02-11 19:38:19] Production.ERROR: pbx CDR StartTime 2025-02-11 16:38:05 - End Time 2025-02-11 19:38:05 [2025-02-11 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453920', 'tblTempUsageDetail_20' ) start [2025-02-11 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453920', 'tblTempUsageDetail_20' ) end [2025-02-11 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453920', 'tblTempVendorCDR_20' ) start [2025-02-11 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453920', 'tblTempVendorCDR_20' ) end [2025-02-11 19:38:19] Production.INFO: ProcessCDR(1,14453920,1,1,2) [2025-02-11 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453920', 'tblTempUsageDetail_20' ) start [2025-02-11 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453920', 'tblTempUsageDetail_20' ) end [2025-02-11 19:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:38:24] Production.INFO: ==16150== Releasing lock... [2025-02-11 19:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:38:24] Production.INFO: 48.25 MB #Memory Used# [2025-02-11 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:39:05 [end_date_ymd] => 2025-02-11 19:39:05 [RateCDR] => 1 ) [2025-02-11 19:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:39:05' and `end` < '2025-02-11 19:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:39:21] Production.INFO: count ==2665 [2025-02-11 19:39:22] Production.ERROR: pbx CDR StartTime 2025-02-11 16:39:05 - End Time 2025-02-11 19:39:05 [2025-02-11 19:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453925', 'tblTempUsageDetail_20' ) start [2025-02-11 19:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453925', 'tblTempUsageDetail_20' ) end [2025-02-11 19:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453925', 'tblTempVendorCDR_20' ) start [2025-02-11 19:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453925', 'tblTempVendorCDR_20' ) end [2025-02-11 19:39:22] Production.INFO: ProcessCDR(1,14453925,1,1,2) [2025-02-11 19:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453925', 'tblTempUsageDetail_20' ) start [2025-02-11 19:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453925', 'tblTempUsageDetail_20' ) end [2025-02-11 19:39:27] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:39:27] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:39:27] Production.INFO: ==16238== Releasing lock... [2025-02-11 19:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:39:27] Production.INFO: 48 MB #Memory Used# [2025-02-11 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:40:06 [end_date_ymd] => 2025-02-11 19:40:06 [RateCDR] => 1 ) [2025-02-11 19:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:40:06' and `end` < '2025-02-11 19:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:40:19] Production.INFO: count ==2660 [2025-02-11 19:40:20] Production.ERROR: pbx CDR StartTime 2025-02-11 16:40:06 - End Time 2025-02-11 19:40:06 [2025-02-11 19:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453931', 'tblTempUsageDetail_20' ) start [2025-02-11 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453931', 'tblTempUsageDetail_20' ) end [2025-02-11 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453931', 'tblTempVendorCDR_20' ) start [2025-02-11 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453931', 'tblTempVendorCDR_20' ) end [2025-02-11 19:40:20] Production.INFO: ProcessCDR(1,14453931,1,1,2) [2025-02-11 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453931', 'tblTempUsageDetail_20' ) start [2025-02-11 19:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453931', 'tblTempUsageDetail_20' ) end [2025-02-11 19:40:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:40:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:40:25] Production.INFO: ==16332== Releasing lock... [2025-02-11 19:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:40:25] Production.INFO: 48 MB #Memory Used# [2025-02-11 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:41:05 [end_date_ymd] => 2025-02-11 19:41:05 [RateCDR] => 1 ) [2025-02-11 19:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:41:05' and `end` < '2025-02-11 19:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:41:18] Production.INFO: count ==2593 [2025-02-11 19:41:18] Production.ERROR: pbx CDR StartTime 2025-02-11 16:41:05 - End Time 2025-02-11 19:41:05 [2025-02-11 19:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453936', 'tblTempUsageDetail_20' ) start [2025-02-11 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453936', 'tblTempUsageDetail_20' ) end [2025-02-11 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453936', 'tblTempVendorCDR_20' ) start [2025-02-11 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453936', 'tblTempVendorCDR_20' ) end [2025-02-11 19:41:19] Production.INFO: ProcessCDR(1,14453936,1,1,2) [2025-02-11 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453936', 'tblTempUsageDetail_20' ) start [2025-02-11 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453936', 'tblTempUsageDetail_20' ) end [2025-02-11 19:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:41:22] Production.INFO: ==16419== Releasing lock... [2025-02-11 19:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:41:22] Production.INFO: 47.5 MB #Memory Used# [2025-02-11 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:42:05 [end_date_ymd] => 2025-02-11 19:42:05 [RateCDR] => 1 ) [2025-02-11 19:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:42:05' and `end` < '2025-02-11 19:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:42:18] Production.INFO: count ==2569 [2025-02-11 19:42:19] Production.ERROR: pbx CDR StartTime 2025-02-11 16:42:05 - End Time 2025-02-11 19:42:05 [2025-02-11 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453941', 'tblTempUsageDetail_20' ) start [2025-02-11 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453941', 'tblTempUsageDetail_20' ) end [2025-02-11 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453941', 'tblTempVendorCDR_20' ) start [2025-02-11 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453941', 'tblTempVendorCDR_20' ) end [2025-02-11 19:42:19] Production.INFO: ProcessCDR(1,14453941,1,1,2) [2025-02-11 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453941', 'tblTempUsageDetail_20' ) start [2025-02-11 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453941', 'tblTempUsageDetail_20' ) end [2025-02-11 19:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:42:22] Production.INFO: ==16500== Releasing lock... [2025-02-11 19:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:42:22] Production.INFO: 47.25 MB #Memory Used# [2025-02-11 19:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:43:04 [end_date_ymd] => 2025-02-11 19:43:04 [RateCDR] => 1 ) [2025-02-11 19:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:43:04' and `end` < '2025-02-11 19:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:43:18] Production.INFO: count ==2566 [2025-02-11 19:43:18] Production.ERROR: pbx CDR StartTime 2025-02-11 16:43:04 - End Time 2025-02-11 19:43:04 [2025-02-11 19:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453946', 'tblTempUsageDetail_20' ) start [2025-02-11 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453946', 'tblTempUsageDetail_20' ) end [2025-02-11 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453946', 'tblTempVendorCDR_20' ) start [2025-02-11 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453946', 'tblTempVendorCDR_20' ) end [2025-02-11 19:43:19] Production.INFO: ProcessCDR(1,14453946,1,1,2) [2025-02-11 19:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453946', 'tblTempUsageDetail_20' ) start [2025-02-11 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453946', 'tblTempUsageDetail_20' ) end [2025-02-11 19:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:43:22] Production.INFO: ==16586== Releasing lock... [2025-02-11 19:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:43:22] Production.INFO: 47.25 MB #Memory Used# [2025-02-11 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:44:05 [end_date_ymd] => 2025-02-11 19:44:05 [RateCDR] => 1 ) [2025-02-11 19:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:44:05' and `end` < '2025-02-11 19:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:44:19] Production.INFO: count ==2558 [2025-02-11 19:44:20] Production.ERROR: pbx CDR StartTime 2025-02-11 16:44:05 - End Time 2025-02-11 19:44:05 [2025-02-11 19:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453951', 'tblTempUsageDetail_20' ) start [2025-02-11 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453951', 'tblTempUsageDetail_20' ) end [2025-02-11 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453951', 'tblTempVendorCDR_20' ) start [2025-02-11 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453951', 'tblTempVendorCDR_20' ) end [2025-02-11 19:44:20] Production.INFO: ProcessCDR(1,14453951,1,1,2) [2025-02-11 19:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453951', 'tblTempUsageDetail_20' ) start [2025-02-11 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453951', 'tblTempUsageDetail_20' ) end [2025-02-11 19:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:44:24] Production.INFO: ==16676== Releasing lock... [2025-02-11 19:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:44:24] Production.INFO: 47.25 MB #Memory Used# [2025-02-11 19:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:45:06 [end_date_ymd] => 2025-02-11 19:45:06 [RateCDR] => 1 ) [2025-02-11 19:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:45:06' and `end` < '2025-02-11 19:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:45:19] Production.INFO: count ==2546 [2025-02-11 19:45:20] Production.ERROR: pbx CDR StartTime 2025-02-11 16:45:06 - End Time 2025-02-11 19:45:06 [2025-02-11 19:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453956', 'tblTempUsageDetail_20' ) start [2025-02-11 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453956', 'tblTempUsageDetail_20' ) end [2025-02-11 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453956', 'tblTempVendorCDR_20' ) start [2025-02-11 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453956', 'tblTempVendorCDR_20' ) end [2025-02-11 19:45:20] Production.INFO: ProcessCDR(1,14453956,1,1,2) [2025-02-11 19:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453956', 'tblTempUsageDetail_20' ) start [2025-02-11 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453956', 'tblTempUsageDetail_20' ) end [2025-02-11 19:45:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:45:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:45:24] Production.INFO: ==16751== Releasing lock... [2025-02-11 19:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:45:24] Production.INFO: 47.25 MB #Memory Used# [2025-02-11 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:46:05 [end_date_ymd] => 2025-02-11 19:46:05 [RateCDR] => 1 ) [2025-02-11 19:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:46:05' and `end` < '2025-02-11 19:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:46:18] Production.INFO: count ==2533 [2025-02-11 19:46:19] Production.ERROR: pbx CDR StartTime 2025-02-11 16:46:05 - End Time 2025-02-11 19:46:05 [2025-02-11 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453961', 'tblTempUsageDetail_20' ) start [2025-02-11 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453961', 'tblTempUsageDetail_20' ) end [2025-02-11 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453961', 'tblTempVendorCDR_20' ) start [2025-02-11 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453961', 'tblTempVendorCDR_20' ) end [2025-02-11 19:46:19] Production.INFO: ProcessCDR(1,14453961,1,1,2) [2025-02-11 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453961', 'tblTempUsageDetail_20' ) start [2025-02-11 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453961', 'tblTempUsageDetail_20' ) end [2025-02-11 19:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:46:22] Production.INFO: ==16826== Releasing lock... [2025-02-11 19:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:46:22] Production.INFO: 47 MB #Memory Used# [2025-02-11 19:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:47:06 [end_date_ymd] => 2025-02-11 19:47:06 [RateCDR] => 1 ) [2025-02-11 19:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:47:06' and `end` < '2025-02-11 19:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:47:19] Production.INFO: count ==2514 [2025-02-11 19:47:20] Production.ERROR: pbx CDR StartTime 2025-02-11 16:47:06 - End Time 2025-02-11 19:47:06 [2025-02-11 19:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453966', 'tblTempUsageDetail_20' ) start [2025-02-11 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453966', 'tblTempUsageDetail_20' ) end [2025-02-11 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453966', 'tblTempVendorCDR_20' ) start [2025-02-11 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453966', 'tblTempVendorCDR_20' ) end [2025-02-11 19:47:20] Production.INFO: ProcessCDR(1,14453966,1,1,2) [2025-02-11 19:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453966', 'tblTempUsageDetail_20' ) start [2025-02-11 19:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453966', 'tblTempUsageDetail_20' ) end [2025-02-11 19:47:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:47:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:47:25] Production.INFO: ==16903== Releasing lock... [2025-02-11 19:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:47:25] Production.INFO: 47 MB #Memory Used# [2025-02-11 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:48:05 [end_date_ymd] => 2025-02-11 19:48:05 [RateCDR] => 1 ) [2025-02-11 19:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:48:05' and `end` < '2025-02-11 19:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:48:18] Production.INFO: count ==2509 [2025-02-11 19:48:19] Production.ERROR: pbx CDR StartTime 2025-02-11 16:48:05 - End Time 2025-02-11 19:48:05 [2025-02-11 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453971', 'tblTempUsageDetail_20' ) start [2025-02-11 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453971', 'tblTempUsageDetail_20' ) end [2025-02-11 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453971', 'tblTempVendorCDR_20' ) start [2025-02-11 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453971', 'tblTempVendorCDR_20' ) end [2025-02-11 19:48:19] Production.INFO: ProcessCDR(1,14453971,1,1,2) [2025-02-11 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453971', 'tblTempUsageDetail_20' ) start [2025-02-11 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453971', 'tblTempUsageDetail_20' ) end [2025-02-11 19:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:48:24] Production.INFO: ==16984== Releasing lock... [2025-02-11 19:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:48:24] Production.INFO: 47 MB #Memory Used# [2025-02-11 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:49:05 [end_date_ymd] => 2025-02-11 19:49:05 [RateCDR] => 1 ) [2025-02-11 19:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:49:05' and `end` < '2025-02-11 19:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:49:19] Production.INFO: count ==2474 [2025-02-11 19:49:19] Production.ERROR: pbx CDR StartTime 2025-02-11 16:49:05 - End Time 2025-02-11 19:49:05 [2025-02-11 19:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453976', 'tblTempUsageDetail_20' ) start [2025-02-11 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453976', 'tblTempUsageDetail_20' ) end [2025-02-11 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453976', 'tblTempVendorCDR_20' ) start [2025-02-11 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453976', 'tblTempVendorCDR_20' ) end [2025-02-11 19:49:19] Production.INFO: ProcessCDR(1,14453976,1,1,2) [2025-02-11 19:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453976', 'tblTempUsageDetail_20' ) start [2025-02-11 19:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453976', 'tblTempUsageDetail_20' ) end [2025-02-11 19:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:49:24] Production.INFO: ==17060== Releasing lock... [2025-02-11 19:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:49:24] Production.INFO: 46.75 MB #Memory Used# [2025-02-11 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:50:06 [end_date_ymd] => 2025-02-11 19:50:06 [RateCDR] => 1 ) [2025-02-11 19:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:50:06' and `end` < '2025-02-11 19:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:50:20] Production.INFO: count ==2473 [2025-02-11 19:50:20] Production.ERROR: pbx CDR StartTime 2025-02-11 16:50:06 - End Time 2025-02-11 19:50:06 [2025-02-11 19:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453982', 'tblTempUsageDetail_20' ) start [2025-02-11 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453982', 'tblTempUsageDetail_20' ) end [2025-02-11 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453982', 'tblTempVendorCDR_20' ) start [2025-02-11 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453982', 'tblTempVendorCDR_20' ) end [2025-02-11 19:50:20] Production.INFO: ProcessCDR(1,14453982,1,1,2) [2025-02-11 19:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453982', 'tblTempUsageDetail_20' ) start [2025-02-11 19:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453982', 'tblTempUsageDetail_20' ) end [2025-02-11 19:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:50:25] Production.INFO: ==17136== Releasing lock... [2025-02-11 19:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:50:25] Production.INFO: 46.5 MB #Memory Used# [2025-02-11 19:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:51:06 [end_date_ymd] => 2025-02-11 19:51:06 [RateCDR] => 1 ) [2025-02-11 19:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:51:06' and `end` < '2025-02-11 19:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:51:19] Production.INFO: count ==2389 [2025-02-11 19:51:19] Production.ERROR: pbx CDR StartTime 2025-02-11 16:51:06 - End Time 2025-02-11 19:51:06 [2025-02-11 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453987', 'tblTempUsageDetail_20' ) start [2025-02-11 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453987', 'tblTempUsageDetail_20' ) end [2025-02-11 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453987', 'tblTempVendorCDR_20' ) start [2025-02-11 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453987', 'tblTempVendorCDR_20' ) end [2025-02-11 19:51:20] Production.INFO: ProcessCDR(1,14453987,1,1,2) [2025-02-11 19:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453987', 'tblTempUsageDetail_20' ) start [2025-02-11 19:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453987', 'tblTempUsageDetail_20' ) end [2025-02-11 19:51:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:51:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:51:24] Production.INFO: ==17212== Releasing lock... [2025-02-11 19:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:51:24] Production.INFO: 46.25 MB #Memory Used# [2025-02-11 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:52:05 [end_date_ymd] => 2025-02-11 19:52:05 [RateCDR] => 1 ) [2025-02-11 19:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:52:05' and `end` < '2025-02-11 19:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:52:18] Production.INFO: count ==2375 [2025-02-11 19:52:19] Production.ERROR: pbx CDR StartTime 2025-02-11 16:52:05 - End Time 2025-02-11 19:52:05 [2025-02-11 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453992', 'tblTempUsageDetail_20' ) start [2025-02-11 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453992', 'tblTempUsageDetail_20' ) end [2025-02-11 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453992', 'tblTempVendorCDR_20' ) start [2025-02-11 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453992', 'tblTempVendorCDR_20' ) end [2025-02-11 19:52:19] Production.INFO: ProcessCDR(1,14453992,1,1,2) [2025-02-11 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453992', 'tblTempUsageDetail_20' ) start [2025-02-11 19:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453992', 'tblTempUsageDetail_20' ) end [2025-02-11 19:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:52:24] Production.INFO: ==17323== Releasing lock... [2025-02-11 19:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:52:24] Production.INFO: 46 MB #Memory Used# [2025-02-11 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:53:05 [end_date_ymd] => 2025-02-11 19:53:05 [RateCDR] => 1 ) [2025-02-11 19:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:53:05' and `end` < '2025-02-11 19:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:53:18] Production.INFO: count ==2380 [2025-02-11 19:53:19] Production.ERROR: pbx CDR StartTime 2025-02-11 16:53:05 - End Time 2025-02-11 19:53:05 [2025-02-11 19:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453997', 'tblTempUsageDetail_20' ) start [2025-02-11 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14453997', 'tblTempUsageDetail_20' ) end [2025-02-11 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453997', 'tblTempVendorCDR_20' ) start [2025-02-11 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14453997', 'tblTempVendorCDR_20' ) end [2025-02-11 19:53:19] Production.INFO: ProcessCDR(1,14453997,1,1,2) [2025-02-11 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14453997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14453997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14453997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14453997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453997', 'tblTempUsageDetail_20' ) start [2025-02-11 19:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14453997', 'tblTempUsageDetail_20' ) end [2025-02-11 19:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:53:24] Production.INFO: ==17401== Releasing lock... [2025-02-11 19:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:53:24] Production.INFO: 46.25 MB #Memory Used# [2025-02-11 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:54:05 [end_date_ymd] => 2025-02-11 19:54:05 [RateCDR] => 1 ) [2025-02-11 19:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:54:05' and `end` < '2025-02-11 19:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:54:20] Production.INFO: count ==2377 [2025-02-11 19:54:20] Production.ERROR: pbx CDR StartTime 2025-02-11 16:54:05 - End Time 2025-02-11 19:54:05 [2025-02-11 19:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454002', 'tblTempUsageDetail_20' ) start [2025-02-11 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454002', 'tblTempUsageDetail_20' ) end [2025-02-11 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454002', 'tblTempVendorCDR_20' ) start [2025-02-11 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454002', 'tblTempVendorCDR_20' ) end [2025-02-11 19:54:20] Production.INFO: ProcessCDR(1,14454002,1,1,2) [2025-02-11 19:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454002', 'tblTempUsageDetail_20' ) start [2025-02-11 19:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454002', 'tblTempUsageDetail_20' ) end [2025-02-11 19:54:25] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:54:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:54:25] Production.INFO: ==17472== Releasing lock... [2025-02-11 19:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:54:25] Production.INFO: 46 MB #Memory Used# [2025-02-11 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:55:05 [end_date_ymd] => 2025-02-11 19:55:05 [RateCDR] => 1 ) [2025-02-11 19:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:55:05' and `end` < '2025-02-11 19:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:55:18] Production.INFO: count ==2371 [2025-02-11 19:55:19] Production.ERROR: pbx CDR StartTime 2025-02-11 16:55:05 - End Time 2025-02-11 19:55:05 [2025-02-11 19:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454007', 'tblTempUsageDetail_20' ) start [2025-02-11 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454007', 'tblTempUsageDetail_20' ) end [2025-02-11 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454007', 'tblTempVendorCDR_20' ) start [2025-02-11 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454007', 'tblTempVendorCDR_20' ) end [2025-02-11 19:55:19] Production.INFO: ProcessCDR(1,14454007,1,1,2) [2025-02-11 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454007', 'tblTempUsageDetail_20' ) start [2025-02-11 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454007', 'tblTempUsageDetail_20' ) end [2025-02-11 19:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:55:22] Production.INFO: ==17543== Releasing lock... [2025-02-11 19:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:55:22] Production.INFO: 45.75 MB #Memory Used# [2025-02-11 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:56:05 [end_date_ymd] => 2025-02-11 19:56:05 [RateCDR] => 1 ) [2025-02-11 19:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:56:05' and `end` < '2025-02-11 19:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:56:18] Production.INFO: count ==2353 [2025-02-11 19:56:19] Production.ERROR: pbx CDR StartTime 2025-02-11 16:56:05 - End Time 2025-02-11 19:56:05 [2025-02-11 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454012', 'tblTempUsageDetail_20' ) start [2025-02-11 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454012', 'tblTempUsageDetail_20' ) end [2025-02-11 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454012', 'tblTempVendorCDR_20' ) start [2025-02-11 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454012', 'tblTempVendorCDR_20' ) end [2025-02-11 19:56:19] Production.INFO: ProcessCDR(1,14454012,1,1,2) [2025-02-11 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454012', 'tblTempUsageDetail_20' ) start [2025-02-11 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454012', 'tblTempUsageDetail_20' ) end [2025-02-11 19:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:56:22] Production.INFO: ==17618== Releasing lock... [2025-02-11 19:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:56:22] Production.INFO: 46 MB #Memory Used# [2025-02-11 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:57:05 [end_date_ymd] => 2025-02-11 19:57:05 [RateCDR] => 1 ) [2025-02-11 19:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:57:05' and `end` < '2025-02-11 19:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:57:18] Production.INFO: count ==2324 [2025-02-11 19:57:19] Production.ERROR: pbx CDR StartTime 2025-02-11 16:57:05 - End Time 2025-02-11 19:57:05 [2025-02-11 19:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454017', 'tblTempUsageDetail_20' ) start [2025-02-11 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454017', 'tblTempUsageDetail_20' ) end [2025-02-11 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454017', 'tblTempVendorCDR_20' ) start [2025-02-11 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454017', 'tblTempVendorCDR_20' ) end [2025-02-11 19:57:19] Production.INFO: ProcessCDR(1,14454017,1,1,2) [2025-02-11 19:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454017', 'tblTempUsageDetail_20' ) start [2025-02-11 19:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454017', 'tblTempUsageDetail_20' ) end [2025-02-11 19:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:57:24] Production.INFO: ==17692== Releasing lock... [2025-02-11 19:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:57:24] Production.INFO: 45.5 MB #Memory Used# [2025-02-11 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:58:05 [end_date_ymd] => 2025-02-11 19:58:05 [RateCDR] => 1 ) [2025-02-11 19:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:58:05' and `end` < '2025-02-11 19:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:58:19] Production.INFO: count ==2289 [2025-02-11 19:58:19] Production.ERROR: pbx CDR StartTime 2025-02-11 16:58:05 - End Time 2025-02-11 19:58:05 [2025-02-11 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454022', 'tblTempUsageDetail_20' ) start [2025-02-11 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454022', 'tblTempUsageDetail_20' ) end [2025-02-11 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454022', 'tblTempVendorCDR_20' ) start [2025-02-11 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454022', 'tblTempVendorCDR_20' ) end [2025-02-11 19:58:20] Production.INFO: ProcessCDR(1,14454022,1,1,2) [2025-02-11 19:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454022', 'tblTempUsageDetail_20' ) start [2025-02-11 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454022', 'tblTempUsageDetail_20' ) end [2025-02-11 19:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:58:23] Production.INFO: ==17765== Releasing lock... [2025-02-11 19:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:58:23] Production.INFO: 45.25 MB #Memory Used# [2025-02-11 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 16:59:05 [end_date_ymd] => 2025-02-11 19:59:05 [RateCDR] => 1 ) [2025-02-11 19:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 16:59:05' and `end` < '2025-02-11 19:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 19:59:18] Production.INFO: count ==2286 [2025-02-11 19:59:19] Production.ERROR: pbx CDR StartTime 2025-02-11 16:59:05 - End Time 2025-02-11 19:59:05 [2025-02-11 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454027', 'tblTempUsageDetail_20' ) start [2025-02-11 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454027', 'tblTempUsageDetail_20' ) end [2025-02-11 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454027', 'tblTempVendorCDR_20' ) start [2025-02-11 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454027', 'tblTempVendorCDR_20' ) end [2025-02-11 19:59:19] Production.INFO: ProcessCDR(1,14454027,1,1,2) [2025-02-11 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 19:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454027', 'tblTempUsageDetail_20' ) start [2025-02-11 19:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454027', 'tblTempUsageDetail_20' ) end [2025-02-11 19:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 19:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 19:59:24] Production.INFO: ==17835== Releasing lock... [2025-02-11 19:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 19:59:24] Production.INFO: 45.25 MB #Memory Used# [2025-02-11 20:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:00:07 [end_date_ymd] => 2025-02-11 20:00:07 [RateCDR] => 1 ) [2025-02-11 20:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:00:07' and `end` < '2025-02-11 20:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:00:20] Production.INFO: count ==2279 [2025-02-11 20:00:20] Production.ERROR: pbx CDR StartTime 2025-02-11 17:00:07 - End Time 2025-02-11 20:00:07 [2025-02-11 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454033', 'tblTempUsageDetail_20' ) start [2025-02-11 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454033', 'tblTempUsageDetail_20' ) end [2025-02-11 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454033', 'tblTempVendorCDR_20' ) start [2025-02-11 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454033', 'tblTempVendorCDR_20' ) end [2025-02-11 20:00:20] Production.INFO: ProcessCDR(1,14454033,1,1,2) [2025-02-11 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454033', 'tblTempUsageDetail_20' ) start [2025-02-11 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454033', 'tblTempUsageDetail_20' ) end [2025-02-11 20:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:00:24] Production.INFO: ==17909== Releasing lock... [2025-02-11 20:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:00:24] Production.INFO: 45.25 MB #Memory Used# [2025-02-11 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:01:05 [end_date_ymd] => 2025-02-11 20:01:05 [RateCDR] => 1 ) [2025-02-11 20:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:01:05' and `end` < '2025-02-11 20:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:01:18] Production.INFO: count ==2207 [2025-02-11 20:01:19] Production.ERROR: pbx CDR StartTime 2025-02-11 17:01:05 - End Time 2025-02-11 20:01:05 [2025-02-11 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454038', 'tblTempUsageDetail_20' ) start [2025-02-11 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454038', 'tblTempUsageDetail_20' ) end [2025-02-11 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454038', 'tblTempVendorCDR_20' ) start [2025-02-11 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454038', 'tblTempVendorCDR_20' ) end [2025-02-11 20:01:19] Production.INFO: ProcessCDR(1,14454038,1,1,2) [2025-02-11 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454038', 'tblTempUsageDetail_20' ) start [2025-02-11 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454038', 'tblTempUsageDetail_20' ) end [2025-02-11 20:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:01:22] Production.INFO: ==18032== Releasing lock... [2025-02-11 20:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:01:22] Production.INFO: 44.75 MB #Memory Used# [2025-02-11 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:02:05 [end_date_ymd] => 2025-02-11 20:02:05 [RateCDR] => 1 ) [2025-02-11 20:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:02:05' and `end` < '2025-02-11 20:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:02:18] Production.INFO: count ==2206 [2025-02-11 20:02:19] Production.ERROR: pbx CDR StartTime 2025-02-11 17:02:05 - End Time 2025-02-11 20:02:05 [2025-02-11 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454043', 'tblTempUsageDetail_20' ) start [2025-02-11 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454043', 'tblTempUsageDetail_20' ) end [2025-02-11 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454043', 'tblTempVendorCDR_20' ) start [2025-02-11 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454043', 'tblTempVendorCDR_20' ) end [2025-02-11 20:02:19] Production.INFO: ProcessCDR(1,14454043,1,1,2) [2025-02-11 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454043', 'tblTempUsageDetail_20' ) start [2025-02-11 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454043', 'tblTempUsageDetail_20' ) end [2025-02-11 20:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:02:23] Production.INFO: ==18104== Releasing lock... [2025-02-11 20:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:02:23] Production.INFO: 44.75 MB #Memory Used# [2025-02-11 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:03:05 [end_date_ymd] => 2025-02-11 20:03:05 [RateCDR] => 1 ) [2025-02-11 20:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:03:05' and `end` < '2025-02-11 20:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:03:18] Production.INFO: count ==2186 [2025-02-11 20:03:18] Production.ERROR: pbx CDR StartTime 2025-02-11 17:03:05 - End Time 2025-02-11 20:03:05 [2025-02-11 20:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454048', 'tblTempUsageDetail_20' ) start [2025-02-11 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454048', 'tblTempUsageDetail_20' ) end [2025-02-11 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454048', 'tblTempVendorCDR_20' ) start [2025-02-11 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454048', 'tblTempVendorCDR_20' ) end [2025-02-11 20:03:18] Production.INFO: ProcessCDR(1,14454048,1,1,2) [2025-02-11 20:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454048', 'tblTempUsageDetail_20' ) start [2025-02-11 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454048', 'tblTempUsageDetail_20' ) end [2025-02-11 20:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:03:22] Production.INFO: ==18178== Releasing lock... [2025-02-11 20:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:03:22] Production.INFO: 44.5 MB #Memory Used# [2025-02-11 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:04:05 [end_date_ymd] => 2025-02-11 20:04:05 [RateCDR] => 1 ) [2025-02-11 20:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:04:05' and `end` < '2025-02-11 20:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:04:18] Production.INFO: count ==2182 [2025-02-11 20:04:19] Production.ERROR: pbx CDR StartTime 2025-02-11 17:04:05 - End Time 2025-02-11 20:04:05 [2025-02-11 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454053', 'tblTempUsageDetail_20' ) start [2025-02-11 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454053', 'tblTempUsageDetail_20' ) end [2025-02-11 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454053', 'tblTempVendorCDR_20' ) start [2025-02-11 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454053', 'tblTempVendorCDR_20' ) end [2025-02-11 20:04:19] Production.INFO: ProcessCDR(1,14454053,1,1,2) [2025-02-11 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454053', 'tblTempUsageDetail_20' ) start [2025-02-11 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454053', 'tblTempUsageDetail_20' ) end [2025-02-11 20:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:04:22] Production.INFO: ==18252== Releasing lock... [2025-02-11 20:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:04:22] Production.INFO: 44.5 MB #Memory Used# [2025-02-11 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:05:05 [end_date_ymd] => 2025-02-11 20:05:05 [RateCDR] => 1 ) [2025-02-11 20:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:05:05' and `end` < '2025-02-11 20:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:05:18] Production.INFO: count ==2183 [2025-02-11 20:05:18] Production.ERROR: pbx CDR StartTime 2025-02-11 17:05:05 - End Time 2025-02-11 20:05:05 [2025-02-11 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454058', 'tblTempUsageDetail_20' ) start [2025-02-11 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454058', 'tblTempUsageDetail_20' ) end [2025-02-11 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454058', 'tblTempVendorCDR_20' ) start [2025-02-11 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454058', 'tblTempVendorCDR_20' ) end [2025-02-11 20:05:18] Production.INFO: ProcessCDR(1,14454058,1,1,2) [2025-02-11 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454058', 'tblTempUsageDetail_20' ) start [2025-02-11 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454058', 'tblTempUsageDetail_20' ) end [2025-02-11 20:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:05:23] Production.INFO: ==18325== Releasing lock... [2025-02-11 20:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:05:23] Production.INFO: 44.5 MB #Memory Used# [2025-02-11 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:06:05 [end_date_ymd] => 2025-02-11 20:06:05 [RateCDR] => 1 ) [2025-02-11 20:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:06:05' and `end` < '2025-02-11 20:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:06:18] Production.INFO: count ==2169 [2025-02-11 20:06:19] Production.ERROR: pbx CDR StartTime 2025-02-11 17:06:05 - End Time 2025-02-11 20:06:05 [2025-02-11 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454063', 'tblTempUsageDetail_20' ) start [2025-02-11 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454063', 'tblTempUsageDetail_20' ) end [2025-02-11 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454063', 'tblTempVendorCDR_20' ) start [2025-02-11 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454063', 'tblTempVendorCDR_20' ) end [2025-02-11 20:06:19] Production.INFO: ProcessCDR(1,14454063,1,1,2) [2025-02-11 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454063', 'tblTempUsageDetail_20' ) start [2025-02-11 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454063', 'tblTempUsageDetail_20' ) end [2025-02-11 20:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:06:22] Production.INFO: ==18394== Releasing lock... [2025-02-11 20:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:06:22] Production.INFO: 44.25 MB #Memory Used# [2025-02-11 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:07:05 [end_date_ymd] => 2025-02-11 20:07:05 [RateCDR] => 1 ) [2025-02-11 20:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:07:05' and `end` < '2025-02-11 20:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:07:18] Production.INFO: count ==2160 [2025-02-11 20:07:19] Production.ERROR: pbx CDR StartTime 2025-02-11 17:07:05 - End Time 2025-02-11 20:07:05 [2025-02-11 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454068', 'tblTempUsageDetail_20' ) start [2025-02-11 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454068', 'tblTempUsageDetail_20' ) end [2025-02-11 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454068', 'tblTempVendorCDR_20' ) start [2025-02-11 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454068', 'tblTempVendorCDR_20' ) end [2025-02-11 20:07:19] Production.INFO: ProcessCDR(1,14454068,1,1,2) [2025-02-11 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454068', 'tblTempUsageDetail_20' ) start [2025-02-11 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454068', 'tblTempUsageDetail_20' ) end [2025-02-11 20:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:07:22] Production.INFO: ==18511== Releasing lock... [2025-02-11 20:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:07:22] Production.INFO: 44.25 MB #Memory Used# [2025-02-11 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:08:05 [end_date_ymd] => 2025-02-11 20:08:05 [RateCDR] => 1 ) [2025-02-11 20:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:08:05' and `end` < '2025-02-11 20:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:08:19] Production.INFO: count ==2162 [2025-02-11 20:08:19] Production.ERROR: pbx CDR StartTime 2025-02-11 17:08:05 - End Time 2025-02-11 20:08:05 [2025-02-11 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454073', 'tblTempUsageDetail_20' ) start [2025-02-11 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454073', 'tblTempUsageDetail_20' ) end [2025-02-11 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454073', 'tblTempVendorCDR_20' ) start [2025-02-11 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454073', 'tblTempVendorCDR_20' ) end [2025-02-11 20:08:19] Production.INFO: ProcessCDR(1,14454073,1,1,2) [2025-02-11 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454073', 'tblTempUsageDetail_20' ) start [2025-02-11 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454073', 'tblTempUsageDetail_20' ) end [2025-02-11 20:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:08:23] Production.INFO: ==18582== Releasing lock... [2025-02-11 20:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:08:23] Production.INFO: 44.25 MB #Memory Used# [2025-02-11 20:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:09:04 [end_date_ymd] => 2025-02-11 20:09:04 [RateCDR] => 1 ) [2025-02-11 20:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:09:04' and `end` < '2025-02-11 20:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:09:18] Production.INFO: count ==2140 [2025-02-11 20:09:18] Production.ERROR: pbx CDR StartTime 2025-02-11 17:09:04 - End Time 2025-02-11 20:09:04 [2025-02-11 20:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454078', 'tblTempUsageDetail_20' ) start [2025-02-11 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454078', 'tblTempUsageDetail_20' ) end [2025-02-11 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454078', 'tblTempVendorCDR_20' ) start [2025-02-11 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454078', 'tblTempVendorCDR_20' ) end [2025-02-11 20:09:18] Production.INFO: ProcessCDR(1,14454078,1,1,2) [2025-02-11 20:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454078', 'tblTempUsageDetail_20' ) start [2025-02-11 20:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454078', 'tblTempUsageDetail_20' ) end [2025-02-11 20:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:09:21] Production.INFO: ==18654== Releasing lock... [2025-02-11 20:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:09:21] Production.INFO: 44 MB #Memory Used# [2025-02-11 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:10:06 [end_date_ymd] => 2025-02-11 20:10:06 [RateCDR] => 1 ) [2025-02-11 20:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:10:06' and `end` < '2025-02-11 20:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:10:19] Production.INFO: count ==2119 [2025-02-11 20:10:19] Production.ERROR: pbx CDR StartTime 2025-02-11 17:10:06 - End Time 2025-02-11 20:10:06 [2025-02-11 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454084', 'tblTempUsageDetail_20' ) start [2025-02-11 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454084', 'tblTempUsageDetail_20' ) end [2025-02-11 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454084', 'tblTempVendorCDR_20' ) start [2025-02-11 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454084', 'tblTempVendorCDR_20' ) end [2025-02-11 20:10:20] Production.INFO: ProcessCDR(1,14454084,1,1,2) [2025-02-11 20:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454084', 'tblTempUsageDetail_20' ) start [2025-02-11 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454084', 'tblTempUsageDetail_20' ) end [2025-02-11 20:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:10:23] Production.INFO: ==18731== Releasing lock... [2025-02-11 20:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:10:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-11 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:11:05 [end_date_ymd] => 2025-02-11 20:11:05 [RateCDR] => 1 ) [2025-02-11 20:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:11:05' and `end` < '2025-02-11 20:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:11:18] Production.INFO: count ==2075 [2025-02-11 20:11:19] Production.ERROR: pbx CDR StartTime 2025-02-11 17:11:05 - End Time 2025-02-11 20:11:05 [2025-02-11 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454089', 'tblTempUsageDetail_20' ) start [2025-02-11 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454089', 'tblTempUsageDetail_20' ) end [2025-02-11 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454089', 'tblTempVendorCDR_20' ) start [2025-02-11 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454089', 'tblTempVendorCDR_20' ) end [2025-02-11 20:11:19] Production.INFO: ProcessCDR(1,14454089,1,1,2) [2025-02-11 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454089', 'tblTempUsageDetail_20' ) start [2025-02-11 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454089', 'tblTempUsageDetail_20' ) end [2025-02-11 20:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:11:22] Production.INFO: ==18813== Releasing lock... [2025-02-11 20:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:11:22] Production.INFO: 43.5 MB #Memory Used# [2025-02-11 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:12:05 [end_date_ymd] => 2025-02-11 20:12:05 [RateCDR] => 1 ) [2025-02-11 20:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:12:05' and `end` < '2025-02-11 20:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:12:18] Production.INFO: count ==2049 [2025-02-11 20:12:18] Production.ERROR: pbx CDR StartTime 2025-02-11 17:12:05 - End Time 2025-02-11 20:12:05 [2025-02-11 20:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454094', 'tblTempUsageDetail_20' ) start [2025-02-11 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454094', 'tblTempUsageDetail_20' ) end [2025-02-11 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454094', 'tblTempVendorCDR_20' ) start [2025-02-11 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454094', 'tblTempVendorCDR_20' ) end [2025-02-11 20:12:19] Production.INFO: ProcessCDR(1,14454094,1,1,2) [2025-02-11 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454094', 'tblTempUsageDetail_20' ) start [2025-02-11 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454094', 'tblTempUsageDetail_20' ) end [2025-02-11 20:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:12:22] Production.INFO: ==18885== Releasing lock... [2025-02-11 20:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:12:22] Production.INFO: 43.5 MB #Memory Used# [2025-02-11 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:13:05 [end_date_ymd] => 2025-02-11 20:13:05 [RateCDR] => 1 ) [2025-02-11 20:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:13:05' and `end` < '2025-02-11 20:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:13:18] Production.INFO: count ==2050 [2025-02-11 20:13:19] Production.ERROR: pbx CDR StartTime 2025-02-11 17:13:05 - End Time 2025-02-11 20:13:05 [2025-02-11 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454099', 'tblTempUsageDetail_20' ) start [2025-02-11 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454099', 'tblTempUsageDetail_20' ) end [2025-02-11 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454099', 'tblTempVendorCDR_20' ) start [2025-02-11 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454099', 'tblTempVendorCDR_20' ) end [2025-02-11 20:13:19] Production.INFO: ProcessCDR(1,14454099,1,1,2) [2025-02-11 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454099', 'tblTempUsageDetail_20' ) start [2025-02-11 20:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454099', 'tblTempUsageDetail_20' ) end [2025-02-11 20:13:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:13:24] Production.INFO: ==18956== Releasing lock... [2025-02-11 20:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:13:24] Production.INFO: 43.25 MB #Memory Used# [2025-02-11 20:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:14:06 [end_date_ymd] => 2025-02-11 20:14:06 [RateCDR] => 1 ) [2025-02-11 20:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:14:06' and `end` < '2025-02-11 20:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:14:19] Production.INFO: count ==2028 [2025-02-11 20:14:19] Production.ERROR: pbx CDR StartTime 2025-02-11 17:14:06 - End Time 2025-02-11 20:14:06 [2025-02-11 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454104', 'tblTempUsageDetail_20' ) start [2025-02-11 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454104', 'tblTempUsageDetail_20' ) end [2025-02-11 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454104', 'tblTempVendorCDR_20' ) start [2025-02-11 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454104', 'tblTempVendorCDR_20' ) end [2025-02-11 20:14:19] Production.INFO: ProcessCDR(1,14454104,1,1,2) [2025-02-11 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454104', 'tblTempUsageDetail_20' ) start [2025-02-11 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454104', 'tblTempUsageDetail_20' ) end [2025-02-11 20:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:14:24] Production.INFO: ==19028== Releasing lock... [2025-02-11 20:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:14:24] Production.INFO: 43 MB #Memory Used# [2025-02-11 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:15:05 [end_date_ymd] => 2025-02-11 20:15:05 [RateCDR] => 1 ) [2025-02-11 20:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:15:05' and `end` < '2025-02-11 20:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:15:18] Production.INFO: count ==2010 [2025-02-11 20:15:18] Production.ERROR: pbx CDR StartTime 2025-02-11 17:15:05 - End Time 2025-02-11 20:15:05 [2025-02-11 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454109', 'tblTempUsageDetail_20' ) start [2025-02-11 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454109', 'tblTempUsageDetail_20' ) end [2025-02-11 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454109', 'tblTempVendorCDR_20' ) start [2025-02-11 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454109', 'tblTempVendorCDR_20' ) end [2025-02-11 20:15:18] Production.INFO: ProcessCDR(1,14454109,1,1,2) [2025-02-11 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454109', 'tblTempUsageDetail_20' ) start [2025-02-11 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454109', 'tblTempUsageDetail_20' ) end [2025-02-11 20:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:15:22] Production.INFO: ==19106== Releasing lock... [2025-02-11 20:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:15:22] Production.INFO: 43 MB #Memory Used# [2025-02-11 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:16:05 [end_date_ymd] => 2025-02-11 20:16:05 [RateCDR] => 1 ) [2025-02-11 20:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:16:05' and `end` < '2025-02-11 20:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:16:18] Production.INFO: count ==2007 [2025-02-11 20:16:19] Production.ERROR: pbx CDR StartTime 2025-02-11 17:16:05 - End Time 2025-02-11 20:16:05 [2025-02-11 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454114', 'tblTempUsageDetail_20' ) start [2025-02-11 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454114', 'tblTempUsageDetail_20' ) end [2025-02-11 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454114', 'tblTempVendorCDR_20' ) start [2025-02-11 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454114', 'tblTempVendorCDR_20' ) end [2025-02-11 20:16:19] Production.INFO: ProcessCDR(1,14454114,1,1,2) [2025-02-11 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454114', 'tblTempUsageDetail_20' ) start [2025-02-11 20:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454114', 'tblTempUsageDetail_20' ) end [2025-02-11 20:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:16:24] Production.INFO: ==19182== Releasing lock... [2025-02-11 20:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:16:24] Production.INFO: 42.75 MB #Memory Used# [2025-02-11 20:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:17:04 [end_date_ymd] => 2025-02-11 20:17:04 [RateCDR] => 1 ) [2025-02-11 20:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:17:04' and `end` < '2025-02-11 20:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:17:18] Production.INFO: count ==1987 [2025-02-11 20:17:18] Production.ERROR: pbx CDR StartTime 2025-02-11 17:17:04 - End Time 2025-02-11 20:17:04 [2025-02-11 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454119', 'tblTempUsageDetail_20' ) start [2025-02-11 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454119', 'tblTempUsageDetail_20' ) end [2025-02-11 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454119', 'tblTempVendorCDR_20' ) start [2025-02-11 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454119', 'tblTempVendorCDR_20' ) end [2025-02-11 20:17:19] Production.INFO: ProcessCDR(1,14454119,1,1,2) [2025-02-11 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454119', 'tblTempUsageDetail_20' ) start [2025-02-11 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454119', 'tblTempUsageDetail_20' ) end [2025-02-11 20:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:17:22] Production.INFO: ==19253== Releasing lock... [2025-02-11 20:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:17:22] Production.INFO: 42.75 MB #Memory Used# [2025-02-11 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:18:05 [end_date_ymd] => 2025-02-11 20:18:05 [RateCDR] => 1 ) [2025-02-11 20:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:18:05' and `end` < '2025-02-11 20:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:18:18] Production.INFO: count ==1983 [2025-02-11 20:18:18] Production.ERROR: pbx CDR StartTime 2025-02-11 17:18:05 - End Time 2025-02-11 20:18:05 [2025-02-11 20:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454124', 'tblTempUsageDetail_20' ) start [2025-02-11 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454124', 'tblTempUsageDetail_20' ) end [2025-02-11 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454124', 'tblTempVendorCDR_20' ) start [2025-02-11 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454124', 'tblTempVendorCDR_20' ) end [2025-02-11 20:18:18] Production.INFO: ProcessCDR(1,14454124,1,1,2) [2025-02-11 20:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454124', 'tblTempUsageDetail_20' ) start [2025-02-11 20:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454124', 'tblTempUsageDetail_20' ) end [2025-02-11 20:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:18:22] Production.INFO: ==19335== Releasing lock... [2025-02-11 20:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:18:22] Production.INFO: 42.75 MB #Memory Used# [2025-02-11 20:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:19:06 [end_date_ymd] => 2025-02-11 20:19:06 [RateCDR] => 1 ) [2025-02-11 20:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:19:06' and `end` < '2025-02-11 20:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:19:19] Production.INFO: count ==1967 [2025-02-11 20:19:19] Production.ERROR: pbx CDR StartTime 2025-02-11 17:19:06 - End Time 2025-02-11 20:19:06 [2025-02-11 20:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454129', 'tblTempUsageDetail_20' ) start [2025-02-11 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454129', 'tblTempUsageDetail_20' ) end [2025-02-11 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454129', 'tblTempVendorCDR_20' ) start [2025-02-11 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454129', 'tblTempVendorCDR_20' ) end [2025-02-11 20:19:19] Production.INFO: ProcessCDR(1,14454129,1,1,2) [2025-02-11 20:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454129', 'tblTempUsageDetail_20' ) start [2025-02-11 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454129', 'tblTempUsageDetail_20' ) end [2025-02-11 20:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:19:22] Production.INFO: ==19406== Releasing lock... [2025-02-11 20:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:19:22] Production.INFO: 42.5 MB #Memory Used# [2025-02-11 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:20:06 [end_date_ymd] => 2025-02-11 20:20:06 [RateCDR] => 1 ) [2025-02-11 20:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:20:06' and `end` < '2025-02-11 20:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:20:19] Production.INFO: count ==1968 [2025-02-11 20:20:20] Production.ERROR: pbx CDR StartTime 2025-02-11 17:20:06 - End Time 2025-02-11 20:20:06 [2025-02-11 20:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454134', 'tblTempUsageDetail_20' ) start [2025-02-11 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454134', 'tblTempUsageDetail_20' ) end [2025-02-11 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454134', 'tblTempVendorCDR_20' ) start [2025-02-11 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454134', 'tblTempVendorCDR_20' ) end [2025-02-11 20:20:20] Production.INFO: ProcessCDR(1,14454134,1,1,2) [2025-02-11 20:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454134', 'tblTempUsageDetail_20' ) start [2025-02-11 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454134', 'tblTempUsageDetail_20' ) end [2025-02-11 20:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:20:23] Production.INFO: ==19481== Releasing lock... [2025-02-11 20:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:20:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-11 20:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:21:06 [end_date_ymd] => 2025-02-11 20:21:06 [RateCDR] => 1 ) [2025-02-11 20:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:21:06' and `end` < '2025-02-11 20:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:21:19] Production.INFO: count ==1923 [2025-02-11 20:21:19] Production.ERROR: pbx CDR StartTime 2025-02-11 17:21:06 - End Time 2025-02-11 20:21:06 [2025-02-11 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454140', 'tblTempUsageDetail_20' ) start [2025-02-11 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454140', 'tblTempUsageDetail_20' ) end [2025-02-11 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454140', 'tblTempVendorCDR_20' ) start [2025-02-11 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454140', 'tblTempVendorCDR_20' ) end [2025-02-11 20:21:19] Production.INFO: ProcessCDR(1,14454140,1,1,2) [2025-02-11 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454140', 'tblTempUsageDetail_20' ) start [2025-02-11 20:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454140', 'tblTempUsageDetail_20' ) end [2025-02-11 20:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:21:24] Production.INFO: ==19557== Releasing lock... [2025-02-11 20:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:21:24] Production.INFO: 42.25 MB #Memory Used# [2025-02-11 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:22:05 [end_date_ymd] => 2025-02-11 20:22:05 [RateCDR] => 1 ) [2025-02-11 20:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:22:05' and `end` < '2025-02-11 20:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:22:18] Production.INFO: count ==1919 [2025-02-11 20:22:19] Production.ERROR: pbx CDR StartTime 2025-02-11 17:22:05 - End Time 2025-02-11 20:22:05 [2025-02-11 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454145', 'tblTempUsageDetail_20' ) start [2025-02-11 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454145', 'tblTempUsageDetail_20' ) end [2025-02-11 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454145', 'tblTempVendorCDR_20' ) start [2025-02-11 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454145', 'tblTempVendorCDR_20' ) end [2025-02-11 20:22:19] Production.INFO: ProcessCDR(1,14454145,1,1,2) [2025-02-11 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454145', 'tblTempUsageDetail_20' ) start [2025-02-11 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454145', 'tblTempUsageDetail_20' ) end [2025-02-11 20:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:22:22] Production.INFO: ==19657== Releasing lock... [2025-02-11 20:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:22:22] Production.INFO: 42.25 MB #Memory Used# [2025-02-11 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:23:05 [end_date_ymd] => 2025-02-11 20:23:05 [RateCDR] => 1 ) [2025-02-11 20:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:23:05' and `end` < '2025-02-11 20:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:23:19] Production.INFO: count ==1917 [2025-02-11 20:23:19] Production.ERROR: pbx CDR StartTime 2025-02-11 17:23:05 - End Time 2025-02-11 20:23:05 [2025-02-11 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454150', 'tblTempUsageDetail_20' ) start [2025-02-11 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454150', 'tblTempUsageDetail_20' ) end [2025-02-11 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454150', 'tblTempVendorCDR_20' ) start [2025-02-11 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454150', 'tblTempVendorCDR_20' ) end [2025-02-11 20:23:19] Production.INFO: ProcessCDR(1,14454150,1,1,2) [2025-02-11 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454150', 'tblTempUsageDetail_20' ) start [2025-02-11 20:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454150', 'tblTempUsageDetail_20' ) end [2025-02-11 20:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:23:24] Production.INFO: ==19798== Releasing lock... [2025-02-11 20:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:23:24] Production.INFO: 42.5 MB #Memory Used# [2025-02-11 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:24:05 [end_date_ymd] => 2025-02-11 20:24:05 [RateCDR] => 1 ) [2025-02-11 20:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:24:05' and `end` < '2025-02-11 20:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:24:18] Production.INFO: count ==1905 [2025-02-11 20:24:18] Production.ERROR: pbx CDR StartTime 2025-02-11 17:24:05 - End Time 2025-02-11 20:24:05 [2025-02-11 20:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454155', 'tblTempUsageDetail_20' ) start [2025-02-11 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454155', 'tblTempUsageDetail_20' ) end [2025-02-11 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454155', 'tblTempVendorCDR_20' ) start [2025-02-11 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454155', 'tblTempVendorCDR_20' ) end [2025-02-11 20:24:18] Production.INFO: ProcessCDR(1,14454155,1,1,2) [2025-02-11 20:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454155', 'tblTempUsageDetail_20' ) start [2025-02-11 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454155', 'tblTempUsageDetail_20' ) end [2025-02-11 20:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:24:23] Production.INFO: ==19893== Releasing lock... [2025-02-11 20:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:24:23] Production.INFO: 42.25 MB #Memory Used# [2025-02-11 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:25:06 [end_date_ymd] => 2025-02-11 20:25:06 [RateCDR] => 1 ) [2025-02-11 20:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:25:06' and `end` < '2025-02-11 20:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:25:19] Production.INFO: count ==1896 [2025-02-11 20:25:20] Production.ERROR: pbx CDR StartTime 2025-02-11 17:25:06 - End Time 2025-02-11 20:25:06 [2025-02-11 20:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454160', 'tblTempUsageDetail_20' ) start [2025-02-11 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454160', 'tblTempUsageDetail_20' ) end [2025-02-11 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454160', 'tblTempVendorCDR_20' ) start [2025-02-11 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454160', 'tblTempVendorCDR_20' ) end [2025-02-11 20:25:20] Production.INFO: ProcessCDR(1,14454160,1,1,2) [2025-02-11 20:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454160', 'tblTempUsageDetail_20' ) start [2025-02-11 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454160', 'tblTempUsageDetail_20' ) end [2025-02-11 20:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:25:23] Production.INFO: ==19970== Releasing lock... [2025-02-11 20:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:25:23] Production.INFO: 42 MB #Memory Used# [2025-02-11 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:26:05 [end_date_ymd] => 2025-02-11 20:26:05 [RateCDR] => 1 ) [2025-02-11 20:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:26:05' and `end` < '2025-02-11 20:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:26:18] Production.INFO: count ==1885 [2025-02-11 20:26:19] Production.ERROR: pbx CDR StartTime 2025-02-11 17:26:05 - End Time 2025-02-11 20:26:05 [2025-02-11 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454165', 'tblTempUsageDetail_20' ) start [2025-02-11 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454165', 'tblTempUsageDetail_20' ) end [2025-02-11 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454165', 'tblTempVendorCDR_20' ) start [2025-02-11 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454165', 'tblTempVendorCDR_20' ) end [2025-02-11 20:26:19] Production.INFO: ProcessCDR(1,14454165,1,1,2) [2025-02-11 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454165', 'tblTempUsageDetail_20' ) start [2025-02-11 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454165', 'tblTempUsageDetail_20' ) end [2025-02-11 20:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:26:22] Production.INFO: ==20045== Releasing lock... [2025-02-11 20:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:26:22] Production.INFO: 42.25 MB #Memory Used# [2025-02-11 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:27:05 [end_date_ymd] => 2025-02-11 20:27:05 [RateCDR] => 1 ) [2025-02-11 20:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:27:05' and `end` < '2025-02-11 20:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:27:18] Production.INFO: count ==1862 [2025-02-11 20:27:19] Production.ERROR: pbx CDR StartTime 2025-02-11 17:27:05 - End Time 2025-02-11 20:27:05 [2025-02-11 20:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454170', 'tblTempUsageDetail_20' ) start [2025-02-11 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454170', 'tblTempUsageDetail_20' ) end [2025-02-11 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454170', 'tblTempVendorCDR_20' ) start [2025-02-11 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454170', 'tblTempVendorCDR_20' ) end [2025-02-11 20:27:19] Production.INFO: ProcessCDR(1,14454170,1,1,2) [2025-02-11 20:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454170', 'tblTempUsageDetail_20' ) start [2025-02-11 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454170', 'tblTempUsageDetail_20' ) end [2025-02-11 20:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:27:22] Production.INFO: ==20116== Releasing lock... [2025-02-11 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:27:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-11 20:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:28:04 [end_date_ymd] => 2025-02-11 20:28:04 [RateCDR] => 1 ) [2025-02-11 20:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:28:04' and `end` < '2025-02-11 20:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:28:18] Production.INFO: count ==1853 [2025-02-11 20:28:19] Production.ERROR: pbx CDR StartTime 2025-02-11 17:28:04 - End Time 2025-02-11 20:28:04 [2025-02-11 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454175', 'tblTempUsageDetail_20' ) start [2025-02-11 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454175', 'tblTempUsageDetail_20' ) end [2025-02-11 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454175', 'tblTempVendorCDR_20' ) start [2025-02-11 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454175', 'tblTempVendorCDR_20' ) end [2025-02-11 20:28:19] Production.INFO: ProcessCDR(1,14454175,1,1,2) [2025-02-11 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454175', 'tblTempUsageDetail_20' ) start [2025-02-11 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454175', 'tblTempUsageDetail_20' ) end [2025-02-11 20:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:28:23] Production.INFO: ==20186== Releasing lock... [2025-02-11 20:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:28:23] Production.INFO: 42 MB #Memory Used# [2025-02-11 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:29:05 [end_date_ymd] => 2025-02-11 20:29:05 [RateCDR] => 1 ) [2025-02-11 20:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:29:05' and `end` < '2025-02-11 20:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:29:18] Production.INFO: count ==1843 [2025-02-11 20:29:19] Production.ERROR: pbx CDR StartTime 2025-02-11 17:29:05 - End Time 2025-02-11 20:29:05 [2025-02-11 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454180', 'tblTempUsageDetail_20' ) start [2025-02-11 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454180', 'tblTempUsageDetail_20' ) end [2025-02-11 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454180', 'tblTempVendorCDR_20' ) start [2025-02-11 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454180', 'tblTempVendorCDR_20' ) end [2025-02-11 20:29:19] Production.INFO: ProcessCDR(1,14454180,1,1,2) [2025-02-11 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454180', 'tblTempUsageDetail_20' ) start [2025-02-11 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454180', 'tblTempUsageDetail_20' ) end [2025-02-11 20:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:29:22] Production.INFO: ==20258== Releasing lock... [2025-02-11 20:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:29:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-11 20:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:30:05 [end_date_ymd] => 2025-02-11 20:30:05 [RateCDR] => 1 ) [2025-02-11 20:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:30:05' and `end` < '2025-02-11 20:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:30:19] Production.INFO: count ==1827 [2025-02-11 20:30:19] Production.ERROR: pbx CDR StartTime 2025-02-11 17:30:05 - End Time 2025-02-11 20:30:05 [2025-02-11 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454186', 'tblTempUsageDetail_20' ) start [2025-02-11 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454186', 'tblTempUsageDetail_20' ) end [2025-02-11 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454186', 'tblTempVendorCDR_20' ) start [2025-02-11 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454186', 'tblTempVendorCDR_20' ) end [2025-02-11 20:30:19] Production.INFO: ProcessCDR(1,14454186,1,1,2) [2025-02-11 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454186', 'tblTempUsageDetail_20' ) start [2025-02-11 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454186', 'tblTempUsageDetail_20' ) end [2025-02-11 20:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:30:22] Production.INFO: ==20334== Releasing lock... [2025-02-11 20:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:30:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-11 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:31:05 [end_date_ymd] => 2025-02-11 20:31:05 [RateCDR] => 1 ) [2025-02-11 20:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:31:05' and `end` < '2025-02-11 20:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:31:18] Production.INFO: count ==1818 [2025-02-11 20:31:19] Production.ERROR: pbx CDR StartTime 2025-02-11 17:31:05 - End Time 2025-02-11 20:31:05 [2025-02-11 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454191', 'tblTempUsageDetail_20' ) start [2025-02-11 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454191', 'tblTempUsageDetail_20' ) end [2025-02-11 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454191', 'tblTempVendorCDR_20' ) start [2025-02-11 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454191', 'tblTempVendorCDR_20' ) end [2025-02-11 20:31:19] Production.INFO: ProcessCDR(1,14454191,1,1,2) [2025-02-11 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454191', 'tblTempUsageDetail_20' ) start [2025-02-11 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454191', 'tblTempUsageDetail_20' ) end [2025-02-11 20:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:31:22] Production.INFO: ==20406== Releasing lock... [2025-02-11 20:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:31:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-11 20:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:32:06 [end_date_ymd] => 2025-02-11 20:32:06 [RateCDR] => 1 ) [2025-02-11 20:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:32:06' and `end` < '2025-02-11 20:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:32:19] Production.INFO: count ==1829 [2025-02-11 20:32:19] Production.ERROR: pbx CDR StartTime 2025-02-11 17:32:06 - End Time 2025-02-11 20:32:06 [2025-02-11 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454196', 'tblTempUsageDetail_20' ) start [2025-02-11 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454196', 'tblTempUsageDetail_20' ) end [2025-02-11 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454196', 'tblTempVendorCDR_20' ) start [2025-02-11 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454196', 'tblTempVendorCDR_20' ) end [2025-02-11 20:32:19] Production.INFO: ProcessCDR(1,14454196,1,1,2) [2025-02-11 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454196', 'tblTempUsageDetail_20' ) start [2025-02-11 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454196', 'tblTempUsageDetail_20' ) end [2025-02-11 20:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:32:23] Production.INFO: ==20480== Releasing lock... [2025-02-11 20:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:32:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-11 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:33:05 [end_date_ymd] => 2025-02-11 20:33:05 [RateCDR] => 1 ) [2025-02-11 20:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:33:05' and `end` < '2025-02-11 20:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:33:18] Production.INFO: count ==1821 [2025-02-11 20:33:19] Production.ERROR: pbx CDR StartTime 2025-02-11 17:33:05 - End Time 2025-02-11 20:33:05 [2025-02-11 20:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454201', 'tblTempUsageDetail_20' ) start [2025-02-11 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454201', 'tblTempUsageDetail_20' ) end [2025-02-11 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454201', 'tblTempVendorCDR_20' ) start [2025-02-11 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454201', 'tblTempVendorCDR_20' ) end [2025-02-11 20:33:19] Production.INFO: ProcessCDR(1,14454201,1,1,2) [2025-02-11 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454201', 'tblTempUsageDetail_20' ) start [2025-02-11 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454201', 'tblTempUsageDetail_20' ) end [2025-02-11 20:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:33:22] Production.INFO: ==20548== Releasing lock... [2025-02-11 20:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:33:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-11 20:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:34:06 [end_date_ymd] => 2025-02-11 20:34:06 [RateCDR] => 1 ) [2025-02-11 20:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:34:06' and `end` < '2025-02-11 20:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:34:19] Production.INFO: count ==1815 [2025-02-11 20:34:20] Production.ERROR: pbx CDR StartTime 2025-02-11 17:34:06 - End Time 2025-02-11 20:34:06 [2025-02-11 20:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454206', 'tblTempUsageDetail_20' ) start [2025-02-11 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454206', 'tblTempUsageDetail_20' ) end [2025-02-11 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454206', 'tblTempVendorCDR_20' ) start [2025-02-11 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454206', 'tblTempVendorCDR_20' ) end [2025-02-11 20:34:20] Production.INFO: ProcessCDR(1,14454206,1,1,2) [2025-02-11 20:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454206', 'tblTempUsageDetail_20' ) start [2025-02-11 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454206', 'tblTempUsageDetail_20' ) end [2025-02-11 20:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:34:23] Production.INFO: ==20624== Releasing lock... [2025-02-11 20:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:34:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-11 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:35:05 [end_date_ymd] => 2025-02-11 20:35:05 [RateCDR] => 1 ) [2025-02-11 20:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:35:05' and `end` < '2025-02-11 20:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:35:18] Production.INFO: count ==1808 [2025-02-11 20:35:19] Production.ERROR: pbx CDR StartTime 2025-02-11 17:35:05 - End Time 2025-02-11 20:35:05 [2025-02-11 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454211', 'tblTempUsageDetail_20' ) start [2025-02-11 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454211', 'tblTempUsageDetail_20' ) end [2025-02-11 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454211', 'tblTempVendorCDR_20' ) start [2025-02-11 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454211', 'tblTempVendorCDR_20' ) end [2025-02-11 20:35:19] Production.INFO: ProcessCDR(1,14454211,1,1,2) [2025-02-11 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454211', 'tblTempUsageDetail_20' ) start [2025-02-11 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454211', 'tblTempUsageDetail_20' ) end [2025-02-11 20:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:35:22] Production.INFO: ==20696== Releasing lock... [2025-02-11 20:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:35:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-11 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:36:05 [end_date_ymd] => 2025-02-11 20:36:05 [RateCDR] => 1 ) [2025-02-11 20:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:36:05' and `end` < '2025-02-11 20:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:36:19] Production.INFO: count ==1806 [2025-02-11 20:36:19] Production.ERROR: pbx CDR StartTime 2025-02-11 17:36:05 - End Time 2025-02-11 20:36:05 [2025-02-11 20:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454216', 'tblTempUsageDetail_20' ) start [2025-02-11 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454216', 'tblTempUsageDetail_20' ) end [2025-02-11 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454216', 'tblTempVendorCDR_20' ) start [2025-02-11 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454216', 'tblTempVendorCDR_20' ) end [2025-02-11 20:36:19] Production.INFO: ProcessCDR(1,14454216,1,1,2) [2025-02-11 20:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454216', 'tblTempUsageDetail_20' ) start [2025-02-11 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454216', 'tblTempUsageDetail_20' ) end [2025-02-11 20:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:36:22] Production.INFO: ==20765== Releasing lock... [2025-02-11 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:36:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-11 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:37:05 [end_date_ymd] => 2025-02-11 20:37:05 [RateCDR] => 1 ) [2025-02-11 20:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:37:05' and `end` < '2025-02-11 20:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:37:18] Production.INFO: count ==1792 [2025-02-11 20:37:18] Production.ERROR: pbx CDR StartTime 2025-02-11 17:37:05 - End Time 2025-02-11 20:37:05 [2025-02-11 20:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454221', 'tblTempUsageDetail_20' ) start [2025-02-11 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454221', 'tblTempUsageDetail_20' ) end [2025-02-11 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454221', 'tblTempVendorCDR_20' ) start [2025-02-11 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454221', 'tblTempVendorCDR_20' ) end [2025-02-11 20:37:18] Production.INFO: ProcessCDR(1,14454221,1,1,2) [2025-02-11 20:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454221', 'tblTempUsageDetail_20' ) start [2025-02-11 20:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454221', 'tblTempUsageDetail_20' ) end [2025-02-11 20:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:37:21] Production.INFO: ==20840== Releasing lock... [2025-02-11 20:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:37:21] Production.INFO: 41.5 MB #Memory Used# [2025-02-11 20:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:38:06 [end_date_ymd] => 2025-02-11 20:38:06 [RateCDR] => 1 ) [2025-02-11 20:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:38:06' and `end` < '2025-02-11 20:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:38:19] Production.INFO: count ==1790 [2025-02-11 20:38:19] Production.ERROR: pbx CDR StartTime 2025-02-11 17:38:06 - End Time 2025-02-11 20:38:06 [2025-02-11 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454226', 'tblTempUsageDetail_20' ) start [2025-02-11 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454226', 'tblTempUsageDetail_20' ) end [2025-02-11 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454226', 'tblTempVendorCDR_20' ) start [2025-02-11 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454226', 'tblTempVendorCDR_20' ) end [2025-02-11 20:38:19] Production.INFO: ProcessCDR(1,14454226,1,1,2) [2025-02-11 20:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454226', 'tblTempUsageDetail_20' ) start [2025-02-11 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454226', 'tblTempUsageDetail_20' ) end [2025-02-11 20:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:38:22] Production.INFO: ==20954== Releasing lock... [2025-02-11 20:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:38:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-11 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:39:05 [end_date_ymd] => 2025-02-11 20:39:05 [RateCDR] => 1 ) [2025-02-11 20:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:39:05' and `end` < '2025-02-11 20:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:39:18] Production.INFO: count ==1789 [2025-02-11 20:39:19] Production.ERROR: pbx CDR StartTime 2025-02-11 17:39:05 - End Time 2025-02-11 20:39:05 [2025-02-11 20:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454231', 'tblTempUsageDetail_20' ) start [2025-02-11 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454231', 'tblTempUsageDetail_20' ) end [2025-02-11 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454231', 'tblTempVendorCDR_20' ) start [2025-02-11 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454231', 'tblTempVendorCDR_20' ) end [2025-02-11 20:39:19] Production.INFO: ProcessCDR(1,14454231,1,1,2) [2025-02-11 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454231', 'tblTempUsageDetail_20' ) start [2025-02-11 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454231', 'tblTempUsageDetail_20' ) end [2025-02-11 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:39:22] Production.INFO: ==21026== Releasing lock... [2025-02-11 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:39:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-11 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:40:06 [end_date_ymd] => 2025-02-11 20:40:06 [RateCDR] => 1 ) [2025-02-11 20:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:40:06' and `end` < '2025-02-11 20:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:40:19] Production.INFO: count ==1787 [2025-02-11 20:40:19] Production.ERROR: pbx CDR StartTime 2025-02-11 17:40:06 - End Time 2025-02-11 20:40:06 [2025-02-11 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454237', 'tblTempUsageDetail_20' ) start [2025-02-11 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454237', 'tblTempUsageDetail_20' ) end [2025-02-11 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454237', 'tblTempVendorCDR_20' ) start [2025-02-11 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454237', 'tblTempVendorCDR_20' ) end [2025-02-11 20:40:19] Production.INFO: ProcessCDR(1,14454237,1,1,2) [2025-02-11 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454237', 'tblTempUsageDetail_20' ) start [2025-02-11 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454237', 'tblTempUsageDetail_20' ) end [2025-02-11 20:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:40:23] Production.INFO: ==21100== Releasing lock... [2025-02-11 20:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:40:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-11 20:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:41:04 [end_date_ymd] => 2025-02-11 20:41:04 [RateCDR] => 1 ) [2025-02-11 20:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:41:04' and `end` < '2025-02-11 20:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:41:18] Production.INFO: count ==1727 [2025-02-11 20:41:19] Production.ERROR: pbx CDR StartTime 2025-02-11 17:41:04 - End Time 2025-02-11 20:41:04 [2025-02-11 20:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454242', 'tblTempUsageDetail_20' ) start [2025-02-11 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454242', 'tblTempUsageDetail_20' ) end [2025-02-11 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454242', 'tblTempVendorCDR_20' ) start [2025-02-11 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454242', 'tblTempVendorCDR_20' ) end [2025-02-11 20:41:19] Production.INFO: ProcessCDR(1,14454242,1,1,2) [2025-02-11 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454242', 'tblTempUsageDetail_20' ) start [2025-02-11 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454242', 'tblTempUsageDetail_20' ) end [2025-02-11 20:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:41:22] Production.INFO: ==21173== Releasing lock... [2025-02-11 20:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:41:22] Production.INFO: 41 MB #Memory Used# [2025-02-11 20:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:42:06 [end_date_ymd] => 2025-02-11 20:42:06 [RateCDR] => 1 ) [2025-02-11 20:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:42:06' and `end` < '2025-02-11 20:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:42:19] Production.INFO: count ==1726 [2025-02-11 20:42:19] Production.ERROR: pbx CDR StartTime 2025-02-11 17:42:06 - End Time 2025-02-11 20:42:06 [2025-02-11 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454247', 'tblTempUsageDetail_20' ) start [2025-02-11 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454247', 'tblTempUsageDetail_20' ) end [2025-02-11 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454247', 'tblTempVendorCDR_20' ) start [2025-02-11 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454247', 'tblTempVendorCDR_20' ) end [2025-02-11 20:42:19] Production.INFO: ProcessCDR(1,14454247,1,1,2) [2025-02-11 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454247', 'tblTempUsageDetail_20' ) start [2025-02-11 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454247', 'tblTempUsageDetail_20' ) end [2025-02-11 20:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:42:23] Production.INFO: ==21245== Releasing lock... [2025-02-11 20:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:42:23] Production.INFO: 41 MB #Memory Used# [2025-02-11 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:43:05 [end_date_ymd] => 2025-02-11 20:43:05 [RateCDR] => 1 ) [2025-02-11 20:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:43:05' and `end` < '2025-02-11 20:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:43:18] Production.INFO: count ==1725 [2025-02-11 20:43:18] Production.ERROR: pbx CDR StartTime 2025-02-11 17:43:05 - End Time 2025-02-11 20:43:05 [2025-02-11 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454252', 'tblTempUsageDetail_20' ) start [2025-02-11 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454252', 'tblTempUsageDetail_20' ) end [2025-02-11 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454252', 'tblTempVendorCDR_20' ) start [2025-02-11 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454252', 'tblTempVendorCDR_20' ) end [2025-02-11 20:43:18] Production.INFO: ProcessCDR(1,14454252,1,1,2) [2025-02-11 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454252', 'tblTempUsageDetail_20' ) start [2025-02-11 20:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454252', 'tblTempUsageDetail_20' ) end [2025-02-11 20:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:43:24] Production.INFO: ==21316== Releasing lock... [2025-02-11 20:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:43:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-11 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:44:05 [end_date_ymd] => 2025-02-11 20:44:05 [RateCDR] => 1 ) [2025-02-11 20:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:44:05' and `end` < '2025-02-11 20:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:44:18] Production.INFO: count ==1726 [2025-02-11 20:44:19] Production.ERROR: pbx CDR StartTime 2025-02-11 17:44:05 - End Time 2025-02-11 20:44:05 [2025-02-11 20:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454257', 'tblTempUsageDetail_20' ) start [2025-02-11 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454257', 'tblTempUsageDetail_20' ) end [2025-02-11 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454257', 'tblTempVendorCDR_20' ) start [2025-02-11 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454257', 'tblTempVendorCDR_20' ) end [2025-02-11 20:44:19] Production.INFO: ProcessCDR(1,14454257,1,1,2) [2025-02-11 20:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454257', 'tblTempUsageDetail_20' ) start [2025-02-11 20:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454257', 'tblTempUsageDetail_20' ) end [2025-02-11 20:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:44:24] Production.INFO: ==21387== Releasing lock... [2025-02-11 20:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:44:24] Production.INFO: 40.75 MB #Memory Used# [2025-02-11 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:45:05 [end_date_ymd] => 2025-02-11 20:45:05 [RateCDR] => 1 ) [2025-02-11 20:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:45:05' and `end` < '2025-02-11 20:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:45:18] Production.INFO: count ==1719 [2025-02-11 20:45:19] Production.ERROR: pbx CDR StartTime 2025-02-11 17:45:05 - End Time 2025-02-11 20:45:05 [2025-02-11 20:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454262', 'tblTempUsageDetail_20' ) start [2025-02-11 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454262', 'tblTempUsageDetail_20' ) end [2025-02-11 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454262', 'tblTempVendorCDR_20' ) start [2025-02-11 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454262', 'tblTempVendorCDR_20' ) end [2025-02-11 20:45:19] Production.INFO: ProcessCDR(1,14454262,1,1,2) [2025-02-11 20:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454262', 'tblTempUsageDetail_20' ) start [2025-02-11 20:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454262', 'tblTempUsageDetail_20' ) end [2025-02-11 20:45:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:45:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:45:24] Production.INFO: ==21458== Releasing lock... [2025-02-11 20:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:45:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-11 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:46:05 [end_date_ymd] => 2025-02-11 20:46:05 [RateCDR] => 1 ) [2025-02-11 20:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:46:05' and `end` < '2025-02-11 20:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:46:19] Production.INFO: count ==1708 [2025-02-11 20:46:19] Production.ERROR: pbx CDR StartTime 2025-02-11 17:46:05 - End Time 2025-02-11 20:46:05 [2025-02-11 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454267', 'tblTempUsageDetail_20' ) start [2025-02-11 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454267', 'tblTempUsageDetail_20' ) end [2025-02-11 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454267', 'tblTempVendorCDR_20' ) start [2025-02-11 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454267', 'tblTempVendorCDR_20' ) end [2025-02-11 20:46:19] Production.INFO: ProcessCDR(1,14454267,1,1,2) [2025-02-11 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454267', 'tblTempUsageDetail_20' ) start [2025-02-11 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454267', 'tblTempUsageDetail_20' ) end [2025-02-11 20:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:46:23] Production.INFO: ==21537== Releasing lock... [2025-02-11 20:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:46:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-11 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:47:05 [end_date_ymd] => 2025-02-11 20:47:05 [RateCDR] => 1 ) [2025-02-11 20:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:47:05' and `end` < '2025-02-11 20:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:47:18] Production.INFO: count ==1707 [2025-02-11 20:47:19] Production.ERROR: pbx CDR StartTime 2025-02-11 17:47:05 - End Time 2025-02-11 20:47:05 [2025-02-11 20:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454272', 'tblTempUsageDetail_20' ) start [2025-02-11 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454272', 'tblTempUsageDetail_20' ) end [2025-02-11 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454272', 'tblTempVendorCDR_20' ) start [2025-02-11 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454272', 'tblTempVendorCDR_20' ) end [2025-02-11 20:47:19] Production.INFO: ProcessCDR(1,14454272,1,1,2) [2025-02-11 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454272', 'tblTempUsageDetail_20' ) start [2025-02-11 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454272', 'tblTempUsageDetail_20' ) end [2025-02-11 20:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:47:22] Production.INFO: ==21606== Releasing lock... [2025-02-11 20:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:47:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-11 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:48:05 [end_date_ymd] => 2025-02-11 20:48:05 [RateCDR] => 1 ) [2025-02-11 20:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:48:05' and `end` < '2025-02-11 20:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:48:18] Production.INFO: count ==1707 [2025-02-11 20:48:18] Production.ERROR: pbx CDR StartTime 2025-02-11 17:48:05 - End Time 2025-02-11 20:48:05 [2025-02-11 20:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454277', 'tblTempUsageDetail_20' ) start [2025-02-11 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454277', 'tblTempUsageDetail_20' ) end [2025-02-11 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454277', 'tblTempVendorCDR_20' ) start [2025-02-11 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454277', 'tblTempVendorCDR_20' ) end [2025-02-11 20:48:18] Production.INFO: ProcessCDR(1,14454277,1,1,2) [2025-02-11 20:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454277', 'tblTempUsageDetail_20' ) start [2025-02-11 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454277', 'tblTempUsageDetail_20' ) end [2025-02-11 20:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:48:21] Production.INFO: ==21680== Releasing lock... [2025-02-11 20:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:48:21] Production.INFO: 40.5 MB #Memory Used# [2025-02-11 20:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:49:06 [end_date_ymd] => 2025-02-11 20:49:06 [RateCDR] => 1 ) [2025-02-11 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-02-11 17:49:06' and `end` < '2025-02-11 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-02-11 20:49:19] Production.INFO: count ==1706 [2025-02-11 20:49:19] Production.ERROR: pbx CDR StartTime 2025-02-11 17:49:06 - End Time 2025-02-11 20:49:06 [2025-02-11 20:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454282', 'tblTempUsageDetail_20' ) start [2025-02-11 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454282', 'tblTempUsageDetail_20' ) end [2025-02-11 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454282', 'tblTempVendorCDR_20' ) start [2025-02-11 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454282', 'tblTempVendorCDR_20' ) end [2025-02-11 20:49:19] Production.INFO: ProcessCDR(1,14454282,1,1,2) [2025-02-11 20:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454282', 'tblTempUsageDetail_20' ) start [2025-02-11 20:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454282', 'tblTempUsageDetail_20' ) end [2025-02-11 20:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:49:24] Production.INFO: ==21752== Releasing lock... [2025-02-11 20:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:49:24] Production.INFO: 40.5 MB #Memory Used# [2025-02-11 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:50:06 [end_date_ymd] => 2025-02-11 20:50:06 [RateCDR] => 1 ) [2025-02-11 20:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:50:06' and `end` < '2025-02-11 20:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:50:19] Production.INFO: count ==1696 [2025-02-11 20:50:20] Production.ERROR: pbx CDR StartTime 2025-02-11 17:50:06 - End Time 2025-02-11 20:50:06 [2025-02-11 20:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454288', 'tblTempUsageDetail_20' ) start [2025-02-11 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454288', 'tblTempUsageDetail_20' ) end [2025-02-11 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454288', 'tblTempVendorCDR_20' ) start [2025-02-11 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454288', 'tblTempVendorCDR_20' ) end [2025-02-11 20:50:20] Production.INFO: ProcessCDR(1,14454288,1,1,2) [2025-02-11 20:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454288', 'tblTempUsageDetail_20' ) start [2025-02-11 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454288', 'tblTempUsageDetail_20' ) end [2025-02-11 20:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:50:23] Production.INFO: ==21824== Releasing lock... [2025-02-11 20:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:50:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-11 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:51:05 [end_date_ymd] => 2025-02-11 20:51:05 [RateCDR] => 1 ) [2025-02-11 20:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:51:05' and `end` < '2025-02-11 20:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:51:18] Production.INFO: count ==1641 [2025-02-11 20:51:19] Production.ERROR: pbx CDR StartTime 2025-02-11 17:51:05 - End Time 2025-02-11 20:51:05 [2025-02-11 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454293', 'tblTempUsageDetail_20' ) start [2025-02-11 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454293', 'tblTempUsageDetail_20' ) end [2025-02-11 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454293', 'tblTempVendorCDR_20' ) start [2025-02-11 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454293', 'tblTempVendorCDR_20' ) end [2025-02-11 20:51:19] Production.INFO: ProcessCDR(1,14454293,1,1,2) [2025-02-11 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454293', 'tblTempUsageDetail_20' ) start [2025-02-11 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454293', 'tblTempUsageDetail_20' ) end [2025-02-11 20:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:51:22] Production.INFO: ==21901== Releasing lock... [2025-02-11 20:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:51:22] Production.INFO: 40.25 MB #Memory Used# [2025-02-11 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:52:05 [end_date_ymd] => 2025-02-11 20:52:05 [RateCDR] => 1 ) [2025-02-11 20:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:52:05' and `end` < '2025-02-11 20:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:52:18] Production.INFO: count ==1617 [2025-02-11 20:52:18] Production.ERROR: pbx CDR StartTime 2025-02-11 17:52:05 - End Time 2025-02-11 20:52:05 [2025-02-11 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454298', 'tblTempUsageDetail_20' ) start [2025-02-11 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454298', 'tblTempUsageDetail_20' ) end [2025-02-11 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454298', 'tblTempVendorCDR_20' ) start [2025-02-11 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454298', 'tblTempVendorCDR_20' ) end [2025-02-11 20:52:18] Production.INFO: ProcessCDR(1,14454298,1,1,2) [2025-02-11 20:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454298', 'tblTempUsageDetail_20' ) start [2025-02-11 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454298', 'tblTempUsageDetail_20' ) end [2025-02-11 20:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:52:23] Production.INFO: ==21973== Releasing lock... [2025-02-11 20:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:52:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-11 20:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:53:04 [end_date_ymd] => 2025-02-11 20:53:04 [RateCDR] => 1 ) [2025-02-11 20:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:53:04' and `end` < '2025-02-11 20:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:53:19] Production.INFO: count ==1596 [2025-02-11 20:53:19] Production.ERROR: pbx CDR StartTime 2025-02-11 17:53:04 - End Time 2025-02-11 20:53:04 [2025-02-11 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454303', 'tblTempUsageDetail_20' ) start [2025-02-11 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454303', 'tblTempUsageDetail_20' ) end [2025-02-11 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454303', 'tblTempVendorCDR_20' ) start [2025-02-11 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454303', 'tblTempVendorCDR_20' ) end [2025-02-11 20:53:19] Production.INFO: ProcessCDR(1,14454303,1,1,2) [2025-02-11 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454303', 'tblTempUsageDetail_20' ) start [2025-02-11 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454303', 'tblTempUsageDetail_20' ) end [2025-02-11 20:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:53:22] Production.INFO: ==22048== Releasing lock... [2025-02-11 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:53:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-11 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:54:05 [end_date_ymd] => 2025-02-11 20:54:05 [RateCDR] => 1 ) [2025-02-11 20:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:54:05' and `end` < '2025-02-11 20:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:54:18] Production.INFO: count ==1596 [2025-02-11 20:54:19] Production.ERROR: pbx CDR StartTime 2025-02-11 17:54:05 - End Time 2025-02-11 20:54:05 [2025-02-11 20:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454308', 'tblTempUsageDetail_20' ) start [2025-02-11 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454308', 'tblTempUsageDetail_20' ) end [2025-02-11 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454308', 'tblTempVendorCDR_20' ) start [2025-02-11 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454308', 'tblTempVendorCDR_20' ) end [2025-02-11 20:54:19] Production.INFO: ProcessCDR(1,14454308,1,1,2) [2025-02-11 20:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454308', 'tblTempUsageDetail_20' ) start [2025-02-11 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454308', 'tblTempUsageDetail_20' ) end [2025-02-11 20:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:54:22] Production.INFO: ==22160== Releasing lock... [2025-02-11 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:54:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-11 20:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:55:06 [end_date_ymd] => 2025-02-11 20:55:06 [RateCDR] => 1 ) [2025-02-11 20:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:55:06' and `end` < '2025-02-11 20:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:55:19] Production.INFO: count ==1590 [2025-02-11 20:55:19] Production.ERROR: pbx CDR StartTime 2025-02-11 17:55:06 - End Time 2025-02-11 20:55:06 [2025-02-11 20:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454313', 'tblTempUsageDetail_20' ) start [2025-02-11 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454313', 'tblTempUsageDetail_20' ) end [2025-02-11 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454313', 'tblTempVendorCDR_20' ) start [2025-02-11 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454313', 'tblTempVendorCDR_20' ) end [2025-02-11 20:55:19] Production.INFO: ProcessCDR(1,14454313,1,1,2) [2025-02-11 20:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454313', 'tblTempUsageDetail_20' ) start [2025-02-11 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454313', 'tblTempUsageDetail_20' ) end [2025-02-11 20:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:55:23] Production.INFO: ==22231== Releasing lock... [2025-02-11 20:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:55:23] Production.INFO: 40 MB #Memory Used# [2025-02-11 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:56:05 [end_date_ymd] => 2025-02-11 20:56:05 [RateCDR] => 1 ) [2025-02-11 20:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:56:05' and `end` < '2025-02-11 20:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:56:18] Production.INFO: count ==1590 [2025-02-11 20:56:19] Production.ERROR: pbx CDR StartTime 2025-02-11 17:56:05 - End Time 2025-02-11 20:56:05 [2025-02-11 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454318', 'tblTempUsageDetail_20' ) start [2025-02-11 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454318', 'tblTempUsageDetail_20' ) end [2025-02-11 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454318', 'tblTempVendorCDR_20' ) start [2025-02-11 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454318', 'tblTempVendorCDR_20' ) end [2025-02-11 20:56:19] Production.INFO: ProcessCDR(1,14454318,1,1,2) [2025-02-11 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454318', 'tblTempUsageDetail_20' ) start [2025-02-11 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454318', 'tblTempUsageDetail_20' ) end [2025-02-11 20:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:56:22] Production.INFO: ==22302== Releasing lock... [2025-02-11 20:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:56:22] Production.INFO: 40 MB #Memory Used# [2025-02-11 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:57:05 [end_date_ymd] => 2025-02-11 20:57:05 [RateCDR] => 1 ) [2025-02-11 20:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:57:05' and `end` < '2025-02-11 20:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:57:18] Production.INFO: count ==1587 [2025-02-11 20:57:18] Production.ERROR: pbx CDR StartTime 2025-02-11 17:57:05 - End Time 2025-02-11 20:57:05 [2025-02-11 20:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454323', 'tblTempUsageDetail_20' ) start [2025-02-11 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454323', 'tblTempUsageDetail_20' ) end [2025-02-11 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454323', 'tblTempVendorCDR_20' ) start [2025-02-11 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454323', 'tblTempVendorCDR_20' ) end [2025-02-11 20:57:18] Production.INFO: ProcessCDR(1,14454323,1,1,2) [2025-02-11 20:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454323', 'tblTempUsageDetail_20' ) start [2025-02-11 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454323', 'tblTempUsageDetail_20' ) end [2025-02-11 20:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:57:22] Production.INFO: ==22373== Releasing lock... [2025-02-11 20:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:57:22] Production.INFO: 40 MB #Memory Used# [2025-02-11 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:58:05 [end_date_ymd] => 2025-02-11 20:58:05 [RateCDR] => 1 ) [2025-02-11 20:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:58:05' and `end` < '2025-02-11 20:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:58:18] Production.INFO: count ==1587 [2025-02-11 20:58:18] Production.ERROR: pbx CDR StartTime 2025-02-11 17:58:05 - End Time 2025-02-11 20:58:05 [2025-02-11 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454328', 'tblTempUsageDetail_20' ) start [2025-02-11 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454328', 'tblTempUsageDetail_20' ) end [2025-02-11 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454328', 'tblTempVendorCDR_20' ) start [2025-02-11 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454328', 'tblTempVendorCDR_20' ) end [2025-02-11 20:58:18] Production.INFO: ProcessCDR(1,14454328,1,1,2) [2025-02-11 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454328', 'tblTempUsageDetail_20' ) start [2025-02-11 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454328', 'tblTempUsageDetail_20' ) end [2025-02-11 20:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:58:22] Production.INFO: ==22446== Releasing lock... [2025-02-11 20:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:58:22] Production.INFO: 40 MB #Memory Used# [2025-02-11 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 17:59:05 [end_date_ymd] => 2025-02-11 20:59:05 [RateCDR] => 1 ) [2025-02-11 20:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 17:59:05' and `end` < '2025-02-11 20:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 20:59:18] Production.INFO: count ==1580 [2025-02-11 20:59:19] Production.ERROR: pbx CDR StartTime 2025-02-11 17:59:05 - End Time 2025-02-11 20:59:05 [2025-02-11 20:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454333', 'tblTempUsageDetail_20' ) start [2025-02-11 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454333', 'tblTempUsageDetail_20' ) end [2025-02-11 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454333', 'tblTempVendorCDR_20' ) start [2025-02-11 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454333', 'tblTempVendorCDR_20' ) end [2025-02-11 20:59:19] Production.INFO: ProcessCDR(1,14454333,1,1,2) [2025-02-11 20:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 20:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454333', 'tblTempUsageDetail_20' ) start [2025-02-11 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454333', 'tblTempUsageDetail_20' ) end [2025-02-11 20:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 20:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 20:59:22] Production.INFO: ==22515== Releasing lock... [2025-02-11 20:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 20:59:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-11 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:00:06 [end_date_ymd] => 2025-02-11 21:00:06 [RateCDR] => 1 ) [2025-02-11 21:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:00:06' and `end` < '2025-02-11 21:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:00:19] Production.INFO: count ==1578 [2025-02-11 21:00:19] Production.ERROR: pbx CDR StartTime 2025-02-11 18:00:06 - End Time 2025-02-11 21:00:06 [2025-02-11 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454339', 'tblTempUsageDetail_20' ) start [2025-02-11 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454339', 'tblTempUsageDetail_20' ) end [2025-02-11 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454339', 'tblTempVendorCDR_20' ) start [2025-02-11 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454339', 'tblTempVendorCDR_20' ) end [2025-02-11 21:00:19] Production.INFO: ProcessCDR(1,14454339,1,1,2) [2025-02-11 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454339', 'tblTempUsageDetail_20' ) start [2025-02-11 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454339', 'tblTempUsageDetail_20' ) end [2025-02-11 21:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:00:22] Production.INFO: ==22592== Releasing lock... [2025-02-11 21:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:00:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-11 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:01:05 [end_date_ymd] => 2025-02-11 21:01:05 [RateCDR] => 1 ) [2025-02-11 21:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:01:05' and `end` < '2025-02-11 21:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:01:19] Production.INFO: count ==1540 [2025-02-11 21:01:20] Production.ERROR: pbx CDR StartTime 2025-02-11 18:01:05 - End Time 2025-02-11 21:01:05 [2025-02-11 21:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454344', 'tblTempUsageDetail_20' ) start [2025-02-11 21:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454344', 'tblTempUsageDetail_20' ) end [2025-02-11 21:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454344', 'tblTempVendorCDR_20' ) start [2025-02-11 21:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454344', 'tblTempVendorCDR_20' ) end [2025-02-11 21:01:20] Production.INFO: ProcessCDR(1,14454344,1,1,2) [2025-02-11 21:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454344', 'tblTempUsageDetail_20' ) start [2025-02-11 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454344', 'tblTempUsageDetail_20' ) end [2025-02-11 21:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:01:23] Production.INFO: ==22682== Releasing lock... [2025-02-11 21:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:01:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-11 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:02:05 [end_date_ymd] => 2025-02-11 21:02:05 [RateCDR] => 1 ) [2025-02-11 21:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:02:05' and `end` < '2025-02-11 21:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:02:18] Production.INFO: count ==1518 [2025-02-11 21:02:18] Production.ERROR: pbx CDR StartTime 2025-02-11 18:02:05 - End Time 2025-02-11 21:02:05 [2025-02-11 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454349', 'tblTempUsageDetail_20' ) start [2025-02-11 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454349', 'tblTempUsageDetail_20' ) end [2025-02-11 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454349', 'tblTempVendorCDR_20' ) start [2025-02-11 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454349', 'tblTempVendorCDR_20' ) end [2025-02-11 21:02:19] Production.INFO: ProcessCDR(1,14454349,1,1,2) [2025-02-11 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454349', 'tblTempUsageDetail_20' ) start [2025-02-11 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454349', 'tblTempUsageDetail_20' ) end [2025-02-11 21:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:02:22] Production.INFO: ==22751== Releasing lock... [2025-02-11 21:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:02:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-11 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:03:05 [end_date_ymd] => 2025-02-11 21:03:05 [RateCDR] => 1 ) [2025-02-11 21:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:03:05' and `end` < '2025-02-11 21:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:03:18] Production.INFO: count ==1515 [2025-02-11 21:03:18] Production.ERROR: pbx CDR StartTime 2025-02-11 18:03:05 - End Time 2025-02-11 21:03:05 [2025-02-11 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454354', 'tblTempUsageDetail_20' ) start [2025-02-11 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454354', 'tblTempUsageDetail_20' ) end [2025-02-11 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454354', 'tblTempVendorCDR_20' ) start [2025-02-11 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454354', 'tblTempVendorCDR_20' ) end [2025-02-11 21:03:18] Production.INFO: ProcessCDR(1,14454354,1,1,2) [2025-02-11 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454354', 'tblTempUsageDetail_20' ) start [2025-02-11 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454354', 'tblTempUsageDetail_20' ) end [2025-02-11 21:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:03:22] Production.INFO: ==22825== Releasing lock... [2025-02-11 21:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:03:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-11 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:04:05 [end_date_ymd] => 2025-02-11 21:04:05 [RateCDR] => 1 ) [2025-02-11 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-02-11 18:04:05' and `end` < '2025-02-11 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-02-11 21:04:19] Production.INFO: count ==1511 [2025-02-11 21:04:19] Production.ERROR: pbx CDR StartTime 2025-02-11 18:04:05 - End Time 2025-02-11 21:04:05 [2025-02-11 21:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454359', 'tblTempUsageDetail_20' ) start [2025-02-11 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454359', 'tblTempUsageDetail_20' ) end [2025-02-11 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454359', 'tblTempVendorCDR_20' ) start [2025-02-11 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454359', 'tblTempVendorCDR_20' ) end [2025-02-11 21:04:19] Production.INFO: ProcessCDR(1,14454359,1,1,2) [2025-02-11 21:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454359', 'tblTempUsageDetail_20' ) start [2025-02-11 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454359', 'tblTempUsageDetail_20' ) end [2025-02-11 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:04:22] Production.INFO: ==22900== Releasing lock... [2025-02-11 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:04:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-11 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:05:05 [end_date_ymd] => 2025-02-11 21:05:05 [RateCDR] => 1 ) [2025-02-11 21:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:05:05' and `end` < '2025-02-11 21:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:05:18] Production.INFO: count ==1504 [2025-02-11 21:05:19] Production.ERROR: pbx CDR StartTime 2025-02-11 18:05:05 - End Time 2025-02-11 21:05:05 [2025-02-11 21:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454364', 'tblTempUsageDetail_20' ) start [2025-02-11 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454364', 'tblTempUsageDetail_20' ) end [2025-02-11 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454364', 'tblTempVendorCDR_20' ) start [2025-02-11 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454364', 'tblTempVendorCDR_20' ) end [2025-02-11 21:05:19] Production.INFO: ProcessCDR(1,14454364,1,1,2) [2025-02-11 21:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454364', 'tblTempUsageDetail_20' ) start [2025-02-11 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454364', 'tblTempUsageDetail_20' ) end [2025-02-11 21:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:05:22] Production.INFO: ==22980== Releasing lock... [2025-02-11 21:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:05:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-11 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:06:05 [end_date_ymd] => 2025-02-11 21:06:05 [RateCDR] => 1 ) [2025-02-11 21:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:06:05' and `end` < '2025-02-11 21:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:06:18] Production.INFO: count ==1490 [2025-02-11 21:06:18] Production.ERROR: pbx CDR StartTime 2025-02-11 18:06:05 - End Time 2025-02-11 21:06:05 [2025-02-11 21:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454369', 'tblTempUsageDetail_20' ) start [2025-02-11 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454369', 'tblTempUsageDetail_20' ) end [2025-02-11 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454369', 'tblTempVendorCDR_20' ) start [2025-02-11 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454369', 'tblTempVendorCDR_20' ) end [2025-02-11 21:06:18] Production.INFO: ProcessCDR(1,14454369,1,1,2) [2025-02-11 21:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454369', 'tblTempUsageDetail_20' ) start [2025-02-11 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454369', 'tblTempUsageDetail_20' ) end [2025-02-11 21:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:06:21] Production.INFO: ==23050== Releasing lock... [2025-02-11 21:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:06:21] Production.INFO: 39.25 MB #Memory Used# [2025-02-11 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:07:05 [end_date_ymd] => 2025-02-11 21:07:05 [RateCDR] => 1 ) [2025-02-11 21:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:07:05' and `end` < '2025-02-11 21:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:07:18] Production.INFO: count ==1485 [2025-02-11 21:07:18] Production.ERROR: pbx CDR StartTime 2025-02-11 18:07:05 - End Time 2025-02-11 21:07:05 [2025-02-11 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454374', 'tblTempUsageDetail_20' ) start [2025-02-11 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454374', 'tblTempUsageDetail_20' ) end [2025-02-11 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454374', 'tblTempVendorCDR_20' ) start [2025-02-11 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454374', 'tblTempVendorCDR_20' ) end [2025-02-11 21:07:19] Production.INFO: ProcessCDR(1,14454374,1,1,2) [2025-02-11 21:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454374', 'tblTempUsageDetail_20' ) start [2025-02-11 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454374', 'tblTempUsageDetail_20' ) end [2025-02-11 21:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:07:22] Production.INFO: ==23124== Releasing lock... [2025-02-11 21:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:07:22] Production.INFO: 39 MB #Memory Used# [2025-02-11 21:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:08:06 [end_date_ymd] => 2025-02-11 21:08:06 [RateCDR] => 1 ) [2025-02-11 21:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:08:06' and `end` < '2025-02-11 21:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:08:20] Production.INFO: count ==1477 [2025-02-11 21:08:20] Production.ERROR: pbx CDR StartTime 2025-02-11 18:08:06 - End Time 2025-02-11 21:08:06 [2025-02-11 21:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454379', 'tblTempUsageDetail_20' ) start [2025-02-11 21:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454379', 'tblTempUsageDetail_20' ) end [2025-02-11 21:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454379', 'tblTempVendorCDR_20' ) start [2025-02-11 21:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454379', 'tblTempVendorCDR_20' ) end [2025-02-11 21:08:20] Production.INFO: ProcessCDR(1,14454379,1,1,2) [2025-02-11 21:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454379', 'tblTempUsageDetail_20' ) start [2025-02-11 21:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454379', 'tblTempUsageDetail_20' ) end [2025-02-11 21:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:08:24] Production.INFO: ==23198== Releasing lock... [2025-02-11 21:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:08:24] Production.INFO: 39 MB #Memory Used# [2025-02-11 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:09:05 [end_date_ymd] => 2025-02-11 21:09:05 [RateCDR] => 1 ) [2025-02-11 21:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:09:05' and `end` < '2025-02-11 21:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:09:18] Production.INFO: count ==1476 [2025-02-11 21:09:19] Production.ERROR: pbx CDR StartTime 2025-02-11 18:09:05 - End Time 2025-02-11 21:09:05 [2025-02-11 21:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454384', 'tblTempUsageDetail_20' ) start [2025-02-11 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454384', 'tblTempUsageDetail_20' ) end [2025-02-11 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454384', 'tblTempVendorCDR_20' ) start [2025-02-11 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454384', 'tblTempVendorCDR_20' ) end [2025-02-11 21:09:19] Production.INFO: ProcessCDR(1,14454384,1,1,2) [2025-02-11 21:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454384', 'tblTempUsageDetail_20' ) start [2025-02-11 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454384', 'tblTempUsageDetail_20' ) end [2025-02-11 21:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:09:23] Production.INFO: ==23311== Releasing lock... [2025-02-11 21:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:09:23] Production.INFO: 39 MB #Memory Used# [2025-02-11 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:10:06 [end_date_ymd] => 2025-02-11 21:10:06 [RateCDR] => 1 ) [2025-02-11 21:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:10:06' and `end` < '2025-02-11 21:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:10:19] Production.INFO: count ==1474 [2025-02-11 21:10:19] Production.ERROR: pbx CDR StartTime 2025-02-11 18:10:06 - End Time 2025-02-11 21:10:06 [2025-02-11 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454390', 'tblTempUsageDetail_20' ) start [2025-02-11 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454390', 'tblTempUsageDetail_20' ) end [2025-02-11 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454390', 'tblTempVendorCDR_20' ) start [2025-02-11 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454390', 'tblTempVendorCDR_20' ) end [2025-02-11 21:10:20] Production.INFO: ProcessCDR(1,14454390,1,1,2) [2025-02-11 21:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454390', 'tblTempUsageDetail_20' ) start [2025-02-11 21:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454390', 'tblTempUsageDetail_20' ) end [2025-02-11 21:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:10:24] Production.INFO: ==23386== Releasing lock... [2025-02-11 21:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:10:24] Production.INFO: 39 MB #Memory Used# [2025-02-11 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:11:05 [end_date_ymd] => 2025-02-11 21:11:05 [RateCDR] => 1 ) [2025-02-11 21:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:11:05' and `end` < '2025-02-11 21:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:11:18] Production.INFO: count ==1455 [2025-02-11 21:11:18] Production.ERROR: pbx CDR StartTime 2025-02-11 18:11:05 - End Time 2025-02-11 21:11:05 [2025-02-11 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454395', 'tblTempUsageDetail_20' ) start [2025-02-11 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454395', 'tblTempUsageDetail_20' ) end [2025-02-11 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454395', 'tblTempVendorCDR_20' ) start [2025-02-11 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454395', 'tblTempVendorCDR_20' ) end [2025-02-11 21:11:18] Production.INFO: ProcessCDR(1,14454395,1,1,2) [2025-02-11 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454395', 'tblTempUsageDetail_20' ) start [2025-02-11 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454395', 'tblTempUsageDetail_20' ) end [2025-02-11 21:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:11:21] Production.INFO: ==23463== Releasing lock... [2025-02-11 21:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:11:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-11 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:12:05 [end_date_ymd] => 2025-02-11 21:12:05 [RateCDR] => 1 ) [2025-02-11 21:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:12:05' and `end` < '2025-02-11 21:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:12:19] Production.INFO: count ==1455 [2025-02-11 21:12:19] Production.ERROR: pbx CDR StartTime 2025-02-11 18:12:05 - End Time 2025-02-11 21:12:05 [2025-02-11 21:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454400', 'tblTempUsageDetail_20' ) start [2025-02-11 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454400', 'tblTempUsageDetail_20' ) end [2025-02-11 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454400', 'tblTempVendorCDR_20' ) start [2025-02-11 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454400', 'tblTempVendorCDR_20' ) end [2025-02-11 21:12:19] Production.INFO: ProcessCDR(1,14454400,1,1,2) [2025-02-11 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454400', 'tblTempUsageDetail_20' ) start [2025-02-11 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454400', 'tblTempUsageDetail_20' ) end [2025-02-11 21:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:12:22] Production.INFO: ==23536== Releasing lock... [2025-02-11 21:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:12:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-11 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:13:05 [end_date_ymd] => 2025-02-11 21:13:05 [RateCDR] => 1 ) [2025-02-11 21:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:13:05' and `end` < '2025-02-11 21:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:13:18] Production.INFO: count ==1454 [2025-02-11 21:13:18] Production.ERROR: pbx CDR StartTime 2025-02-11 18:13:05 - End Time 2025-02-11 21:13:05 [2025-02-11 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454405', 'tblTempUsageDetail_20' ) start [2025-02-11 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454405', 'tblTempUsageDetail_20' ) end [2025-02-11 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454405', 'tblTempVendorCDR_20' ) start [2025-02-11 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454405', 'tblTempVendorCDR_20' ) end [2025-02-11 21:13:19] Production.INFO: ProcessCDR(1,14454405,1,1,2) [2025-02-11 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454405', 'tblTempUsageDetail_20' ) start [2025-02-11 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454405', 'tblTempUsageDetail_20' ) end [2025-02-11 21:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:13:23] Production.INFO: ==23607== Releasing lock... [2025-02-11 21:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:13:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-11 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:14:05 [end_date_ymd] => 2025-02-11 21:14:05 [RateCDR] => 1 ) [2025-02-11 21:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:14:05' and `end` < '2025-02-11 21:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:14:19] Production.INFO: count ==1455 [2025-02-11 21:14:20] Production.ERROR: pbx CDR StartTime 2025-02-11 18:14:05 - End Time 2025-02-11 21:14:05 [2025-02-11 21:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454410', 'tblTempUsageDetail_20' ) start [2025-02-11 21:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454410', 'tblTempUsageDetail_20' ) end [2025-02-11 21:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454410', 'tblTempVendorCDR_20' ) start [2025-02-11 21:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454410', 'tblTempVendorCDR_20' ) end [2025-02-11 21:14:20] Production.INFO: ProcessCDR(1,14454410,1,1,2) [2025-02-11 21:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454410', 'tblTempUsageDetail_20' ) start [2025-02-11 21:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454410', 'tblTempUsageDetail_20' ) end [2025-02-11 21:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:14:24] Production.INFO: ==23682== Releasing lock... [2025-02-11 21:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:14:24] Production.INFO: 38.75 MB #Memory Used# [2025-02-11 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:15:04 [end_date_ymd] => 2025-02-11 21:15:04 [RateCDR] => 1 ) [2025-02-11 21:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:15:04' and `end` < '2025-02-11 21:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:15:18] Production.INFO: count ==1451 [2025-02-11 21:15:18] Production.ERROR: pbx CDR StartTime 2025-02-11 18:15:04 - End Time 2025-02-11 21:15:04 [2025-02-11 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454415', 'tblTempUsageDetail_20' ) start [2025-02-11 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454415', 'tblTempUsageDetail_20' ) end [2025-02-11 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454415', 'tblTempVendorCDR_20' ) start [2025-02-11 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454415', 'tblTempVendorCDR_20' ) end [2025-02-11 21:15:18] Production.INFO: ProcessCDR(1,14454415,1,1,2) [2025-02-11 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454415', 'tblTempUsageDetail_20' ) start [2025-02-11 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454415', 'tblTempUsageDetail_20' ) end [2025-02-11 21:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:15:21] Production.INFO: ==23758== Releasing lock... [2025-02-11 21:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:15:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-11 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:16:05 [end_date_ymd] => 2025-02-11 21:16:05 [RateCDR] => 1 ) [2025-02-11 21:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:16:05' and `end` < '2025-02-11 21:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:16:18] Production.INFO: count ==1447 [2025-02-11 21:16:18] Production.ERROR: pbx CDR StartTime 2025-02-11 18:16:05 - End Time 2025-02-11 21:16:05 [2025-02-11 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454420', 'tblTempUsageDetail_20' ) start [2025-02-11 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454420', 'tblTempUsageDetail_20' ) end [2025-02-11 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454420', 'tblTempVendorCDR_20' ) start [2025-02-11 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454420', 'tblTempVendorCDR_20' ) end [2025-02-11 21:16:18] Production.INFO: ProcessCDR(1,14454420,1,1,2) [2025-02-11 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454420', 'tblTempUsageDetail_20' ) start [2025-02-11 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454420', 'tblTempUsageDetail_20' ) end [2025-02-11 21:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:16:23] Production.INFO: ==23832== Releasing lock... [2025-02-11 21:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:16:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-11 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:17:05 [end_date_ymd] => 2025-02-11 21:17:05 [RateCDR] => 1 ) [2025-02-11 21:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:17:05' and `end` < '2025-02-11 21:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:17:20] Production.INFO: count ==1446 [2025-02-11 21:17:21] Production.ERROR: pbx CDR StartTime 2025-02-11 18:17:05 - End Time 2025-02-11 21:17:05 [2025-02-11 21:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454425', 'tblTempUsageDetail_20' ) start [2025-02-11 21:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454425', 'tblTempUsageDetail_20' ) end [2025-02-11 21:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454425', 'tblTempVendorCDR_20' ) start [2025-02-11 21:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454425', 'tblTempVendorCDR_20' ) end [2025-02-11 21:17:21] Production.INFO: ProcessCDR(1,14454425,1,1,2) [2025-02-11 21:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454425', 'tblTempUsageDetail_20' ) start [2025-02-11 21:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454425', 'tblTempUsageDetail_20' ) end [2025-02-11 21:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:17:24] Production.INFO: ==23907== Releasing lock... [2025-02-11 21:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:17:24] Production.INFO: 38.75 MB #Memory Used# [2025-02-11 21:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:18:04 [end_date_ymd] => 2025-02-11 21:18:04 [RateCDR] => 1 ) [2025-02-11 21:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:18:04' and `end` < '2025-02-11 21:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:18:18] Production.INFO: count ==1446 [2025-02-11 21:18:18] Production.ERROR: pbx CDR StartTime 2025-02-11 18:18:04 - End Time 2025-02-11 21:18:04 [2025-02-11 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454430', 'tblTempUsageDetail_20' ) start [2025-02-11 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454430', 'tblTempUsageDetail_20' ) end [2025-02-11 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454430', 'tblTempVendorCDR_20' ) start [2025-02-11 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454430', 'tblTempVendorCDR_20' ) end [2025-02-11 21:18:18] Production.INFO: ProcessCDR(1,14454430,1,1,2) [2025-02-11 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454430', 'tblTempUsageDetail_20' ) start [2025-02-11 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454430', 'tblTempUsageDetail_20' ) end [2025-02-11 21:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:18:22] Production.INFO: ==23981== Releasing lock... [2025-02-11 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:18:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-11 21:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:19:06 [end_date_ymd] => 2025-02-11 21:19:06 [RateCDR] => 1 ) [2025-02-11 21:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:19:06' and `end` < '2025-02-11 21:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:19:19] Production.INFO: count ==1442 [2025-02-11 21:19:19] Production.ERROR: pbx CDR StartTime 2025-02-11 18:19:06 - End Time 2025-02-11 21:19:06 [2025-02-11 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454435', 'tblTempUsageDetail_20' ) start [2025-02-11 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454435', 'tblTempUsageDetail_20' ) end [2025-02-11 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454435', 'tblTempVendorCDR_20' ) start [2025-02-11 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454435', 'tblTempVendorCDR_20' ) end [2025-02-11 21:19:19] Production.INFO: ProcessCDR(1,14454435,1,1,2) [2025-02-11 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454435', 'tblTempUsageDetail_20' ) start [2025-02-11 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454435', 'tblTempUsageDetail_20' ) end [2025-02-11 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:19:23] Production.INFO: ==24058== Releasing lock... [2025-02-11 21:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:19:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-11 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:20:06 [end_date_ymd] => 2025-02-11 21:20:06 [RateCDR] => 1 ) [2025-02-11 21:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:20:06' and `end` < '2025-02-11 21:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:20:19] Production.INFO: count ==1441 [2025-02-11 21:20:19] Production.ERROR: pbx CDR StartTime 2025-02-11 18:20:06 - End Time 2025-02-11 21:20:06 [2025-02-11 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454440', 'tblTempUsageDetail_20' ) start [2025-02-11 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454440', 'tblTempUsageDetail_20' ) end [2025-02-11 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454440', 'tblTempVendorCDR_20' ) start [2025-02-11 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454440', 'tblTempVendorCDR_20' ) end [2025-02-11 21:20:19] Production.INFO: ProcessCDR(1,14454440,1,1,2) [2025-02-11 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454440', 'tblTempUsageDetail_20' ) start [2025-02-11 21:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454440', 'tblTempUsageDetail_20' ) end [2025-02-11 21:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:20:24] Production.INFO: ==24134== Releasing lock... [2025-02-11 21:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:20:24] Production.INFO: 38.75 MB #Memory Used# [2025-02-11 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:21:05 [end_date_ymd] => 2025-02-11 21:21:05 [RateCDR] => 1 ) [2025-02-11 21:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:21:05' and `end` < '2025-02-11 21:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:21:19] Production.INFO: count ==1397 [2025-02-11 21:21:19] Production.ERROR: pbx CDR StartTime 2025-02-11 18:21:05 - End Time 2025-02-11 21:21:05 [2025-02-11 21:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454446', 'tblTempUsageDetail_20' ) start [2025-02-11 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454446', 'tblTempUsageDetail_20' ) end [2025-02-11 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454446', 'tblTempVendorCDR_20' ) start [2025-02-11 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454446', 'tblTempVendorCDR_20' ) end [2025-02-11 21:21:19] Production.INFO: ProcessCDR(1,14454446,1,1,2) [2025-02-11 21:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454446', 'tblTempUsageDetail_20' ) start [2025-02-11 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454446', 'tblTempUsageDetail_20' ) end [2025-02-11 21:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:21:22] Production.INFO: ==24208== Releasing lock... [2025-02-11 21:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:21:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-11 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:22:05 [end_date_ymd] => 2025-02-11 21:22:05 [RateCDR] => 1 ) [2025-02-11 21:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:22:05' and `end` < '2025-02-11 21:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:22:18] Production.INFO: count ==1390 [2025-02-11 21:22:18] Production.ERROR: pbx CDR StartTime 2025-02-11 18:22:05 - End Time 2025-02-11 21:22:05 [2025-02-11 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454451', 'tblTempUsageDetail_20' ) start [2025-02-11 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454451', 'tblTempUsageDetail_20' ) end [2025-02-11 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454451', 'tblTempVendorCDR_20' ) start [2025-02-11 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454451', 'tblTempVendorCDR_20' ) end [2025-02-11 21:22:18] Production.INFO: ProcessCDR(1,14454451,1,1,2) [2025-02-11 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454451', 'tblTempUsageDetail_20' ) start [2025-02-11 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454451', 'tblTempUsageDetail_20' ) end [2025-02-11 21:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:22:21] Production.INFO: ==24281== Releasing lock... [2025-02-11 21:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:22:21] Production.INFO: 38.5 MB #Memory Used# [2025-02-11 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:23:05 [end_date_ymd] => 2025-02-11 21:23:05 [RateCDR] => 1 ) [2025-02-11 21:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:23:05' and `end` < '2025-02-11 21:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:23:18] Production.INFO: count ==1382 [2025-02-11 21:23:18] Production.ERROR: pbx CDR StartTime 2025-02-11 18:23:05 - End Time 2025-02-11 21:23:05 [2025-02-11 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454456', 'tblTempUsageDetail_20' ) start [2025-02-11 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454456', 'tblTempUsageDetail_20' ) end [2025-02-11 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454456', 'tblTempVendorCDR_20' ) start [2025-02-11 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454456', 'tblTempVendorCDR_20' ) end [2025-02-11 21:23:18] Production.INFO: ProcessCDR(1,14454456,1,1,2) [2025-02-11 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454456', 'tblTempUsageDetail_20' ) start [2025-02-11 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454456', 'tblTempUsageDetail_20' ) end [2025-02-11 21:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:23:22] Production.INFO: ==24354== Releasing lock... [2025-02-11 21:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:23:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-11 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:24:05 [end_date_ymd] => 2025-02-11 21:24:05 [RateCDR] => 1 ) [2025-02-11 21:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:24:05' and `end` < '2025-02-11 21:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:24:18] Production.INFO: count ==1384 [2025-02-11 21:24:19] Production.ERROR: pbx CDR StartTime 2025-02-11 18:24:05 - End Time 2025-02-11 21:24:05 [2025-02-11 21:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454461', 'tblTempUsageDetail_20' ) start [2025-02-11 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454461', 'tblTempUsageDetail_20' ) end [2025-02-11 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454461', 'tblTempVendorCDR_20' ) start [2025-02-11 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454461', 'tblTempVendorCDR_20' ) end [2025-02-11 21:24:19] Production.INFO: ProcessCDR(1,14454461,1,1,2) [2025-02-11 21:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454461', 'tblTempUsageDetail_20' ) start [2025-02-11 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454461', 'tblTempUsageDetail_20' ) end [2025-02-11 21:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:24:22] Production.INFO: ==24465== Releasing lock... [2025-02-11 21:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:24:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-11 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:25:05 [end_date_ymd] => 2025-02-11 21:25:05 [RateCDR] => 1 ) [2025-02-11 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:25:05' and `end` < '2025-02-11 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:25:18] Production.INFO: count ==1384 [2025-02-11 21:25:18] Production.ERROR: pbx CDR StartTime 2025-02-11 18:25:05 - End Time 2025-02-11 21:25:05 [2025-02-11 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454466', 'tblTempUsageDetail_20' ) start [2025-02-11 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454466', 'tblTempUsageDetail_20' ) end [2025-02-11 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454466', 'tblTempVendorCDR_20' ) start [2025-02-11 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454466', 'tblTempVendorCDR_20' ) end [2025-02-11 21:25:18] Production.INFO: ProcessCDR(1,14454466,1,1,2) [2025-02-11 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454466', 'tblTempUsageDetail_20' ) start [2025-02-11 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454466', 'tblTempUsageDetail_20' ) end [2025-02-11 21:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:25:23] Production.INFO: ==24545== Releasing lock... [2025-02-11 21:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:25:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-11 21:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:26:06 [end_date_ymd] => 2025-02-11 21:26:06 [RateCDR] => 1 ) [2025-02-11 21:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:26:06' and `end` < '2025-02-11 21:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:26:19] Production.INFO: count ==1383 [2025-02-11 21:26:19] Production.ERROR: pbx CDR StartTime 2025-02-11 18:26:06 - End Time 2025-02-11 21:26:06 [2025-02-11 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454471', 'tblTempUsageDetail_20' ) start [2025-02-11 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454471', 'tblTempUsageDetail_20' ) end [2025-02-11 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454471', 'tblTempVendorCDR_20' ) start [2025-02-11 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454471', 'tblTempVendorCDR_20' ) end [2025-02-11 21:26:19] Production.INFO: ProcessCDR(1,14454471,1,1,2) [2025-02-11 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454471', 'tblTempUsageDetail_20' ) start [2025-02-11 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454471', 'tblTempUsageDetail_20' ) end [2025-02-11 21:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:26:22] Production.INFO: ==24623== Releasing lock... [2025-02-11 21:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:26:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-11 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:27:05 [end_date_ymd] => 2025-02-11 21:27:05 [RateCDR] => 1 ) [2025-02-11 21:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:27:05' and `end` < '2025-02-11 21:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:27:18] Production.INFO: count ==1382 [2025-02-11 21:27:18] Production.ERROR: pbx CDR StartTime 2025-02-11 18:27:05 - End Time 2025-02-11 21:27:05 [2025-02-11 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454476', 'tblTempUsageDetail_20' ) start [2025-02-11 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454476', 'tblTempUsageDetail_20' ) end [2025-02-11 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454476', 'tblTempVendorCDR_20' ) start [2025-02-11 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454476', 'tblTempVendorCDR_20' ) end [2025-02-11 21:27:18] Production.INFO: ProcessCDR(1,14454476,1,1,2) [2025-02-11 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454476', 'tblTempUsageDetail_20' ) start [2025-02-11 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454476', 'tblTempUsageDetail_20' ) end [2025-02-11 21:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:27:22] Production.INFO: ==24697== Releasing lock... [2025-02-11 21:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:27:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-11 21:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:28:06 [end_date_ymd] => 2025-02-11 21:28:06 [RateCDR] => 1 ) [2025-02-11 21:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:28:06' and `end` < '2025-02-11 21:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:28:19] Production.INFO: count ==1377 [2025-02-11 21:28:19] Production.ERROR: pbx CDR StartTime 2025-02-11 18:28:06 - End Time 2025-02-11 21:28:06 [2025-02-11 21:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454481', 'tblTempUsageDetail_20' ) start [2025-02-11 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454481', 'tblTempUsageDetail_20' ) end [2025-02-11 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454481', 'tblTempVendorCDR_20' ) start [2025-02-11 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454481', 'tblTempVendorCDR_20' ) end [2025-02-11 21:28:19] Production.INFO: ProcessCDR(1,14454481,1,1,2) [2025-02-11 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454481', 'tblTempUsageDetail_20' ) start [2025-02-11 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454481', 'tblTempUsageDetail_20' ) end [2025-02-11 21:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:28:22] Production.INFO: ==24774== Releasing lock... [2025-02-11 21:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:28:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-11 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:29:05 [end_date_ymd] => 2025-02-11 21:29:05 [RateCDR] => 1 ) [2025-02-11 21:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:29:05' and `end` < '2025-02-11 21:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:29:19] Production.INFO: count ==1375 [2025-02-11 21:29:19] Production.ERROR: pbx CDR StartTime 2025-02-11 18:29:05 - End Time 2025-02-11 21:29:05 [2025-02-11 21:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454486', 'tblTempUsageDetail_20' ) start [2025-02-11 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454486', 'tblTempUsageDetail_20' ) end [2025-02-11 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454486', 'tblTempVendorCDR_20' ) start [2025-02-11 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454486', 'tblTempVendorCDR_20' ) end [2025-02-11 21:29:19] Production.INFO: ProcessCDR(1,14454486,1,1,2) [2025-02-11 21:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454486', 'tblTempUsageDetail_20' ) start [2025-02-11 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454486', 'tblTempUsageDetail_20' ) end [2025-02-11 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:29:22] Production.INFO: ==24849== Releasing lock... [2025-02-11 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:29:22] Production.INFO: 38 MB #Memory Used# [2025-02-11 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:30:06 [end_date_ymd] => 2025-02-11 21:30:06 [RateCDR] => 1 ) [2025-02-11 21:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:30:06' and `end` < '2025-02-11 21:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:30:19] Production.INFO: count ==1375 [2025-02-11 21:30:20] Production.ERROR: pbx CDR StartTime 2025-02-11 18:30:06 - End Time 2025-02-11 21:30:06 [2025-02-11 21:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454492', 'tblTempUsageDetail_20' ) start [2025-02-11 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454492', 'tblTempUsageDetail_20' ) end [2025-02-11 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454492', 'tblTempVendorCDR_20' ) start [2025-02-11 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454492', 'tblTempVendorCDR_20' ) end [2025-02-11 21:30:20] Production.INFO: ProcessCDR(1,14454492,1,1,2) [2025-02-11 21:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454492', 'tblTempUsageDetail_20' ) start [2025-02-11 21:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454492', 'tblTempUsageDetail_20' ) end [2025-02-11 21:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:30:24] Production.INFO: ==24924== Releasing lock... [2025-02-11 21:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:30:24] Production.INFO: 38 MB #Memory Used# [2025-02-11 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:31:05 [end_date_ymd] => 2025-02-11 21:31:05 [RateCDR] => 1 ) [2025-02-11 21:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:31:05' and `end` < '2025-02-11 21:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:31:18] Production.INFO: count ==1337 [2025-02-11 21:31:18] Production.ERROR: pbx CDR StartTime 2025-02-11 18:31:05 - End Time 2025-02-11 21:31:05 [2025-02-11 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454497', 'tblTempUsageDetail_20' ) start [2025-02-11 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454497', 'tblTempUsageDetail_20' ) end [2025-02-11 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454497', 'tblTempVendorCDR_20' ) start [2025-02-11 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454497', 'tblTempVendorCDR_20' ) end [2025-02-11 21:31:18] Production.INFO: ProcessCDR(1,14454497,1,1,2) [2025-02-11 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454497', 'tblTempUsageDetail_20' ) start [2025-02-11 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454497', 'tblTempUsageDetail_20' ) end [2025-02-11 21:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:31:21] Production.INFO: ==25001== Releasing lock... [2025-02-11 21:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:31:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-11 21:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:32:06 [end_date_ymd] => 2025-02-11 21:32:06 [RateCDR] => 1 ) [2025-02-11 21:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:32:06' and `end` < '2025-02-11 21:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:32:19] Production.INFO: count ==1336 [2025-02-11 21:32:20] Production.ERROR: pbx CDR StartTime 2025-02-11 18:32:06 - End Time 2025-02-11 21:32:06 [2025-02-11 21:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454502', 'tblTempUsageDetail_20' ) start [2025-02-11 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454502', 'tblTempUsageDetail_20' ) end [2025-02-11 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454502', 'tblTempVendorCDR_20' ) start [2025-02-11 21:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454502', 'tblTempVendorCDR_20' ) end [2025-02-11 21:32:20] Production.INFO: ProcessCDR(1,14454502,1,1,2) [2025-02-11 21:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454502', 'tblTempUsageDetail_20' ) start [2025-02-11 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454502', 'tblTempUsageDetail_20' ) end [2025-02-11 21:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:32:23] Production.INFO: ==25072== Releasing lock... [2025-02-11 21:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:32:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-11 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:33:05 [end_date_ymd] => 2025-02-11 21:33:05 [RateCDR] => 1 ) [2025-02-11 21:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:33:05' and `end` < '2025-02-11 21:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:33:18] Production.INFO: count ==1334 [2025-02-11 21:33:18] Production.ERROR: pbx CDR StartTime 2025-02-11 18:33:05 - End Time 2025-02-11 21:33:05 [2025-02-11 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454507', 'tblTempUsageDetail_20' ) start [2025-02-11 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454507', 'tblTempUsageDetail_20' ) end [2025-02-11 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454507', 'tblTempVendorCDR_20' ) start [2025-02-11 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454507', 'tblTempVendorCDR_20' ) end [2025-02-11 21:33:18] Production.INFO: ProcessCDR(1,14454507,1,1,2) [2025-02-11 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454507', 'tblTempUsageDetail_20' ) start [2025-02-11 21:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454507', 'tblTempUsageDetail_20' ) end [2025-02-11 21:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:33:24] Production.INFO: ==25140== Releasing lock... [2025-02-11 21:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:33:24] Production.INFO: 37.75 MB #Memory Used# [2025-02-11 21:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:34:06 [end_date_ymd] => 2025-02-11 21:34:06 [RateCDR] => 1 ) [2025-02-11 21:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:34:06' and `end` < '2025-02-11 21:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:34:19] Production.INFO: count ==1336 [2025-02-11 21:34:20] Production.ERROR: pbx CDR StartTime 2025-02-11 18:34:06 - End Time 2025-02-11 21:34:06 [2025-02-11 21:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454512', 'tblTempUsageDetail_20' ) start [2025-02-11 21:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454512', 'tblTempUsageDetail_20' ) end [2025-02-11 21:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454512', 'tblTempVendorCDR_20' ) start [2025-02-11 21:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454512', 'tblTempVendorCDR_20' ) end [2025-02-11 21:34:20] Production.INFO: ProcessCDR(1,14454512,1,1,2) [2025-02-11 21:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454512', 'tblTempUsageDetail_20' ) start [2025-02-11 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454512', 'tblTempUsageDetail_20' ) end [2025-02-11 21:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:34:23] Production.INFO: ==25213== Releasing lock... [2025-02-11 21:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:34:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-11 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:35:05 [end_date_ymd] => 2025-02-11 21:35:05 [RateCDR] => 1 ) [2025-02-11 21:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:35:05' and `end` < '2025-02-11 21:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:35:18] Production.INFO: count ==1332 [2025-02-11 21:35:18] Production.ERROR: pbx CDR StartTime 2025-02-11 18:35:05 - End Time 2025-02-11 21:35:05 [2025-02-11 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454517', 'tblTempUsageDetail_20' ) start [2025-02-11 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454517', 'tblTempUsageDetail_20' ) end [2025-02-11 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454517', 'tblTempVendorCDR_20' ) start [2025-02-11 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454517', 'tblTempVendorCDR_20' ) end [2025-02-11 21:35:18] Production.INFO: ProcessCDR(1,14454517,1,1,2) [2025-02-11 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454517', 'tblTempUsageDetail_20' ) start [2025-02-11 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454517', 'tblTempUsageDetail_20' ) end [2025-02-11 21:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:35:22] Production.INFO: ==25286== Releasing lock... [2025-02-11 21:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:35:22] Production.INFO: 38 MB #Memory Used# [2025-02-11 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:36:05 [end_date_ymd] => 2025-02-11 21:36:05 [RateCDR] => 1 ) [2025-02-11 21:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:36:05' and `end` < '2025-02-11 21:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:36:18] Production.INFO: count ==1323 [2025-02-11 21:36:18] Production.ERROR: pbx CDR StartTime 2025-02-11 18:36:05 - End Time 2025-02-11 21:36:05 [2025-02-11 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454522', 'tblTempUsageDetail_20' ) start [2025-02-11 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454522', 'tblTempUsageDetail_20' ) end [2025-02-11 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454522', 'tblTempVendorCDR_20' ) start [2025-02-11 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454522', 'tblTempVendorCDR_20' ) end [2025-02-11 21:36:18] Production.INFO: ProcessCDR(1,14454522,1,1,2) [2025-02-11 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454522', 'tblTempUsageDetail_20' ) start [2025-02-11 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454522', 'tblTempUsageDetail_20' ) end [2025-02-11 21:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:36:21] Production.INFO: ==25357== Releasing lock... [2025-02-11 21:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:36:21] Production.INFO: 38 MB #Memory Used# [2025-02-11 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:37:05 [end_date_ymd] => 2025-02-11 21:37:05 [RateCDR] => 1 ) [2025-02-11 21:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:37:05' and `end` < '2025-02-11 21:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:37:18] Production.INFO: count ==1326 [2025-02-11 21:37:18] Production.ERROR: pbx CDR StartTime 2025-02-11 18:37:05 - End Time 2025-02-11 21:37:05 [2025-02-11 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454527', 'tblTempUsageDetail_20' ) start [2025-02-11 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454527', 'tblTempUsageDetail_20' ) end [2025-02-11 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454527', 'tblTempVendorCDR_20' ) start [2025-02-11 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454527', 'tblTempVendorCDR_20' ) end [2025-02-11 21:37:18] Production.INFO: ProcessCDR(1,14454527,1,1,2) [2025-02-11 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454527', 'tblTempUsageDetail_20' ) start [2025-02-11 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454527', 'tblTempUsageDetail_20' ) end [2025-02-11 21:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:37:22] Production.INFO: ==25427== Releasing lock... [2025-02-11 21:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:37:22] Production.INFO: 38 MB #Memory Used# [2025-02-11 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:38:05 [end_date_ymd] => 2025-02-11 21:38:05 [RateCDR] => 1 ) [2025-02-11 21:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:38:05' and `end` < '2025-02-11 21:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:38:18] Production.INFO: count ==1325 [2025-02-11 21:38:19] Production.ERROR: pbx CDR StartTime 2025-02-11 18:38:05 - End Time 2025-02-11 21:38:05 [2025-02-11 21:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454532', 'tblTempUsageDetail_20' ) start [2025-02-11 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454532', 'tblTempUsageDetail_20' ) end [2025-02-11 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454532', 'tblTempVendorCDR_20' ) start [2025-02-11 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454532', 'tblTempVendorCDR_20' ) end [2025-02-11 21:38:19] Production.INFO: ProcessCDR(1,14454532,1,1,2) [2025-02-11 21:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454532', 'tblTempUsageDetail_20' ) start [2025-02-11 21:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454532', 'tblTempUsageDetail_20' ) end [2025-02-11 21:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:38:24] Production.INFO: ==25499== Releasing lock... [2025-02-11 21:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:38:24] Production.INFO: 38 MB #Memory Used# [2025-02-11 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:39:05 [end_date_ymd] => 2025-02-11 21:39:05 [RateCDR] => 1 ) [2025-02-11 21:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:39:05' and `end` < '2025-02-11 21:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:39:18] Production.INFO: count ==1314 [2025-02-11 21:39:18] Production.ERROR: pbx CDR StartTime 2025-02-11 18:39:05 - End Time 2025-02-11 21:39:05 [2025-02-11 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454537', 'tblTempUsageDetail_20' ) start [2025-02-11 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454537', 'tblTempUsageDetail_20' ) end [2025-02-11 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454537', 'tblTempVendorCDR_20' ) start [2025-02-11 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454537', 'tblTempVendorCDR_20' ) end [2025-02-11 21:39:18] Production.INFO: ProcessCDR(1,14454537,1,1,2) [2025-02-11 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454537', 'tblTempUsageDetail_20' ) start [2025-02-11 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454537', 'tblTempUsageDetail_20' ) end [2025-02-11 21:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:39:22] Production.INFO: ==25570== Releasing lock... [2025-02-11 21:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:39:22] Production.INFO: 38 MB #Memory Used# [2025-02-11 21:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:40:07 [end_date_ymd] => 2025-02-11 21:40:07 [RateCDR] => 1 ) [2025-02-11 21:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:40:07' and `end` < '2025-02-11 21:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:40:20] Production.INFO: count ==1308 [2025-02-11 21:40:20] Production.ERROR: pbx CDR StartTime 2025-02-11 18:40:07 - End Time 2025-02-11 21:40:07 [2025-02-11 21:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454543', 'tblTempUsageDetail_20' ) start [2025-02-11 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454543', 'tblTempUsageDetail_20' ) end [2025-02-11 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454543', 'tblTempVendorCDR_20' ) start [2025-02-11 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454543', 'tblTempVendorCDR_20' ) end [2025-02-11 21:40:20] Production.INFO: ProcessCDR(1,14454543,1,1,2) [2025-02-11 21:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454543', 'tblTempUsageDetail_20' ) start [2025-02-11 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454543', 'tblTempUsageDetail_20' ) end [2025-02-11 21:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:40:23] Production.INFO: ==25682== Releasing lock... [2025-02-11 21:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:40:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-11 21:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:41:04 [end_date_ymd] => 2025-02-11 21:41:04 [RateCDR] => 1 ) [2025-02-11 21:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:41:04' and `end` < '2025-02-11 21:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:41:18] Production.INFO: count ==1276 [2025-02-11 21:41:18] Production.ERROR: pbx CDR StartTime 2025-02-11 18:41:04 - End Time 2025-02-11 21:41:04 [2025-02-11 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454548', 'tblTempUsageDetail_20' ) start [2025-02-11 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454548', 'tblTempUsageDetail_20' ) end [2025-02-11 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454548', 'tblTempVendorCDR_20' ) start [2025-02-11 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454548', 'tblTempVendorCDR_20' ) end [2025-02-11 21:41:18] Production.INFO: ProcessCDR(1,14454548,1,1,2) [2025-02-11 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454548', 'tblTempUsageDetail_20' ) start [2025-02-11 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454548', 'tblTempUsageDetail_20' ) end [2025-02-11 21:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:41:21] Production.INFO: ==25757== Releasing lock... [2025-02-11 21:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:41:21] Production.INFO: 37.5 MB #Memory Used# [2025-02-11 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:42:05 [end_date_ymd] => 2025-02-11 21:42:05 [RateCDR] => 1 ) [2025-02-11 21:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:42:05' and `end` < '2025-02-11 21:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:42:19] Production.INFO: count ==1273 [2025-02-11 21:42:19] Production.ERROR: pbx CDR StartTime 2025-02-11 18:42:05 - End Time 2025-02-11 21:42:05 [2025-02-11 21:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454553', 'tblTempUsageDetail_20' ) start [2025-02-11 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454553', 'tblTempUsageDetail_20' ) end [2025-02-11 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454553', 'tblTempVendorCDR_20' ) start [2025-02-11 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454553', 'tblTempVendorCDR_20' ) end [2025-02-11 21:42:19] Production.INFO: ProcessCDR(1,14454553,1,1,2) [2025-02-11 21:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454553', 'tblTempUsageDetail_20' ) start [2025-02-11 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454553', 'tblTempUsageDetail_20' ) end [2025-02-11 21:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:42:22] Production.INFO: ==25828== Releasing lock... [2025-02-11 21:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:42:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-11 21:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:43:04 [end_date_ymd] => 2025-02-11 21:43:04 [RateCDR] => 1 ) [2025-02-11 21:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:43:04' and `end` < '2025-02-11 21:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:43:18] Production.INFO: count ==1261 [2025-02-11 21:43:18] Production.ERROR: pbx CDR StartTime 2025-02-11 18:43:04 - End Time 2025-02-11 21:43:04 [2025-02-11 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454558', 'tblTempUsageDetail_20' ) start [2025-02-11 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454558', 'tblTempUsageDetail_20' ) end [2025-02-11 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454558', 'tblTempVendorCDR_20' ) start [2025-02-11 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454558', 'tblTempVendorCDR_20' ) end [2025-02-11 21:43:18] Production.INFO: ProcessCDR(1,14454558,1,1,2) [2025-02-11 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454558', 'tblTempUsageDetail_20' ) start [2025-02-11 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454558', 'tblTempUsageDetail_20' ) end [2025-02-11 21:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:43:22] Production.INFO: ==25902== Releasing lock... [2025-02-11 21:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:43:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-11 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:44:05 [end_date_ymd] => 2025-02-11 21:44:05 [RateCDR] => 1 ) [2025-02-11 21:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:44:05' and `end` < '2025-02-11 21:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:44:18] Production.INFO: count ==1247 [2025-02-11 21:44:18] Production.ERROR: pbx CDR StartTime 2025-02-11 18:44:05 - End Time 2025-02-11 21:44:05 [2025-02-11 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454563', 'tblTempUsageDetail_20' ) start [2025-02-11 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454563', 'tblTempUsageDetail_20' ) end [2025-02-11 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454563', 'tblTempVendorCDR_20' ) start [2025-02-11 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454563', 'tblTempVendorCDR_20' ) end [2025-02-11 21:44:18] Production.INFO: ProcessCDR(1,14454563,1,1,2) [2025-02-11 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454563', 'tblTempUsageDetail_20' ) start [2025-02-11 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454563', 'tblTempUsageDetail_20' ) end [2025-02-11 21:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:44:21] Production.INFO: ==25980== Releasing lock... [2025-02-11 21:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:44:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-11 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:45:05 [end_date_ymd] => 2025-02-11 21:45:05 [RateCDR] => 1 ) [2025-02-11 21:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:45:05' and `end` < '2025-02-11 21:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:45:18] Production.INFO: count ==1239 [2025-02-11 21:45:18] Production.ERROR: pbx CDR StartTime 2025-02-11 18:45:05 - End Time 2025-02-11 21:45:05 [2025-02-11 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454568', 'tblTempUsageDetail_20' ) start [2025-02-11 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454568', 'tblTempUsageDetail_20' ) end [2025-02-11 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454568', 'tblTempVendorCDR_20' ) start [2025-02-11 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454568', 'tblTempVendorCDR_20' ) end [2025-02-11 21:45:18] Production.INFO: ProcessCDR(1,14454568,1,1,2) [2025-02-11 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454568', 'tblTempUsageDetail_20' ) start [2025-02-11 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454568', 'tblTempUsageDetail_20' ) end [2025-02-11 21:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:45:22] Production.INFO: ==26057== Releasing lock... [2025-02-11 21:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:45:22] Production.INFO: 37 MB #Memory Used# [2025-02-11 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:46:05 [end_date_ymd] => 2025-02-11 21:46:05 [RateCDR] => 1 ) [2025-02-11 21:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:46:05' and `end` < '2025-02-11 21:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:46:19] Production.INFO: count ==1238 [2025-02-11 21:46:19] Production.ERROR: pbx CDR StartTime 2025-02-11 18:46:05 - End Time 2025-02-11 21:46:05 [2025-02-11 21:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454573', 'tblTempUsageDetail_20' ) start [2025-02-11 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454573', 'tblTempUsageDetail_20' ) end [2025-02-11 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454573', 'tblTempVendorCDR_20' ) start [2025-02-11 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454573', 'tblTempVendorCDR_20' ) end [2025-02-11 21:46:19] Production.INFO: ProcessCDR(1,14454573,1,1,2) [2025-02-11 21:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454573', 'tblTempUsageDetail_20' ) start [2025-02-11 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454573', 'tblTempUsageDetail_20' ) end [2025-02-11 21:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:46:22] Production.INFO: ==26128== Releasing lock... [2025-02-11 21:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:46:22] Production.INFO: 37 MB #Memory Used# [2025-02-11 21:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:47:04 [end_date_ymd] => 2025-02-11 21:47:04 [RateCDR] => 1 ) [2025-02-11 21:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:47:04' and `end` < '2025-02-11 21:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:47:18] Production.INFO: count ==1243 [2025-02-11 21:47:18] Production.ERROR: pbx CDR StartTime 2025-02-11 18:47:04 - End Time 2025-02-11 21:47:04 [2025-02-11 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454578', 'tblTempUsageDetail_20' ) start [2025-02-11 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454578', 'tblTempUsageDetail_20' ) end [2025-02-11 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454578', 'tblTempVendorCDR_20' ) start [2025-02-11 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454578', 'tblTempVendorCDR_20' ) end [2025-02-11 21:47:18] Production.INFO: ProcessCDR(1,14454578,1,1,2) [2025-02-11 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454578', 'tblTempUsageDetail_20' ) start [2025-02-11 21:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454578', 'tblTempUsageDetail_20' ) end [2025-02-11 21:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:47:23] Production.INFO: ==26203== Releasing lock... [2025-02-11 21:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:47:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-11 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:48:05 [end_date_ymd] => 2025-02-11 21:48:05 [RateCDR] => 1 ) [2025-02-11 21:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:48:05' and `end` < '2025-02-11 21:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:48:18] Production.INFO: count ==1272 [2025-02-11 21:48:18] Production.ERROR: pbx CDR StartTime 2025-02-11 18:48:05 - End Time 2025-02-11 21:48:05 [2025-02-11 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454583', 'tblTempUsageDetail_20' ) start [2025-02-11 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454583', 'tblTempUsageDetail_20' ) end [2025-02-11 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454583', 'tblTempVendorCDR_20' ) start [2025-02-11 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454583', 'tblTempVendorCDR_20' ) end [2025-02-11 21:48:19] Production.INFO: ProcessCDR(1,14454583,1,1,2) [2025-02-11 21:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454583', 'tblTempUsageDetail_20' ) start [2025-02-11 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454583', 'tblTempUsageDetail_20' ) end [2025-02-11 21:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:48:22] Production.INFO: ==26277== Releasing lock... [2025-02-11 21:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:48:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-11 21:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:49:04 [end_date_ymd] => 2025-02-11 21:49:04 [RateCDR] => 1 ) [2025-02-11 21:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:49:04' and `end` < '2025-02-11 21:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:49:17] Production.INFO: count ==1295 [2025-02-11 21:49:18] Production.ERROR: pbx CDR StartTime 2025-02-11 18:49:04 - End Time 2025-02-11 21:49:04 [2025-02-11 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454588', 'tblTempUsageDetail_20' ) start [2025-02-11 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454588', 'tblTempUsageDetail_20' ) end [2025-02-11 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454588', 'tblTempVendorCDR_20' ) start [2025-02-11 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454588', 'tblTempVendorCDR_20' ) end [2025-02-11 21:49:18] Production.INFO: ProcessCDR(1,14454588,1,1,2) [2025-02-11 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454588', 'tblTempUsageDetail_20' ) start [2025-02-11 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454588', 'tblTempUsageDetail_20' ) end [2025-02-11 21:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:49:21] Production.INFO: ==26380== Releasing lock... [2025-02-11 21:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:49:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-11 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:50:06 [end_date_ymd] => 2025-02-11 21:50:06 [RateCDR] => 1 ) [2025-02-11 21:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:50:06' and `end` < '2025-02-11 21:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:50:19] Production.INFO: count ==1280 [2025-02-11 21:50:19] Production.ERROR: pbx CDR StartTime 2025-02-11 18:50:06 - End Time 2025-02-11 21:50:06 [2025-02-11 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454593', 'tblTempUsageDetail_20' ) start [2025-02-11 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454593', 'tblTempUsageDetail_20' ) end [2025-02-11 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454593', 'tblTempVendorCDR_20' ) start [2025-02-11 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454593', 'tblTempVendorCDR_20' ) end [2025-02-11 21:50:19] Production.INFO: ProcessCDR(1,14454593,1,1,2) [2025-02-11 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454593', 'tblTempUsageDetail_20' ) start [2025-02-11 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454593', 'tblTempUsageDetail_20' ) end [2025-02-11 21:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:50:23] Production.INFO: ==26491== Releasing lock... [2025-02-11 21:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:50:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-11 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:51:05 [end_date_ymd] => 2025-02-11 21:51:05 [RateCDR] => 1 ) [2025-02-11 21:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:51:05' and `end` < '2025-02-11 21:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:51:18] Production.INFO: count ==1237 [2025-02-11 21:51:18] Production.ERROR: pbx CDR StartTime 2025-02-11 18:51:05 - End Time 2025-02-11 21:51:05 [2025-02-11 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454599', 'tblTempUsageDetail_20' ) start [2025-02-11 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454599', 'tblTempUsageDetail_20' ) end [2025-02-11 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454599', 'tblTempVendorCDR_20' ) start [2025-02-11 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454599', 'tblTempVendorCDR_20' ) end [2025-02-11 21:51:18] Production.INFO: ProcessCDR(1,14454599,1,1,2) [2025-02-11 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454599', 'tblTempUsageDetail_20' ) start [2025-02-11 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454599', 'tblTempUsageDetail_20' ) end [2025-02-11 21:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:51:21] Production.INFO: ==26592== Releasing lock... [2025-02-11 21:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:51:21] Production.INFO: 37 MB #Memory Used# [2025-02-11 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:52:05 [end_date_ymd] => 2025-02-11 21:52:05 [RateCDR] => 1 ) [2025-02-11 21:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:52:05' and `end` < '2025-02-11 21:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:52:18] Production.INFO: count ==1238 [2025-02-11 21:52:18] Production.ERROR: pbx CDR StartTime 2025-02-11 18:52:05 - End Time 2025-02-11 21:52:05 [2025-02-11 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454604', 'tblTempUsageDetail_20' ) start [2025-02-11 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454604', 'tblTempUsageDetail_20' ) end [2025-02-11 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454604', 'tblTempVendorCDR_20' ) start [2025-02-11 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454604', 'tblTempVendorCDR_20' ) end [2025-02-11 21:52:18] Production.INFO: ProcessCDR(1,14454604,1,1,2) [2025-02-11 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454604', 'tblTempUsageDetail_20' ) start [2025-02-11 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454604', 'tblTempUsageDetail_20' ) end [2025-02-11 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:52:22] Production.INFO: ==26667== Releasing lock... [2025-02-11 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:52:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-11 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:53:05 [end_date_ymd] => 2025-02-11 21:53:05 [RateCDR] => 1 ) [2025-02-11 21:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:53:05' and `end` < '2025-02-11 21:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:53:18] Production.INFO: count ==1234 [2025-02-11 21:53:18] Production.ERROR: pbx CDR StartTime 2025-02-11 18:53:05 - End Time 2025-02-11 21:53:05 [2025-02-11 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454609', 'tblTempUsageDetail_20' ) start [2025-02-11 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454609', 'tblTempUsageDetail_20' ) end [2025-02-11 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454609', 'tblTempVendorCDR_20' ) start [2025-02-11 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454609', 'tblTempVendorCDR_20' ) end [2025-02-11 21:53:18] Production.INFO: ProcessCDR(1,14454609,1,1,2) [2025-02-11 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454609', 'tblTempUsageDetail_20' ) start [2025-02-11 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454609', 'tblTempUsageDetail_20' ) end [2025-02-11 21:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:53:21] Production.INFO: ==26742== Releasing lock... [2025-02-11 21:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:53:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-11 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:54:05 [end_date_ymd] => 2025-02-11 21:54:05 [RateCDR] => 1 ) [2025-02-11 21:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:54:05' and `end` < '2025-02-11 21:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:54:19] Production.INFO: count ==1234 [2025-02-11 21:54:19] Production.ERROR: pbx CDR StartTime 2025-02-11 18:54:05 - End Time 2025-02-11 21:54:05 [2025-02-11 21:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454614', 'tblTempUsageDetail_20' ) start [2025-02-11 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454614', 'tblTempUsageDetail_20' ) end [2025-02-11 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454614', 'tblTempVendorCDR_20' ) start [2025-02-11 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454614', 'tblTempVendorCDR_20' ) end [2025-02-11 21:54:19] Production.INFO: ProcessCDR(1,14454614,1,1,2) [2025-02-11 21:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454614', 'tblTempUsageDetail_20' ) start [2025-02-11 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454614', 'tblTempUsageDetail_20' ) end [2025-02-11 21:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:54:22] Production.INFO: ==26817== Releasing lock... [2025-02-11 21:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:54:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-11 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:55:05 [end_date_ymd] => 2025-02-11 21:55:05 [RateCDR] => 1 ) [2025-02-11 21:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:55:05' and `end` < '2025-02-11 21:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:55:19] Production.INFO: count ==1236 [2025-02-11 21:55:19] Production.ERROR: pbx CDR StartTime 2025-02-11 18:55:05 - End Time 2025-02-11 21:55:05 [2025-02-11 21:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454619', 'tblTempUsageDetail_20' ) start [2025-02-11 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454619', 'tblTempUsageDetail_20' ) end [2025-02-11 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454619', 'tblTempVendorCDR_20' ) start [2025-02-11 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454619', 'tblTempVendorCDR_20' ) end [2025-02-11 21:55:19] Production.INFO: ProcessCDR(1,14454619,1,1,2) [2025-02-11 21:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454619', 'tblTempUsageDetail_20' ) start [2025-02-11 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454619', 'tblTempUsageDetail_20' ) end [2025-02-11 21:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:55:22] Production.INFO: ==26929== Releasing lock... [2025-02-11 21:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:55:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-11 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:56:05 [end_date_ymd] => 2025-02-11 21:56:05 [RateCDR] => 1 ) [2025-02-11 21:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:56:05' and `end` < '2025-02-11 21:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:56:18] Production.INFO: count ==1229 [2025-02-11 21:56:18] Production.ERROR: pbx CDR StartTime 2025-02-11 18:56:05 - End Time 2025-02-11 21:56:05 [2025-02-11 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454624', 'tblTempUsageDetail_20' ) start [2025-02-11 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454624', 'tblTempUsageDetail_20' ) end [2025-02-11 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454624', 'tblTempVendorCDR_20' ) start [2025-02-11 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454624', 'tblTempVendorCDR_20' ) end [2025-02-11 21:56:18] Production.INFO: ProcessCDR(1,14454624,1,1,2) [2025-02-11 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454624', 'tblTempUsageDetail_20' ) start [2025-02-11 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454624', 'tblTempUsageDetail_20' ) end [2025-02-11 21:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:56:22] Production.INFO: ==27004== Releasing lock... [2025-02-11 21:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:56:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-11 21:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:57:06 [end_date_ymd] => 2025-02-11 21:57:06 [RateCDR] => 1 ) [2025-02-11 21:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:57:06' and `end` < '2025-02-11 21:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:57:19] Production.INFO: count ==1233 [2025-02-11 21:57:19] Production.ERROR: pbx CDR StartTime 2025-02-11 18:57:06 - End Time 2025-02-11 21:57:06 [2025-02-11 21:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454629', 'tblTempUsageDetail_20' ) start [2025-02-11 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454629', 'tblTempUsageDetail_20' ) end [2025-02-11 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454629', 'tblTempVendorCDR_20' ) start [2025-02-11 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454629', 'tblTempVendorCDR_20' ) end [2025-02-11 21:57:19] Production.INFO: ProcessCDR(1,14454629,1,1,2) [2025-02-11 21:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454629', 'tblTempUsageDetail_20' ) start [2025-02-11 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454629', 'tblTempUsageDetail_20' ) end [2025-02-11 21:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:57:22] Production.INFO: ==27082== Releasing lock... [2025-02-11 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:57:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-11 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:58:05 [end_date_ymd] => 2025-02-11 21:58:05 [RateCDR] => 1 ) [2025-02-11 21:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:58:05' and `end` < '2025-02-11 21:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:58:19] Production.INFO: count ==1220 [2025-02-11 21:58:19] Production.ERROR: pbx CDR StartTime 2025-02-11 18:58:05 - End Time 2025-02-11 21:58:05 [2025-02-11 21:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454634', 'tblTempUsageDetail_20' ) start [2025-02-11 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454634', 'tblTempUsageDetail_20' ) end [2025-02-11 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454634', 'tblTempVendorCDR_20' ) start [2025-02-11 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454634', 'tblTempVendorCDR_20' ) end [2025-02-11 21:58:19] Production.INFO: ProcessCDR(1,14454634,1,1,2) [2025-02-11 21:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454634', 'tblTempUsageDetail_20' ) start [2025-02-11 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454634', 'tblTempUsageDetail_20' ) end [2025-02-11 21:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:58:22] Production.INFO: ==27161== Releasing lock... [2025-02-11 21:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:58:22] Production.INFO: 37 MB #Memory Used# [2025-02-11 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 18:59:05 [end_date_ymd] => 2025-02-11 21:59:05 [RateCDR] => 1 ) [2025-02-11 21:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 18:59:05' and `end` < '2025-02-11 21:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 21:59:20] Production.INFO: count ==1223 [2025-02-11 21:59:20] Production.ERROR: pbx CDR StartTime 2025-02-11 18:59:05 - End Time 2025-02-11 21:59:05 [2025-02-11 21:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 21:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454639', 'tblTempUsageDetail_20' ) start [2025-02-11 21:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454639', 'tblTempUsageDetail_20' ) end [2025-02-11 21:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454639', 'tblTempVendorCDR_20' ) start [2025-02-11 21:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454639', 'tblTempVendorCDR_20' ) end [2025-02-11 21:59:20] Production.INFO: ProcessCDR(1,14454639,1,1,2) [2025-02-11 21:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 21:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 21:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454639', 'tblTempUsageDetail_20' ) start [2025-02-11 21:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454639', 'tblTempUsageDetail_20' ) end [2025-02-11 21:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 21:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 21:59:23] Production.INFO: ==27234== Releasing lock... [2025-02-11 21:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 21:59:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-11 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:00:06 [end_date_ymd] => 2025-02-11 22:00:06 [RateCDR] => 1 ) [2025-02-11 22:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:00:06' and `end` < '2025-02-11 22:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:00:19] Production.INFO: count ==1265 [2025-02-11 22:00:19] Production.ERROR: pbx CDR StartTime 2025-02-11 19:00:06 - End Time 2025-02-11 22:00:06 [2025-02-11 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454645', 'tblTempUsageDetail_20' ) start [2025-02-11 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454645', 'tblTempUsageDetail_20' ) end [2025-02-11 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454645', 'tblTempVendorCDR_20' ) start [2025-02-11 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454645', 'tblTempVendorCDR_20' ) end [2025-02-11 22:00:19] Production.INFO: ProcessCDR(1,14454645,1,1,2) [2025-02-11 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454645', 'tblTempUsageDetail_20' ) start [2025-02-11 22:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454645', 'tblTempUsageDetail_20' ) end [2025-02-11 22:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:00:25] Production.INFO: ==27314== Releasing lock... [2025-02-11 22:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:00:25] Production.INFO: 37.5 MB #Memory Used# [2025-02-11 22:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:01:06 [end_date_ymd] => 2025-02-11 22:01:06 [RateCDR] => 1 ) [2025-02-11 22:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:01:06' and `end` < '2025-02-11 22:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:01:19] Production.INFO: count ==1236 [2025-02-11 22:01:19] Production.ERROR: pbx CDR StartTime 2025-02-11 19:01:06 - End Time 2025-02-11 22:01:06 [2025-02-11 22:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454650', 'tblTempUsageDetail_20' ) start [2025-02-11 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454650', 'tblTempUsageDetail_20' ) end [2025-02-11 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454650', 'tblTempVendorCDR_20' ) start [2025-02-11 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454650', 'tblTempVendorCDR_20' ) end [2025-02-11 22:01:19] Production.INFO: ProcessCDR(1,14454650,1,1,2) [2025-02-11 22:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454650', 'tblTempUsageDetail_20' ) start [2025-02-11 22:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454650', 'tblTempUsageDetail_20' ) end [2025-02-11 22:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:01:23] Production.INFO: ==27400== Releasing lock... [2025-02-11 22:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:01:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-11 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:02:05 [end_date_ymd] => 2025-02-11 22:02:05 [RateCDR] => 1 ) [2025-02-11 22:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:02:05' and `end` < '2025-02-11 22:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:02:18] Production.INFO: count ==1230 [2025-02-11 22:02:18] Production.ERROR: pbx CDR StartTime 2025-02-11 19:02:05 - End Time 2025-02-11 22:02:05 [2025-02-11 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454655', 'tblTempUsageDetail_20' ) start [2025-02-11 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454655', 'tblTempUsageDetail_20' ) end [2025-02-11 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454655', 'tblTempVendorCDR_20' ) start [2025-02-11 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454655', 'tblTempVendorCDR_20' ) end [2025-02-11 22:02:18] Production.INFO: ProcessCDR(1,14454655,1,1,2) [2025-02-11 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454655', 'tblTempUsageDetail_20' ) start [2025-02-11 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454655', 'tblTempUsageDetail_20' ) end [2025-02-11 22:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:02:23] Production.INFO: ==27475== Releasing lock... [2025-02-11 22:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:02:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-11 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:03:05 [end_date_ymd] => 2025-02-11 22:03:05 [RateCDR] => 1 ) [2025-02-11 22:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:03:05' and `end` < '2025-02-11 22:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:03:18] Production.INFO: count ==1225 [2025-02-11 22:03:19] Production.ERROR: pbx CDR StartTime 2025-02-11 19:03:05 - End Time 2025-02-11 22:03:05 [2025-02-11 22:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454660', 'tblTempUsageDetail_20' ) start [2025-02-11 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454660', 'tblTempUsageDetail_20' ) end [2025-02-11 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454660', 'tblTempVendorCDR_20' ) start [2025-02-11 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454660', 'tblTempVendorCDR_20' ) end [2025-02-11 22:03:19] Production.INFO: ProcessCDR(1,14454660,1,1,2) [2025-02-11 22:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454660', 'tblTempUsageDetail_20' ) start [2025-02-11 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454660', 'tblTempUsageDetail_20' ) end [2025-02-11 22:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:03:23] Production.INFO: ==27557== Releasing lock... [2025-02-11 22:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:03:23] Production.INFO: 37 MB #Memory Used# [2025-02-11 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:04:05 [end_date_ymd] => 2025-02-11 22:04:05 [RateCDR] => 1 ) [2025-02-11 22:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:04:05' and `end` < '2025-02-11 22:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:04:18] Production.INFO: count ==1228 [2025-02-11 22:04:18] Production.ERROR: pbx CDR StartTime 2025-02-11 19:04:05 - End Time 2025-02-11 22:04:05 [2025-02-11 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454665', 'tblTempUsageDetail_20' ) start [2025-02-11 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454665', 'tblTempUsageDetail_20' ) end [2025-02-11 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454665', 'tblTempVendorCDR_20' ) start [2025-02-11 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454665', 'tblTempVendorCDR_20' ) end [2025-02-11 22:04:18] Production.INFO: ProcessCDR(1,14454665,1,1,2) [2025-02-11 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454665', 'tblTempUsageDetail_20' ) start [2025-02-11 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454665', 'tblTempUsageDetail_20' ) end [2025-02-11 22:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:04:21] Production.INFO: ==27631== Releasing lock... [2025-02-11 22:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:04:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-11 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:05:05 [end_date_ymd] => 2025-02-11 22:05:05 [RateCDR] => 1 ) [2025-02-11 22:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:05:05' and `end` < '2025-02-11 22:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:05:18] Production.INFO: count ==1226 [2025-02-11 22:05:18] Production.ERROR: pbx CDR StartTime 2025-02-11 19:05:05 - End Time 2025-02-11 22:05:05 [2025-02-11 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454670', 'tblTempUsageDetail_20' ) start [2025-02-11 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454670', 'tblTempUsageDetail_20' ) end [2025-02-11 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454670', 'tblTempVendorCDR_20' ) start [2025-02-11 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454670', 'tblTempVendorCDR_20' ) end [2025-02-11 22:05:18] Production.INFO: ProcessCDR(1,14454670,1,1,2) [2025-02-11 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454670', 'tblTempUsageDetail_20' ) start [2025-02-11 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454670', 'tblTempUsageDetail_20' ) end [2025-02-11 22:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:05:22] Production.INFO: ==27707== Releasing lock... [2025-02-11 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:05:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-11 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:06:05 [end_date_ymd] => 2025-02-11 22:06:05 [RateCDR] => 1 ) [2025-02-11 22:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:06:05' and `end` < '2025-02-11 22:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:06:18] Production.INFO: count ==1224 [2025-02-11 22:06:18] Production.ERROR: pbx CDR StartTime 2025-02-11 19:06:05 - End Time 2025-02-11 22:06:05 [2025-02-11 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454675', 'tblTempUsageDetail_20' ) start [2025-02-11 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454675', 'tblTempUsageDetail_20' ) end [2025-02-11 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454675', 'tblTempVendorCDR_20' ) start [2025-02-11 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454675', 'tblTempVendorCDR_20' ) end [2025-02-11 22:06:18] Production.INFO: ProcessCDR(1,14454675,1,1,2) [2025-02-11 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454675', 'tblTempUsageDetail_20' ) start [2025-02-11 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454675', 'tblTempUsageDetail_20' ) end [2025-02-11 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:06:22] Production.INFO: ==27784== Releasing lock... [2025-02-11 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:06:22] Production.INFO: 37 MB #Memory Used# [2025-02-11 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:07:05 [end_date_ymd] => 2025-02-11 22:07:05 [RateCDR] => 1 ) [2025-02-11 22:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:07:05' and `end` < '2025-02-11 22:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:07:18] Production.INFO: count ==1223 [2025-02-11 22:07:19] Production.ERROR: pbx CDR StartTime 2025-02-11 19:07:05 - End Time 2025-02-11 22:07:05 [2025-02-11 22:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454680', 'tblTempUsageDetail_20' ) start [2025-02-11 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454680', 'tblTempUsageDetail_20' ) end [2025-02-11 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454680', 'tblTempVendorCDR_20' ) start [2025-02-11 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454680', 'tblTempVendorCDR_20' ) end [2025-02-11 22:07:19] Production.INFO: ProcessCDR(1,14454680,1,1,2) [2025-02-11 22:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454680', 'tblTempUsageDetail_20' ) start [2025-02-11 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454680', 'tblTempUsageDetail_20' ) end [2025-02-11 22:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:07:22] Production.INFO: ==27860== Releasing lock... [2025-02-11 22:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:07:22] Production.INFO: 37 MB #Memory Used# [2025-02-11 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:08:05 [end_date_ymd] => 2025-02-11 22:08:05 [RateCDR] => 1 ) [2025-02-11 22:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:08:05' and `end` < '2025-02-11 22:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:08:18] Production.INFO: count ==1218 [2025-02-11 22:08:18] Production.ERROR: pbx CDR StartTime 2025-02-11 19:08:05 - End Time 2025-02-11 22:08:05 [2025-02-11 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454685', 'tblTempUsageDetail_20' ) start [2025-02-11 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454685', 'tblTempUsageDetail_20' ) end [2025-02-11 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454685', 'tblTempVendorCDR_20' ) start [2025-02-11 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454685', 'tblTempVendorCDR_20' ) end [2025-02-11 22:08:18] Production.INFO: ProcessCDR(1,14454685,1,1,2) [2025-02-11 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454685', 'tblTempUsageDetail_20' ) start [2025-02-11 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454685', 'tblTempUsageDetail_20' ) end [2025-02-11 22:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:08:22] Production.INFO: ==27937== Releasing lock... [2025-02-11 22:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:08:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-11 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:09:05 [end_date_ymd] => 2025-02-11 22:09:05 [RateCDR] => 1 ) [2025-02-11 22:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:09:05' and `end` < '2025-02-11 22:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:09:18] Production.INFO: count ==1217 [2025-02-11 22:09:18] Production.ERROR: pbx CDR StartTime 2025-02-11 19:09:05 - End Time 2025-02-11 22:09:05 [2025-02-11 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454690', 'tblTempUsageDetail_20' ) start [2025-02-11 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454690', 'tblTempUsageDetail_20' ) end [2025-02-11 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454690', 'tblTempVendorCDR_20' ) start [2025-02-11 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454690', 'tblTempVendorCDR_20' ) end [2025-02-11 22:09:18] Production.INFO: ProcessCDR(1,14454690,1,1,2) [2025-02-11 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454690', 'tblTempUsageDetail_20' ) start [2025-02-11 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454690', 'tblTempUsageDetail_20' ) end [2025-02-11 22:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:09:22] Production.INFO: ==28014== Releasing lock... [2025-02-11 22:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:09:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-11 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:10:06 [end_date_ymd] => 2025-02-11 22:10:06 [RateCDR] => 1 ) [2025-02-11 22:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:10:06' and `end` < '2025-02-11 22:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:10:19] Production.INFO: count ==1214 [2025-02-11 22:10:19] Production.ERROR: pbx CDR StartTime 2025-02-11 19:10:06 - End Time 2025-02-11 22:10:06 [2025-02-11 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454695', 'tblTempUsageDetail_20' ) start [2025-02-11 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454695', 'tblTempUsageDetail_20' ) end [2025-02-11 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454695', 'tblTempVendorCDR_20' ) start [2025-02-11 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454695', 'tblTempVendorCDR_20' ) end [2025-02-11 22:10:19] Production.INFO: ProcessCDR(1,14454695,1,1,2) [2025-02-11 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454695', 'tblTempUsageDetail_20' ) start [2025-02-11 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454695', 'tblTempUsageDetail_20' ) end [2025-02-11 22:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:10:23] Production.INFO: ==28090== Releasing lock... [2025-02-11 22:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:10:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-11 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:11:05 [end_date_ymd] => 2025-02-11 22:11:05 [RateCDR] => 1 ) [2025-02-11 22:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:11:05' and `end` < '2025-02-11 22:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:11:19] Production.INFO: count ==1197 [2025-02-11 22:11:20] Production.ERROR: pbx CDR StartTime 2025-02-11 19:11:05 - End Time 2025-02-11 22:11:05 [2025-02-11 22:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454701', 'tblTempUsageDetail_20' ) start [2025-02-11 22:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454701', 'tblTempUsageDetail_20' ) end [2025-02-11 22:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454701', 'tblTempVendorCDR_20' ) start [2025-02-11 22:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454701', 'tblTempVendorCDR_20' ) end [2025-02-11 22:11:20] Production.INFO: ProcessCDR(1,14454701,1,1,2) [2025-02-11 22:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454701', 'tblTempUsageDetail_20' ) start [2025-02-11 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454701', 'tblTempUsageDetail_20' ) end [2025-02-11 22:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:11:23] Production.INFO: ==28213== Releasing lock... [2025-02-11 22:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:11:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-11 22:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:12:06 [end_date_ymd] => 2025-02-11 22:12:06 [RateCDR] => 1 ) [2025-02-11 22:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:12:06' and `end` < '2025-02-11 22:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:12:19] Production.INFO: count ==1191 [2025-02-11 22:12:19] Production.ERROR: pbx CDR StartTime 2025-02-11 19:12:06 - End Time 2025-02-11 22:12:06 [2025-02-11 22:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454706', 'tblTempUsageDetail_20' ) start [2025-02-11 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454706', 'tblTempUsageDetail_20' ) end [2025-02-11 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454706', 'tblTempVendorCDR_20' ) start [2025-02-11 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454706', 'tblTempVendorCDR_20' ) end [2025-02-11 22:12:19] Production.INFO: ProcessCDR(1,14454706,1,1,2) [2025-02-11 22:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454706', 'tblTempUsageDetail_20' ) start [2025-02-11 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454706', 'tblTempUsageDetail_20' ) end [2025-02-11 22:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:12:22] Production.INFO: ==28286== Releasing lock... [2025-02-11 22:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:12:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-11 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:13:05 [end_date_ymd] => 2025-02-11 22:13:05 [RateCDR] => 1 ) [2025-02-11 22:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:13:05' and `end` < '2025-02-11 22:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:13:18] Production.INFO: count ==1186 [2025-02-11 22:13:18] Production.ERROR: pbx CDR StartTime 2025-02-11 19:13:05 - End Time 2025-02-11 22:13:05 [2025-02-11 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454711', 'tblTempUsageDetail_20' ) start [2025-02-11 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454711', 'tblTempUsageDetail_20' ) end [2025-02-11 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454711', 'tblTempVendorCDR_20' ) start [2025-02-11 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454711', 'tblTempVendorCDR_20' ) end [2025-02-11 22:13:18] Production.INFO: ProcessCDR(1,14454711,1,1,2) [2025-02-11 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454711', 'tblTempUsageDetail_20' ) start [2025-02-11 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454711', 'tblTempUsageDetail_20' ) end [2025-02-11 22:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:13:21] Production.INFO: ==28363== Releasing lock... [2025-02-11 22:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:13:21] Production.INFO: 37 MB #Memory Used# [2025-02-11 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:14:05 [end_date_ymd] => 2025-02-11 22:14:05 [RateCDR] => 1 ) [2025-02-11 22:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:14:05' and `end` < '2025-02-11 22:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:14:19] Production.INFO: count ==1182 [2025-02-11 22:14:19] Production.ERROR: pbx CDR StartTime 2025-02-11 19:14:05 - End Time 2025-02-11 22:14:05 [2025-02-11 22:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454716', 'tblTempUsageDetail_20' ) start [2025-02-11 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454716', 'tblTempUsageDetail_20' ) end [2025-02-11 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454716', 'tblTempVendorCDR_20' ) start [2025-02-11 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454716', 'tblTempVendorCDR_20' ) end [2025-02-11 22:14:19] Production.INFO: ProcessCDR(1,14454716,1,1,2) [2025-02-11 22:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454716', 'tblTempUsageDetail_20' ) start [2025-02-11 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454716', 'tblTempUsageDetail_20' ) end [2025-02-11 22:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:14:22] Production.INFO: ==28438== Releasing lock... [2025-02-11 22:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:14:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-11 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:15:05 [end_date_ymd] => 2025-02-11 22:15:05 [RateCDR] => 1 ) [2025-02-11 22:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:15:05' and `end` < '2025-02-11 22:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:15:18] Production.INFO: count ==1182 [2025-02-11 22:15:18] Production.ERROR: pbx CDR StartTime 2025-02-11 19:15:05 - End Time 2025-02-11 22:15:05 [2025-02-11 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454721', 'tblTempUsageDetail_20' ) start [2025-02-11 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454721', 'tblTempUsageDetail_20' ) end [2025-02-11 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454721', 'tblTempVendorCDR_20' ) start [2025-02-11 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454721', 'tblTempVendorCDR_20' ) end [2025-02-11 22:15:18] Production.INFO: ProcessCDR(1,14454721,1,1,2) [2025-02-11 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454721', 'tblTempUsageDetail_20' ) start [2025-02-11 22:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454721', 'tblTempUsageDetail_20' ) end [2025-02-11 22:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:15:23] Production.INFO: ==28515== Releasing lock... [2025-02-11 22:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:15:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-11 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:16:05 [end_date_ymd] => 2025-02-11 22:16:05 [RateCDR] => 1 ) [2025-02-11 22:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:16:05' and `end` < '2025-02-11 22:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:16:19] Production.INFO: count ==1182 [2025-02-11 22:16:19] Production.ERROR: pbx CDR StartTime 2025-02-11 19:16:05 - End Time 2025-02-11 22:16:05 [2025-02-11 22:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454726', 'tblTempUsageDetail_20' ) start [2025-02-11 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454726', 'tblTempUsageDetail_20' ) end [2025-02-11 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454726', 'tblTempVendorCDR_20' ) start [2025-02-11 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454726', 'tblTempVendorCDR_20' ) end [2025-02-11 22:16:19] Production.INFO: ProcessCDR(1,14454726,1,1,2) [2025-02-11 22:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454726', 'tblTempUsageDetail_20' ) start [2025-02-11 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454726', 'tblTempUsageDetail_20' ) end [2025-02-11 22:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:16:22] Production.INFO: ==28595== Releasing lock... [2025-02-11 22:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:16:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-11 22:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:17:06 [end_date_ymd] => 2025-02-11 22:17:06 [RateCDR] => 1 ) [2025-02-11 22:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:17:06' and `end` < '2025-02-11 22:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:17:19] Production.INFO: count ==1182 [2025-02-11 22:17:20] Production.ERROR: pbx CDR StartTime 2025-02-11 19:17:06 - End Time 2025-02-11 22:17:06 [2025-02-11 22:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454731', 'tblTempUsageDetail_20' ) start [2025-02-11 22:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454731', 'tblTempUsageDetail_20' ) end [2025-02-11 22:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454731', 'tblTempVendorCDR_20' ) start [2025-02-11 22:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454731', 'tblTempVendorCDR_20' ) end [2025-02-11 22:17:20] Production.INFO: ProcessCDR(1,14454731,1,1,2) [2025-02-11 22:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454731', 'tblTempUsageDetail_20' ) start [2025-02-11 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454731', 'tblTempUsageDetail_20' ) end [2025-02-11 22:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:17:23] Production.INFO: ==28691== Releasing lock... [2025-02-11 22:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:17:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-11 22:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:18:06 [end_date_ymd] => 2025-02-11 22:18:06 [RateCDR] => 1 ) [2025-02-11 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-02-11 19:18:06' and `end` < '2025-02-11 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-02-11 22:18:19] Production.INFO: count ==1178 [2025-02-11 22:18:19] Production.ERROR: pbx CDR StartTime 2025-02-11 19:18:06 - End Time 2025-02-11 22:18:06 [2025-02-11 22:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454736', 'tblTempUsageDetail_20' ) start [2025-02-11 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454736', 'tblTempUsageDetail_20' ) end [2025-02-11 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454736', 'tblTempVendorCDR_20' ) start [2025-02-11 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454736', 'tblTempVendorCDR_20' ) end [2025-02-11 22:18:19] Production.INFO: ProcessCDR(1,14454736,1,1,2) [2025-02-11 22:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454736', 'tblTempUsageDetail_20' ) start [2025-02-11 22:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454736', 'tblTempUsageDetail_20' ) end [2025-02-11 22:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:18:23] Production.INFO: ==28767== Releasing lock... [2025-02-11 22:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:18:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-11 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:19:05 [end_date_ymd] => 2025-02-11 22:19:05 [RateCDR] => 1 ) [2025-02-11 22:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:19:05' and `end` < '2025-02-11 22:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:19:18] Production.INFO: count ==1179 [2025-02-11 22:19:19] Production.ERROR: pbx CDR StartTime 2025-02-11 19:19:05 - End Time 2025-02-11 22:19:05 [2025-02-11 22:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454741', 'tblTempUsageDetail_20' ) start [2025-02-11 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454741', 'tblTempUsageDetail_20' ) end [2025-02-11 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454741', 'tblTempVendorCDR_20' ) start [2025-02-11 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454741', 'tblTempVendorCDR_20' ) end [2025-02-11 22:19:19] Production.INFO: ProcessCDR(1,14454741,1,1,2) [2025-02-11 22:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454741', 'tblTempUsageDetail_20' ) start [2025-02-11 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454741', 'tblTempUsageDetail_20' ) end [2025-02-11 22:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:19:22] Production.INFO: ==28842== Releasing lock... [2025-02-11 22:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:19:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-11 22:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:20:05 [end_date_ymd] => 2025-02-11 22:20:05 [RateCDR] => 1 ) [2025-02-11 22:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:20:05' and `end` < '2025-02-11 22:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:20:18] Production.INFO: count ==1172 [2025-02-11 22:20:19] Production.ERROR: pbx CDR StartTime 2025-02-11 19:20:05 - End Time 2025-02-11 22:20:05 [2025-02-11 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454747', 'tblTempUsageDetail_20' ) start [2025-02-11 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454747', 'tblTempUsageDetail_20' ) end [2025-02-11 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454747', 'tblTempVendorCDR_20' ) start [2025-02-11 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454747', 'tblTempVendorCDR_20' ) end [2025-02-11 22:20:19] Production.INFO: ProcessCDR(1,14454747,1,1,2) [2025-02-11 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454747', 'tblTempUsageDetail_20' ) start [2025-02-11 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454747', 'tblTempUsageDetail_20' ) end [2025-02-11 22:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:20:22] Production.INFO: ==28918== Releasing lock... [2025-02-11 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:20:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-11 22:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:21:06 [end_date_ymd] => 2025-02-11 22:21:06 [RateCDR] => 1 ) [2025-02-11 22:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:21:06' and `end` < '2025-02-11 22:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:21:19] Production.INFO: count ==1164 [2025-02-11 22:21:19] Production.ERROR: pbx CDR StartTime 2025-02-11 19:21:06 - End Time 2025-02-11 22:21:06 [2025-02-11 22:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454752', 'tblTempUsageDetail_20' ) start [2025-02-11 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454752', 'tblTempUsageDetail_20' ) end [2025-02-11 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454752', 'tblTempVendorCDR_20' ) start [2025-02-11 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454752', 'tblTempVendorCDR_20' ) end [2025-02-11 22:21:19] Production.INFO: ProcessCDR(1,14454752,1,1,2) [2025-02-11 22:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454752', 'tblTempUsageDetail_20' ) start [2025-02-11 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454752', 'tblTempUsageDetail_20' ) end [2025-02-11 22:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:21:22] Production.INFO: ==28994== Releasing lock... [2025-02-11 22:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:21:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-11 22:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:22:06 [end_date_ymd] => 2025-02-11 22:22:06 [RateCDR] => 1 ) [2025-02-11 22:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:22:06' and `end` < '2025-02-11 22:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:22:19] Production.INFO: count ==1163 [2025-02-11 22:22:19] Production.ERROR: pbx CDR StartTime 2025-02-11 19:22:06 - End Time 2025-02-11 22:22:06 [2025-02-11 22:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454757', 'tblTempUsageDetail_20' ) start [2025-02-11 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454757', 'tblTempUsageDetail_20' ) end [2025-02-11 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454757', 'tblTempVendorCDR_20' ) start [2025-02-11 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454757', 'tblTempVendorCDR_20' ) end [2025-02-11 22:22:19] Production.INFO: ProcessCDR(1,14454757,1,1,2) [2025-02-11 22:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454757', 'tblTempUsageDetail_20' ) start [2025-02-11 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454757', 'tblTempUsageDetail_20' ) end [2025-02-11 22:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:22:22] Production.INFO: ==29067== Releasing lock... [2025-02-11 22:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:22:22] Production.INFO: 37 MB #Memory Used# [2025-02-11 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:23:05 [end_date_ymd] => 2025-02-11 22:23:05 [RateCDR] => 1 ) [2025-02-11 22:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:23:05' and `end` < '2025-02-11 22:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:23:18] Production.INFO: count ==1158 [2025-02-11 22:23:19] Production.ERROR: pbx CDR StartTime 2025-02-11 19:23:05 - End Time 2025-02-11 22:23:05 [2025-02-11 22:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454762', 'tblTempUsageDetail_20' ) start [2025-02-11 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454762', 'tblTempUsageDetail_20' ) end [2025-02-11 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454762', 'tblTempVendorCDR_20' ) start [2025-02-11 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454762', 'tblTempVendorCDR_20' ) end [2025-02-11 22:23:19] Production.INFO: ProcessCDR(1,14454762,1,1,2) [2025-02-11 22:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454762', 'tblTempUsageDetail_20' ) start [2025-02-11 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454762', 'tblTempUsageDetail_20' ) end [2025-02-11 22:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:23:22] Production.INFO: ==29146== Releasing lock... [2025-02-11 22:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:23:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-11 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:24:05 [end_date_ymd] => 2025-02-11 22:24:05 [RateCDR] => 1 ) [2025-02-11 22:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:24:05' and `end` < '2025-02-11 22:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:24:18] Production.INFO: count ==1155 [2025-02-11 22:24:18] Production.ERROR: pbx CDR StartTime 2025-02-11 19:24:05 - End Time 2025-02-11 22:24:05 [2025-02-11 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454767', 'tblTempUsageDetail_20' ) start [2025-02-11 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454767', 'tblTempUsageDetail_20' ) end [2025-02-11 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454767', 'tblTempVendorCDR_20' ) start [2025-02-11 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454767', 'tblTempVendorCDR_20' ) end [2025-02-11 22:24:18] Production.INFO: ProcessCDR(1,14454767,1,1,2) [2025-02-11 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454767', 'tblTempUsageDetail_20' ) start [2025-02-11 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454767', 'tblTempUsageDetail_20' ) end [2025-02-11 22:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:24:21] Production.INFO: ==29221== Releasing lock... [2025-02-11 22:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:24:21] Production.INFO: 36.5 MB #Memory Used# [2025-02-11 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:25:05 [end_date_ymd] => 2025-02-11 22:25:05 [RateCDR] => 1 ) [2025-02-11 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:25:05' and `end` < '2025-02-11 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:25:18] Production.INFO: count ==1154 [2025-02-11 22:25:18] Production.ERROR: pbx CDR StartTime 2025-02-11 19:25:05 - End Time 2025-02-11 22:25:05 [2025-02-11 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454772', 'tblTempUsageDetail_20' ) start [2025-02-11 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454772', 'tblTempUsageDetail_20' ) end [2025-02-11 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454772', 'tblTempVendorCDR_20' ) start [2025-02-11 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454772', 'tblTempVendorCDR_20' ) end [2025-02-11 22:25:18] Production.INFO: ProcessCDR(1,14454772,1,1,2) [2025-02-11 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454772', 'tblTempUsageDetail_20' ) start [2025-02-11 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454772', 'tblTempUsageDetail_20' ) end [2025-02-11 22:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:25:21] Production.INFO: ==29303== Releasing lock... [2025-02-11 22:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:25:21] Production.INFO: 36.5 MB #Memory Used# [2025-02-11 22:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:26:04 [end_date_ymd] => 2025-02-11 22:26:04 [RateCDR] => 1 ) [2025-02-11 22:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:26:04' and `end` < '2025-02-11 22:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:26:17] Production.INFO: count ==1154 [2025-02-11 22:26:18] Production.ERROR: pbx CDR StartTime 2025-02-11 19:26:04 - End Time 2025-02-11 22:26:04 [2025-02-11 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454777', 'tblTempUsageDetail_20' ) start [2025-02-11 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454777', 'tblTempUsageDetail_20' ) end [2025-02-11 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454777', 'tblTempVendorCDR_20' ) start [2025-02-11 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454777', 'tblTempVendorCDR_20' ) end [2025-02-11 22:26:18] Production.INFO: ProcessCDR(1,14454777,1,1,2) [2025-02-11 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454777', 'tblTempUsageDetail_20' ) start [2025-02-11 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454777', 'tblTempUsageDetail_20' ) end [2025-02-11 22:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:26:21] Production.INFO: ==29415== Releasing lock... [2025-02-11 22:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:26:21] Production.INFO: 36.5 MB #Memory Used# [2025-02-11 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:27:05 [end_date_ymd] => 2025-02-11 22:27:05 [RateCDR] => 1 ) [2025-02-11 22:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:27:05' and `end` < '2025-02-11 22:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:27:18] Production.INFO: count ==1154 [2025-02-11 22:27:18] Production.ERROR: pbx CDR StartTime 2025-02-11 19:27:05 - End Time 2025-02-11 22:27:05 [2025-02-11 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454782', 'tblTempUsageDetail_20' ) start [2025-02-11 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454782', 'tblTempUsageDetail_20' ) end [2025-02-11 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454782', 'tblTempVendorCDR_20' ) start [2025-02-11 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454782', 'tblTempVendorCDR_20' ) end [2025-02-11 22:27:18] Production.INFO: ProcessCDR(1,14454782,1,1,2) [2025-02-11 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454782', 'tblTempUsageDetail_20' ) start [2025-02-11 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454782', 'tblTempUsageDetail_20' ) end [2025-02-11 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:27:22] Production.INFO: ==29490== Releasing lock... [2025-02-11 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:27:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-11 22:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:28:06 [end_date_ymd] => 2025-02-11 22:28:06 [RateCDR] => 1 ) [2025-02-11 22:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:28:06' and `end` < '2025-02-11 22:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:28:20] Production.INFO: count ==1133 [2025-02-11 22:28:20] Production.ERROR: pbx CDR StartTime 2025-02-11 19:28:06 - End Time 2025-02-11 22:28:06 [2025-02-11 22:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454787', 'tblTempUsageDetail_20' ) start [2025-02-11 22:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454787', 'tblTempUsageDetail_20' ) end [2025-02-11 22:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454787', 'tblTempVendorCDR_20' ) start [2025-02-11 22:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454787', 'tblTempVendorCDR_20' ) end [2025-02-11 22:28:20] Production.INFO: ProcessCDR(1,14454787,1,1,2) [2025-02-11 22:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454787', 'tblTempUsageDetail_20' ) start [2025-02-11 22:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454787', 'tblTempUsageDetail_20' ) end [2025-02-11 22:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:28:23] Production.INFO: ==29565== Releasing lock... [2025-02-11 22:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:28:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-11 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:29:05 [end_date_ymd] => 2025-02-11 22:29:05 [RateCDR] => 1 ) [2025-02-11 22:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:29:05' and `end` < '2025-02-11 22:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:29:19] Production.INFO: count ==1117 [2025-02-11 22:29:19] Production.ERROR: pbx CDR StartTime 2025-02-11 19:29:05 - End Time 2025-02-11 22:29:05 [2025-02-11 22:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454792', 'tblTempUsageDetail_20' ) start [2025-02-11 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454792', 'tblTempUsageDetail_20' ) end [2025-02-11 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454792', 'tblTempVendorCDR_20' ) start [2025-02-11 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454792', 'tblTempVendorCDR_20' ) end [2025-02-11 22:29:19] Production.INFO: ProcessCDR(1,14454792,1,1,2) [2025-02-11 22:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454792', 'tblTempUsageDetail_20' ) start [2025-02-11 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454792', 'tblTempUsageDetail_20' ) end [2025-02-11 22:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:29:22] Production.INFO: ==29639== Releasing lock... [2025-02-11 22:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:29:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-11 22:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:30:05 [end_date_ymd] => 2025-02-11 22:30:05 [RateCDR] => 1 ) [2025-02-11 22:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:30:05' and `end` < '2025-02-11 22:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:30:18] Production.INFO: count ==1112 [2025-02-11 22:30:18] Production.ERROR: pbx CDR StartTime 2025-02-11 19:30:05 - End Time 2025-02-11 22:30:05 [2025-02-11 22:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454797', 'tblTempUsageDetail_20' ) start [2025-02-11 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454797', 'tblTempUsageDetail_20' ) end [2025-02-11 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454797', 'tblTempVendorCDR_20' ) start [2025-02-11 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454797', 'tblTempVendorCDR_20' ) end [2025-02-11 22:30:18] Production.INFO: ProcessCDR(1,14454797,1,1,2) [2025-02-11 22:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454797', 'tblTempUsageDetail_20' ) start [2025-02-11 22:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454797', 'tblTempUsageDetail_20' ) end [2025-02-11 22:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:30:21] Production.INFO: ==29714== Releasing lock... [2025-02-11 22:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:30:21] Production.INFO: 36.5 MB #Memory Used# [2025-02-11 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:31:05 [end_date_ymd] => 2025-02-11 22:31:05 [RateCDR] => 1 ) [2025-02-11 22:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:31:05' and `end` < '2025-02-11 22:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:31:18] Production.INFO: count ==1059 [2025-02-11 22:31:18] Production.ERROR: pbx CDR StartTime 2025-02-11 19:31:05 - End Time 2025-02-11 22:31:05 [2025-02-11 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454803', 'tblTempUsageDetail_20' ) start [2025-02-11 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454803', 'tblTempUsageDetail_20' ) end [2025-02-11 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454803', 'tblTempVendorCDR_20' ) start [2025-02-11 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454803', 'tblTempVendorCDR_20' ) end [2025-02-11 22:31:18] Production.INFO: ProcessCDR(1,14454803,1,1,2) [2025-02-11 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454803', 'tblTempUsageDetail_20' ) start [2025-02-11 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454803', 'tblTempUsageDetail_20' ) end [2025-02-11 22:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:31:21] Production.INFO: ==29788== Releasing lock... [2025-02-11 22:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:31:21] Production.INFO: 36 MB #Memory Used# [2025-02-11 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:32:05 [end_date_ymd] => 2025-02-11 22:32:05 [RateCDR] => 1 ) [2025-02-11 22:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:32:05' and `end` < '2025-02-11 22:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:32:19] Production.INFO: count ==1059 [2025-02-11 22:32:19] Production.ERROR: pbx CDR StartTime 2025-02-11 19:32:05 - End Time 2025-02-11 22:32:05 [2025-02-11 22:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454808', 'tblTempUsageDetail_20' ) start [2025-02-11 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454808', 'tblTempUsageDetail_20' ) end [2025-02-11 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454808', 'tblTempVendorCDR_20' ) start [2025-02-11 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454808', 'tblTempVendorCDR_20' ) end [2025-02-11 22:32:19] Production.INFO: ProcessCDR(1,14454808,1,1,2) [2025-02-11 22:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454808', 'tblTempUsageDetail_20' ) start [2025-02-11 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454808', 'tblTempUsageDetail_20' ) end [2025-02-11 22:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:32:22] Production.INFO: ==29862== Releasing lock... [2025-02-11 22:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:32:22] Production.INFO: 36 MB #Memory Used# [2025-02-11 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:33:05 [end_date_ymd] => 2025-02-11 22:33:05 [RateCDR] => 1 ) [2025-02-11 22:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:33:05' and `end` < '2025-02-11 22:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:33:18] Production.INFO: count ==1059 [2025-02-11 22:33:18] Production.ERROR: pbx CDR StartTime 2025-02-11 19:33:05 - End Time 2025-02-11 22:33:05 [2025-02-11 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454813', 'tblTempUsageDetail_20' ) start [2025-02-11 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454813', 'tblTempUsageDetail_20' ) end [2025-02-11 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454813', 'tblTempVendorCDR_20' ) start [2025-02-11 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454813', 'tblTempVendorCDR_20' ) end [2025-02-11 22:33:18] Production.INFO: ProcessCDR(1,14454813,1,1,2) [2025-02-11 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454813', 'tblTempUsageDetail_20' ) start [2025-02-11 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454813', 'tblTempUsageDetail_20' ) end [2025-02-11 22:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:33:22] Production.INFO: ==29940== Releasing lock... [2025-02-11 22:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:33:22] Production.INFO: 36 MB #Memory Used# [2025-02-11 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:34:05 [end_date_ymd] => 2025-02-11 22:34:05 [RateCDR] => 1 ) [2025-02-11 22:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:34:05' and `end` < '2025-02-11 22:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:34:18] Production.INFO: count ==1055 [2025-02-11 22:34:18] Production.ERROR: pbx CDR StartTime 2025-02-11 19:34:05 - End Time 2025-02-11 22:34:05 [2025-02-11 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454818', 'tblTempUsageDetail_20' ) start [2025-02-11 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454818', 'tblTempUsageDetail_20' ) end [2025-02-11 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454818', 'tblTempVendorCDR_20' ) start [2025-02-11 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454818', 'tblTempVendorCDR_20' ) end [2025-02-11 22:34:18] Production.INFO: ProcessCDR(1,14454818,1,1,2) [2025-02-11 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454818', 'tblTempUsageDetail_20' ) start [2025-02-11 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454818', 'tblTempUsageDetail_20' ) end [2025-02-11 22:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:34:21] Production.INFO: ==30015== Releasing lock... [2025-02-11 22:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:34:21] Production.INFO: 36 MB #Memory Used# [2025-02-11 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:35:05 [end_date_ymd] => 2025-02-11 22:35:05 [RateCDR] => 1 ) [2025-02-11 22:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:35:05' and `end` < '2025-02-11 22:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:35:18] Production.INFO: count ==1054 [2025-02-11 22:35:18] Production.ERROR: pbx CDR StartTime 2025-02-11 19:35:05 - End Time 2025-02-11 22:35:05 [2025-02-11 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454823', 'tblTempUsageDetail_20' ) start [2025-02-11 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454823', 'tblTempUsageDetail_20' ) end [2025-02-11 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454823', 'tblTempVendorCDR_20' ) start [2025-02-11 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454823', 'tblTempVendorCDR_20' ) end [2025-02-11 22:35:18] Production.INFO: ProcessCDR(1,14454823,1,1,2) [2025-02-11 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454823', 'tblTempUsageDetail_20' ) start [2025-02-11 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454823', 'tblTempUsageDetail_20' ) end [2025-02-11 22:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:35:21] Production.INFO: ==30088== Releasing lock... [2025-02-11 22:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:35:21] Production.INFO: 36 MB #Memory Used# [2025-02-11 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:36:05 [end_date_ymd] => 2025-02-11 22:36:05 [RateCDR] => 1 ) [2025-02-11 22:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:36:05' and `end` < '2025-02-11 22:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:36:18] Production.INFO: count ==1055 [2025-02-11 22:36:18] Production.ERROR: pbx CDR StartTime 2025-02-11 19:36:05 - End Time 2025-02-11 22:36:05 [2025-02-11 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454828', 'tblTempUsageDetail_20' ) start [2025-02-11 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454828', 'tblTempUsageDetail_20' ) end [2025-02-11 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454828', 'tblTempVendorCDR_20' ) start [2025-02-11 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454828', 'tblTempVendorCDR_20' ) end [2025-02-11 22:36:18] Production.INFO: ProcessCDR(1,14454828,1,1,2) [2025-02-11 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454828', 'tblTempUsageDetail_20' ) start [2025-02-11 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454828', 'tblTempUsageDetail_20' ) end [2025-02-11 22:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:36:22] Production.INFO: ==30160== Releasing lock... [2025-02-11 22:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:36:22] Production.INFO: 36 MB #Memory Used# [2025-02-11 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:37:05 [end_date_ymd] => 2025-02-11 22:37:05 [RateCDR] => 1 ) [2025-02-11 22:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:37:05' and `end` < '2025-02-11 22:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:37:18] Production.INFO: count ==1053 [2025-02-11 22:37:18] Production.ERROR: pbx CDR StartTime 2025-02-11 19:37:05 - End Time 2025-02-11 22:37:05 [2025-02-11 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454833', 'tblTempUsageDetail_20' ) start [2025-02-11 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454833', 'tblTempUsageDetail_20' ) end [2025-02-11 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454833', 'tblTempVendorCDR_20' ) start [2025-02-11 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454833', 'tblTempVendorCDR_20' ) end [2025-02-11 22:37:18] Production.INFO: ProcessCDR(1,14454833,1,1,2) [2025-02-11 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454833', 'tblTempUsageDetail_20' ) start [2025-02-11 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454833', 'tblTempUsageDetail_20' ) end [2025-02-11 22:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:37:21] Production.INFO: ==30232== Releasing lock... [2025-02-11 22:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:37:21] Production.INFO: 36 MB #Memory Used# [2025-02-11 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:38:05 [end_date_ymd] => 2025-02-11 22:38:05 [RateCDR] => 1 ) [2025-02-11 22:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:38:05' and `end` < '2025-02-11 22:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:38:20] Production.INFO: count ==1049 [2025-02-11 22:38:20] Production.ERROR: pbx CDR StartTime 2025-02-11 19:38:05 - End Time 2025-02-11 22:38:05 [2025-02-11 22:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454838', 'tblTempUsageDetail_20' ) start [2025-02-11 22:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454838', 'tblTempUsageDetail_20' ) end [2025-02-11 22:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454838', 'tblTempVendorCDR_20' ) start [2025-02-11 22:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454838', 'tblTempVendorCDR_20' ) end [2025-02-11 22:38:20] Production.INFO: ProcessCDR(1,14454838,1,1,2) [2025-02-11 22:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454838', 'tblTempUsageDetail_20' ) start [2025-02-11 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454838', 'tblTempUsageDetail_20' ) end [2025-02-11 22:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:38:23] Production.INFO: ==30309== Releasing lock... [2025-02-11 22:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:38:23] Production.INFO: 35.75 MB #Memory Used# [2025-02-11 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:39:05 [end_date_ymd] => 2025-02-11 22:39:05 [RateCDR] => 1 ) [2025-02-11 22:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:39:05' and `end` < '2025-02-11 22:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:39:18] Production.INFO: count ==1042 [2025-02-11 22:39:19] Production.ERROR: pbx CDR StartTime 2025-02-11 19:39:05 - End Time 2025-02-11 22:39:05 [2025-02-11 22:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454843', 'tblTempUsageDetail_20' ) start [2025-02-11 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454843', 'tblTempUsageDetail_20' ) end [2025-02-11 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454843', 'tblTempVendorCDR_20' ) start [2025-02-11 22:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454843', 'tblTempVendorCDR_20' ) end [2025-02-11 22:39:19] Production.INFO: ProcessCDR(1,14454843,1,1,2) [2025-02-11 22:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454843', 'tblTempUsageDetail_20' ) start [2025-02-11 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454843', 'tblTempUsageDetail_20' ) end [2025-02-11 22:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:39:22] Production.INFO: ==30382== Releasing lock... [2025-02-11 22:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:39:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-11 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:40:06 [end_date_ymd] => 2025-02-11 22:40:06 [RateCDR] => 1 ) [2025-02-11 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-02-11 19:40:06' and `end` < '2025-02-11 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-02-11 22:40:19] Production.INFO: count ==1045 [2025-02-11 22:40:19] Production.ERROR: pbx CDR StartTime 2025-02-11 19:40:06 - End Time 2025-02-11 22:40:06 [2025-02-11 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454848', 'tblTempUsageDetail_20' ) start [2025-02-11 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454848', 'tblTempUsageDetail_20' ) end [2025-02-11 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454848', 'tblTempVendorCDR_20' ) start [2025-02-11 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454848', 'tblTempVendorCDR_20' ) end [2025-02-11 22:40:19] Production.INFO: ProcessCDR(1,14454848,1,1,2) [2025-02-11 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454848', 'tblTempUsageDetail_20' ) start [2025-02-11 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454848', 'tblTempUsageDetail_20' ) end [2025-02-11 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:40:22] Production.INFO: ==30459== Releasing lock... [2025-02-11 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:40:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-11 22:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:41:06 [end_date_ymd] => 2025-02-11 22:41:06 [RateCDR] => 1 ) [2025-02-11 22:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:41:06' and `end` < '2025-02-11 22:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:41:19] Production.INFO: count ==997 [2025-02-11 22:41:20] Production.ERROR: pbx CDR StartTime 2025-02-11 19:41:06 - End Time 2025-02-11 22:41:06 [2025-02-11 22:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454854', 'tblTempUsageDetail_20' ) start [2025-02-11 22:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454854', 'tblTempUsageDetail_20' ) end [2025-02-11 22:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454854', 'tblTempVendorCDR_20' ) start [2025-02-11 22:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454854', 'tblTempVendorCDR_20' ) end [2025-02-11 22:41:20] Production.INFO: ProcessCDR(1,14454854,1,1,2) [2025-02-11 22:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454854', 'tblTempUsageDetail_20' ) start [2025-02-11 22:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454854', 'tblTempUsageDetail_20' ) end [2025-02-11 22:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:41:23] Production.INFO: ==30535== Releasing lock... [2025-02-11 22:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:41:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-11 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:42:05 [end_date_ymd] => 2025-02-11 22:42:05 [RateCDR] => 1 ) [2025-02-11 22:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:42:05' and `end` < '2025-02-11 22:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:42:18] Production.INFO: count ==993 [2025-02-11 22:42:18] Production.ERROR: pbx CDR StartTime 2025-02-11 19:42:05 - End Time 2025-02-11 22:42:05 [2025-02-11 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454859', 'tblTempUsageDetail_20' ) start [2025-02-11 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454859', 'tblTempUsageDetail_20' ) end [2025-02-11 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454859', 'tblTempVendorCDR_20' ) start [2025-02-11 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454859', 'tblTempVendorCDR_20' ) end [2025-02-11 22:42:18] Production.INFO: ProcessCDR(1,14454859,1,1,2) [2025-02-11 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454859', 'tblTempUsageDetail_20' ) start [2025-02-11 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454859', 'tblTempUsageDetail_20' ) end [2025-02-11 22:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:42:21] Production.INFO: ==30651== Releasing lock... [2025-02-11 22:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:42:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-11 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:43:05 [end_date_ymd] => 2025-02-11 22:43:05 [RateCDR] => 1 ) [2025-02-11 22:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:43:05' and `end` < '2025-02-11 22:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:43:18] Production.INFO: count ==997 [2025-02-11 22:43:18] Production.ERROR: pbx CDR StartTime 2025-02-11 19:43:05 - End Time 2025-02-11 22:43:05 [2025-02-11 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454864', 'tblTempUsageDetail_20' ) start [2025-02-11 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454864', 'tblTempUsageDetail_20' ) end [2025-02-11 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454864', 'tblTempVendorCDR_20' ) start [2025-02-11 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454864', 'tblTempVendorCDR_20' ) end [2025-02-11 22:43:18] Production.INFO: ProcessCDR(1,14454864,1,1,2) [2025-02-11 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454864', 'tblTempUsageDetail_20' ) start [2025-02-11 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454864', 'tblTempUsageDetail_20' ) end [2025-02-11 22:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:43:21] Production.INFO: ==30723== Releasing lock... [2025-02-11 22:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:43:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-11 22:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:44:04 [end_date_ymd] => 2025-02-11 22:44:04 [RateCDR] => 1 ) [2025-02-11 22:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:44:04' and `end` < '2025-02-11 22:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:44:18] Production.INFO: count ==1004 [2025-02-11 22:44:18] Production.ERROR: pbx CDR StartTime 2025-02-11 19:44:04 - End Time 2025-02-11 22:44:04 [2025-02-11 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454869', 'tblTempUsageDetail_20' ) start [2025-02-11 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454869', 'tblTempUsageDetail_20' ) end [2025-02-11 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454869', 'tblTempVendorCDR_20' ) start [2025-02-11 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454869', 'tblTempVendorCDR_20' ) end [2025-02-11 22:44:18] Production.INFO: ProcessCDR(1,14454869,1,1,2) [2025-02-11 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454869', 'tblTempUsageDetail_20' ) start [2025-02-11 22:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454869', 'tblTempUsageDetail_20' ) end [2025-02-11 22:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:44:23] Production.INFO: ==30793== Releasing lock... [2025-02-11 22:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:44:23] Production.INFO: 35.5 MB #Memory Used# [2025-02-11 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:45:05 [end_date_ymd] => 2025-02-11 22:45:05 [RateCDR] => 1 ) [2025-02-11 22:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:45:05' and `end` < '2025-02-11 22:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:45:18] Production.INFO: count ==1007 [2025-02-11 22:45:18] Production.ERROR: pbx CDR StartTime 2025-02-11 19:45:05 - End Time 2025-02-11 22:45:05 [2025-02-11 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454874', 'tblTempUsageDetail_20' ) start [2025-02-11 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454874', 'tblTempUsageDetail_20' ) end [2025-02-11 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454874', 'tblTempVendorCDR_20' ) start [2025-02-11 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454874', 'tblTempVendorCDR_20' ) end [2025-02-11 22:45:18] Production.INFO: ProcessCDR(1,14454874,1,1,2) [2025-02-11 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454874', 'tblTempUsageDetail_20' ) start [2025-02-11 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454874', 'tblTempUsageDetail_20' ) end [2025-02-11 22:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:45:22] Production.INFO: ==30870== Releasing lock... [2025-02-11 22:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:45:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-11 22:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:46:04 [end_date_ymd] => 2025-02-11 22:46:04 [RateCDR] => 1 ) [2025-02-11 22:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:46:04' and `end` < '2025-02-11 22:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:46:19] Production.INFO: count ==1005 [2025-02-11 22:46:19] Production.ERROR: pbx CDR StartTime 2025-02-11 19:46:04 - End Time 2025-02-11 22:46:04 [2025-02-11 22:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454879', 'tblTempUsageDetail_20' ) start [2025-02-11 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454879', 'tblTempUsageDetail_20' ) end [2025-02-11 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454879', 'tblTempVendorCDR_20' ) start [2025-02-11 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454879', 'tblTempVendorCDR_20' ) end [2025-02-11 22:46:19] Production.INFO: ProcessCDR(1,14454879,1,1,2) [2025-02-11 22:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454879', 'tblTempUsageDetail_20' ) start [2025-02-11 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454879', 'tblTempUsageDetail_20' ) end [2025-02-11 22:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:46:22] Production.INFO: ==30941== Releasing lock... [2025-02-11 22:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:46:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-11 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:47:05 [end_date_ymd] => 2025-02-11 22:47:05 [RateCDR] => 1 ) [2025-02-11 22:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:47:05' and `end` < '2025-02-11 22:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:47:18] Production.INFO: count ==1000 [2025-02-11 22:47:18] Production.ERROR: pbx CDR StartTime 2025-02-11 19:47:05 - End Time 2025-02-11 22:47:05 [2025-02-11 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454884', 'tblTempUsageDetail_20' ) start [2025-02-11 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454884', 'tblTempUsageDetail_20' ) end [2025-02-11 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454884', 'tblTempVendorCDR_20' ) start [2025-02-11 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454884', 'tblTempVendorCDR_20' ) end [2025-02-11 22:47:18] Production.INFO: ProcessCDR(1,14454884,1,1,2) [2025-02-11 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454884', 'tblTempUsageDetail_20' ) start [2025-02-11 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454884', 'tblTempUsageDetail_20' ) end [2025-02-11 22:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:47:21] Production.INFO: ==31014== Releasing lock... [2025-02-11 22:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:47:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-11 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:48:05 [end_date_ymd] => 2025-02-11 22:48:05 [RateCDR] => 1 ) [2025-02-11 22:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:48:05' and `end` < '2025-02-11 22:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:48:18] Production.INFO: count ==999 [2025-02-11 22:48:18] Production.ERROR: pbx CDR StartTime 2025-02-11 19:48:05 - End Time 2025-02-11 22:48:05 [2025-02-11 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454889', 'tblTempUsageDetail_20' ) start [2025-02-11 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454889', 'tblTempUsageDetail_20' ) end [2025-02-11 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454889', 'tblTempVendorCDR_20' ) start [2025-02-11 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454889', 'tblTempVendorCDR_20' ) end [2025-02-11 22:48:18] Production.INFO: ProcessCDR(1,14454889,1,1,2) [2025-02-11 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454889', 'tblTempUsageDetail_20' ) start [2025-02-11 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454889', 'tblTempUsageDetail_20' ) end [2025-02-11 22:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:48:21] Production.INFO: ==31089== Releasing lock... [2025-02-11 22:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:48:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-11 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:49:05 [end_date_ymd] => 2025-02-11 22:49:05 [RateCDR] => 1 ) [2025-02-11 22:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:49:05' and `end` < '2025-02-11 22:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:49:18] Production.INFO: count ==998 [2025-02-11 22:49:18] Production.ERROR: pbx CDR StartTime 2025-02-11 19:49:05 - End Time 2025-02-11 22:49:05 [2025-02-11 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454894', 'tblTempUsageDetail_20' ) start [2025-02-11 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454894', 'tblTempUsageDetail_20' ) end [2025-02-11 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454894', 'tblTempVendorCDR_20' ) start [2025-02-11 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454894', 'tblTempVendorCDR_20' ) end [2025-02-11 22:49:18] Production.INFO: ProcessCDR(1,14454894,1,1,2) [2025-02-11 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454894', 'tblTempUsageDetail_20' ) start [2025-02-11 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454894', 'tblTempUsageDetail_20' ) end [2025-02-11 22:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:49:21] Production.INFO: ==31165== Releasing lock... [2025-02-11 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:49:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-11 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:50:06 [end_date_ymd] => 2025-02-11 22:50:06 [RateCDR] => 1 ) [2025-02-11 22:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:50:06' and `end` < '2025-02-11 22:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:50:19] Production.INFO: count ==996 [2025-02-11 22:50:19] Production.ERROR: pbx CDR StartTime 2025-02-11 19:50:06 - End Time 2025-02-11 22:50:06 [2025-02-11 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454899', 'tblTempUsageDetail_20' ) start [2025-02-11 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454899', 'tblTempUsageDetail_20' ) end [2025-02-11 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454899', 'tblTempVendorCDR_20' ) start [2025-02-11 22:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454899', 'tblTempVendorCDR_20' ) end [2025-02-11 22:50:20] Production.INFO: ProcessCDR(1,14454899,1,1,2) [2025-02-11 22:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454899', 'tblTempUsageDetail_20' ) start [2025-02-11 22:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454899', 'tblTempUsageDetail_20' ) end [2025-02-11 22:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:50:24] Production.INFO: ==31238== Releasing lock... [2025-02-11 22:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:50:24] Production.INFO: 35.5 MB #Memory Used# [2025-02-11 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:51:05 [end_date_ymd] => 2025-02-11 22:51:05 [RateCDR] => 1 ) [2025-02-11 22:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:51:05' and `end` < '2025-02-11 22:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:51:18] Production.INFO: count ==1009 [2025-02-11 22:51:19] Production.ERROR: pbx CDR StartTime 2025-02-11 19:51:05 - End Time 2025-02-11 22:51:05 [2025-02-11 22:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454905', 'tblTempUsageDetail_20' ) start [2025-02-11 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454905', 'tblTempUsageDetail_20' ) end [2025-02-11 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454905', 'tblTempVendorCDR_20' ) start [2025-02-11 22:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454905', 'tblTempVendorCDR_20' ) end [2025-02-11 22:51:19] Production.INFO: ProcessCDR(1,14454905,1,1,2) [2025-02-11 22:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454905', 'tblTempUsageDetail_20' ) start [2025-02-11 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454905', 'tblTempUsageDetail_20' ) end [2025-02-11 22:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:51:22] Production.INFO: ==31314== Releasing lock... [2025-02-11 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:51:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-11 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:52:05 [end_date_ymd] => 2025-02-11 22:52:05 [RateCDR] => 1 ) [2025-02-11 22:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:52:05' and `end` < '2025-02-11 22:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:52:18] Production.INFO: count ==1007 [2025-02-11 22:52:18] Production.ERROR: pbx CDR StartTime 2025-02-11 19:52:05 - End Time 2025-02-11 22:52:05 [2025-02-11 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454910', 'tblTempUsageDetail_20' ) start [2025-02-11 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454910', 'tblTempUsageDetail_20' ) end [2025-02-11 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454910', 'tblTempVendorCDR_20' ) start [2025-02-11 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454910', 'tblTempVendorCDR_20' ) end [2025-02-11 22:52:18] Production.INFO: ProcessCDR(1,14454910,1,1,2) [2025-02-11 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454910', 'tblTempUsageDetail_20' ) start [2025-02-11 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454910', 'tblTempUsageDetail_20' ) end [2025-02-11 22:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:52:21] Production.INFO: ==31395== Releasing lock... [2025-02-11 22:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:52:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-11 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:53:05 [end_date_ymd] => 2025-02-11 22:53:05 [RateCDR] => 1 ) [2025-02-11 22:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:53:05' and `end` < '2025-02-11 22:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:53:19] Production.INFO: count ==998 [2025-02-11 22:53:20] Production.ERROR: pbx CDR StartTime 2025-02-11 19:53:05 - End Time 2025-02-11 22:53:05 [2025-02-11 22:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454915', 'tblTempUsageDetail_20' ) start [2025-02-11 22:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454915', 'tblTempUsageDetail_20' ) end [2025-02-11 22:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454915', 'tblTempVendorCDR_20' ) start [2025-02-11 22:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454915', 'tblTempVendorCDR_20' ) end [2025-02-11 22:53:20] Production.INFO: ProcessCDR(1,14454915,1,1,2) [2025-02-11 22:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454915', 'tblTempUsageDetail_20' ) start [2025-02-11 22:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454915', 'tblTempUsageDetail_20' ) end [2025-02-11 22:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:53:23] Production.INFO: ==31472== Releasing lock... [2025-02-11 22:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:53:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-11 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:54:05 [end_date_ymd] => 2025-02-11 22:54:05 [RateCDR] => 1 ) [2025-02-11 22:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:54:05' and `end` < '2025-02-11 22:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:54:18] Production.INFO: count ==997 [2025-02-11 22:54:18] Production.ERROR: pbx CDR StartTime 2025-02-11 19:54:05 - End Time 2025-02-11 22:54:05 [2025-02-11 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454920', 'tblTempUsageDetail_20' ) start [2025-02-11 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454920', 'tblTempUsageDetail_20' ) end [2025-02-11 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454920', 'tblTempVendorCDR_20' ) start [2025-02-11 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454920', 'tblTempVendorCDR_20' ) end [2025-02-11 22:54:18] Production.INFO: ProcessCDR(1,14454920,1,1,2) [2025-02-11 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454920', 'tblTempUsageDetail_20' ) start [2025-02-11 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454920', 'tblTempUsageDetail_20' ) end [2025-02-11 22:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:54:22] Production.INFO: ==31548== Releasing lock... [2025-02-11 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:54:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-11 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:55:05 [end_date_ymd] => 2025-02-11 22:55:05 [RateCDR] => 1 ) [2025-02-11 22:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:55:05' and `end` < '2025-02-11 22:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:55:18] Production.INFO: count ==997 [2025-02-11 22:55:18] Production.ERROR: pbx CDR StartTime 2025-02-11 19:55:05 - End Time 2025-02-11 22:55:05 [2025-02-11 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454925', 'tblTempUsageDetail_20' ) start [2025-02-11 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454925', 'tblTempUsageDetail_20' ) end [2025-02-11 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454925', 'tblTempVendorCDR_20' ) start [2025-02-11 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454925', 'tblTempVendorCDR_20' ) end [2025-02-11 22:55:18] Production.INFO: ProcessCDR(1,14454925,1,1,2) [2025-02-11 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454925', 'tblTempUsageDetail_20' ) start [2025-02-11 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454925', 'tblTempUsageDetail_20' ) end [2025-02-11 22:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:55:21] Production.INFO: ==31628== Releasing lock... [2025-02-11 22:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:55:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-11 22:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:56:04 [end_date_ymd] => 2025-02-11 22:56:04 [RateCDR] => 1 ) [2025-02-11 22:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:56:04' and `end` < '2025-02-11 22:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:56:18] Production.INFO: count ==997 [2025-02-11 22:56:18] Production.ERROR: pbx CDR StartTime 2025-02-11 19:56:04 - End Time 2025-02-11 22:56:04 [2025-02-11 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454930', 'tblTempUsageDetail_20' ) start [2025-02-11 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454930', 'tblTempUsageDetail_20' ) end [2025-02-11 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454930', 'tblTempVendorCDR_20' ) start [2025-02-11 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454930', 'tblTempVendorCDR_20' ) end [2025-02-11 22:56:18] Production.INFO: ProcessCDR(1,14454930,1,1,2) [2025-02-11 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454930', 'tblTempUsageDetail_20' ) start [2025-02-11 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454930', 'tblTempUsageDetail_20' ) end [2025-02-11 22:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:56:21] Production.INFO: ==31705== Releasing lock... [2025-02-11 22:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:56:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-11 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:57:05 [end_date_ymd] => 2025-02-11 22:57:05 [RateCDR] => 1 ) [2025-02-11 22:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:57:05' and `end` < '2025-02-11 22:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:57:18] Production.INFO: count ==995 [2025-02-11 22:57:18] Production.ERROR: pbx CDR StartTime 2025-02-11 19:57:05 - End Time 2025-02-11 22:57:05 [2025-02-11 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454935', 'tblTempUsageDetail_20' ) start [2025-02-11 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454935', 'tblTempUsageDetail_20' ) end [2025-02-11 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454935', 'tblTempVendorCDR_20' ) start [2025-02-11 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454935', 'tblTempVendorCDR_20' ) end [2025-02-11 22:57:18] Production.INFO: ProcessCDR(1,14454935,1,1,2) [2025-02-11 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454935', 'tblTempUsageDetail_20' ) start [2025-02-11 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454935', 'tblTempUsageDetail_20' ) end [2025-02-11 22:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:57:21] Production.INFO: ==31821== Releasing lock... [2025-02-11 22:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:57:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-11 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:58:05 [end_date_ymd] => 2025-02-11 22:58:05 [RateCDR] => 1 ) [2025-02-11 22:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:58:05' and `end` < '2025-02-11 22:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:58:18] Production.INFO: count ==997 [2025-02-11 22:58:18] Production.ERROR: pbx CDR StartTime 2025-02-11 19:58:05 - End Time 2025-02-11 22:58:05 [2025-02-11 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454940', 'tblTempUsageDetail_20' ) start [2025-02-11 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454940', 'tblTempUsageDetail_20' ) end [2025-02-11 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454940', 'tblTempVendorCDR_20' ) start [2025-02-11 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454940', 'tblTempVendorCDR_20' ) end [2025-02-11 22:58:18] Production.INFO: ProcessCDR(1,14454940,1,1,2) [2025-02-11 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454940', 'tblTempUsageDetail_20' ) start [2025-02-11 22:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454940', 'tblTempUsageDetail_20' ) end [2025-02-11 22:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:58:23] Production.INFO: ==31898== Releasing lock... [2025-02-11 22:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:58:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-11 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 19:59:05 [end_date_ymd] => 2025-02-11 22:59:05 [RateCDR] => 1 ) [2025-02-11 22:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 19:59:05' and `end` < '2025-02-11 22:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 22:59:18] Production.INFO: count ==992 [2025-02-11 22:59:18] Production.ERROR: pbx CDR StartTime 2025-02-11 19:59:05 - End Time 2025-02-11 22:59:05 [2025-02-11 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454945', 'tblTempUsageDetail_20' ) start [2025-02-11 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454945', 'tblTempUsageDetail_20' ) end [2025-02-11 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454945', 'tblTempVendorCDR_20' ) start [2025-02-11 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454945', 'tblTempVendorCDR_20' ) end [2025-02-11 22:59:18] Production.INFO: ProcessCDR(1,14454945,1,1,2) [2025-02-11 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454945', 'tblTempUsageDetail_20' ) start [2025-02-11 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454945', 'tblTempUsageDetail_20' ) end [2025-02-11 22:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 22:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 22:59:22] Production.INFO: ==31979== Releasing lock... [2025-02-11 22:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 22:59:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-11 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:00:06 [end_date_ymd] => 2025-02-11 23:00:06 [RateCDR] => 1 ) [2025-02-11 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:00:06' and `end` < '2025-02-11 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:00:19] Production.INFO: count ==991 [2025-02-11 23:00:19] Production.ERROR: pbx CDR StartTime 2025-02-11 20:00:06 - End Time 2025-02-11 23:00:06 [2025-02-11 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454951', 'tblTempUsageDetail_20' ) start [2025-02-11 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454951', 'tblTempUsageDetail_20' ) end [2025-02-11 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454951', 'tblTempVendorCDR_20' ) start [2025-02-11 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454951', 'tblTempVendorCDR_20' ) end [2025-02-11 23:00:19] Production.INFO: ProcessCDR(1,14454951,1,1,2) [2025-02-11 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454951', 'tblTempUsageDetail_20' ) start [2025-02-11 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454951', 'tblTempUsageDetail_20' ) end [2025-02-11 23:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:00:22] Production.INFO: ==32098== Releasing lock... [2025-02-11 23:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:00:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-11 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:01:05 [end_date_ymd] => 2025-02-11 23:01:05 [RateCDR] => 1 ) [2025-02-11 23:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:01:05' and `end` < '2025-02-11 23:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:01:18] Production.INFO: count ==1005 [2025-02-11 23:01:19] Production.ERROR: pbx CDR StartTime 2025-02-11 20:01:05 - End Time 2025-02-11 23:01:05 [2025-02-11 23:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454956', 'tblTempUsageDetail_20' ) start [2025-02-11 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454956', 'tblTempUsageDetail_20' ) end [2025-02-11 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454956', 'tblTempVendorCDR_20' ) start [2025-02-11 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454956', 'tblTempVendorCDR_20' ) end [2025-02-11 23:01:19] Production.INFO: ProcessCDR(1,14454956,1,1,2) [2025-02-11 23:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454956', 'tblTempUsageDetail_20' ) start [2025-02-11 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454956', 'tblTempUsageDetail_20' ) end [2025-02-11 23:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:01:22] Production.INFO: ==32236== Releasing lock... [2025-02-11 23:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:01:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-11 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:02:05 [end_date_ymd] => 2025-02-11 23:02:05 [RateCDR] => 1 ) [2025-02-11 23:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:02:05' and `end` < '2025-02-11 23:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:02:18] Production.INFO: count ==1004 [2025-02-11 23:02:18] Production.ERROR: pbx CDR StartTime 2025-02-11 20:02:05 - End Time 2025-02-11 23:02:05 [2025-02-11 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454961', 'tblTempUsageDetail_20' ) start [2025-02-11 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454961', 'tblTempUsageDetail_20' ) end [2025-02-11 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454961', 'tblTempVendorCDR_20' ) start [2025-02-11 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454961', 'tblTempVendorCDR_20' ) end [2025-02-11 23:02:18] Production.INFO: ProcessCDR(1,14454961,1,1,2) [2025-02-11 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454961', 'tblTempUsageDetail_20' ) start [2025-02-11 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454961', 'tblTempUsageDetail_20' ) end [2025-02-11 23:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:02:21] Production.INFO: ==32400== Releasing lock... [2025-02-11 23:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:02:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-11 23:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:03:04 [end_date_ymd] => 2025-02-11 23:03:04 [RateCDR] => 1 ) [2025-02-11 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-02-11 20:03:04' and `end` < '2025-02-11 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-02-11 23:03:17] Production.INFO: count ==1012 [2025-02-11 23:03:17] Production.ERROR: pbx CDR StartTime 2025-02-11 20:03:04 - End Time 2025-02-11 23:03:04 [2025-02-11 23:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454966', 'tblTempUsageDetail_20' ) start [2025-02-11 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454966', 'tblTempUsageDetail_20' ) end [2025-02-11 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454966', 'tblTempVendorCDR_20' ) start [2025-02-11 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454966', 'tblTempVendorCDR_20' ) end [2025-02-11 23:03:17] Production.INFO: ProcessCDR(1,14454966,1,1,2) [2025-02-11 23:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454966', 'tblTempUsageDetail_20' ) start [2025-02-11 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454966', 'tblTempUsageDetail_20' ) end [2025-02-11 23:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:03:22] Production.INFO: ==32489== Releasing lock... [2025-02-11 23:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:03:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-11 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:04:05 [end_date_ymd] => 2025-02-11 23:04:05 [RateCDR] => 1 ) [2025-02-11 23:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:04:05' and `end` < '2025-02-11 23:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:04:18] Production.INFO: count ==1014 [2025-02-11 23:04:18] Production.ERROR: pbx CDR StartTime 2025-02-11 20:04:05 - End Time 2025-02-11 23:04:05 [2025-02-11 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454971', 'tblTempUsageDetail_20' ) start [2025-02-11 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454971', 'tblTempUsageDetail_20' ) end [2025-02-11 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454971', 'tblTempVendorCDR_20' ) start [2025-02-11 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454971', 'tblTempVendorCDR_20' ) end [2025-02-11 23:04:18] Production.INFO: ProcessCDR(1,14454971,1,1,2) [2025-02-11 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454971', 'tblTempUsageDetail_20' ) start [2025-02-11 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454971', 'tblTempUsageDetail_20' ) end [2025-02-11 23:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:04:22] Production.INFO: ==32565== Releasing lock... [2025-02-11 23:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:04:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-11 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:05:05 [end_date_ymd] => 2025-02-11 23:05:05 [RateCDR] => 1 ) [2025-02-11 23:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:05:05' and `end` < '2025-02-11 23:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:05:19] Production.INFO: count ==1011 [2025-02-11 23:05:19] Production.ERROR: pbx CDR StartTime 2025-02-11 20:05:05 - End Time 2025-02-11 23:05:05 [2025-02-11 23:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454976', 'tblTempUsageDetail_20' ) start [2025-02-11 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454976', 'tblTempUsageDetail_20' ) end [2025-02-11 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454976', 'tblTempVendorCDR_20' ) start [2025-02-11 23:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454976', 'tblTempVendorCDR_20' ) end [2025-02-11 23:05:19] Production.INFO: ProcessCDR(1,14454976,1,1,2) [2025-02-11 23:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454976', 'tblTempUsageDetail_20' ) start [2025-02-11 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454976', 'tblTempUsageDetail_20' ) end [2025-02-11 23:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:05:22] Production.INFO: ==32731== Releasing lock... [2025-02-11 23:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:05:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-11 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:06:05 [end_date_ymd] => 2025-02-11 23:06:05 [RateCDR] => 1 ) [2025-02-11 23:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:06:05' and `end` < '2025-02-11 23:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:06:18] Production.INFO: count ==1005 [2025-02-11 23:06:18] Production.ERROR: pbx CDR StartTime 2025-02-11 20:06:05 - End Time 2025-02-11 23:06:05 [2025-02-11 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454981', 'tblTempUsageDetail_20' ) start [2025-02-11 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454981', 'tblTempUsageDetail_20' ) end [2025-02-11 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454981', 'tblTempVendorCDR_20' ) start [2025-02-11 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454981', 'tblTempVendorCDR_20' ) end [2025-02-11 23:06:18] Production.INFO: ProcessCDR(1,14454981,1,1,2) [2025-02-11 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454981', 'tblTempUsageDetail_20' ) start [2025-02-11 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454981', 'tblTempUsageDetail_20' ) end [2025-02-11 23:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:06:22] Production.INFO: ==373== Releasing lock... [2025-02-11 23:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:06:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-11 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:07:05 [end_date_ymd] => 2025-02-11 23:07:05 [RateCDR] => 1 ) [2025-02-11 23:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:07:05' and `end` < '2025-02-11 23:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:07:18] Production.INFO: count ==1005 [2025-02-11 23:07:18] Production.ERROR: pbx CDR StartTime 2025-02-11 20:07:05 - End Time 2025-02-11 23:07:05 [2025-02-11 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454986', 'tblTempUsageDetail_20' ) start [2025-02-11 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454986', 'tblTempUsageDetail_20' ) end [2025-02-11 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454986', 'tblTempVendorCDR_20' ) start [2025-02-11 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454986', 'tblTempVendorCDR_20' ) end [2025-02-11 23:07:18] Production.INFO: ProcessCDR(1,14454986,1,1,2) [2025-02-11 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454986', 'tblTempUsageDetail_20' ) start [2025-02-11 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454986', 'tblTempUsageDetail_20' ) end [2025-02-11 23:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:07:21] Production.INFO: ==457== Releasing lock... [2025-02-11 23:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:07:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-11 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:08:05 [end_date_ymd] => 2025-02-11 23:08:05 [RateCDR] => 1 ) [2025-02-11 23:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:08:05' and `end` < '2025-02-11 23:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:08:18] Production.INFO: count ==1000 [2025-02-11 23:08:18] Production.ERROR: pbx CDR StartTime 2025-02-11 20:08:05 - End Time 2025-02-11 23:08:05 [2025-02-11 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454991', 'tblTempUsageDetail_20' ) start [2025-02-11 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454991', 'tblTempUsageDetail_20' ) end [2025-02-11 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454991', 'tblTempVendorCDR_20' ) start [2025-02-11 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454991', 'tblTempVendorCDR_20' ) end [2025-02-11 23:08:18] Production.INFO: ProcessCDR(1,14454991,1,1,2) [2025-02-11 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454991', 'tblTempUsageDetail_20' ) start [2025-02-11 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454991', 'tblTempUsageDetail_20' ) end [2025-02-11 23:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:08:22] Production.INFO: ==584== Releasing lock... [2025-02-11 23:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:08:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-11 23:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:09:04 [end_date_ymd] => 2025-02-11 23:09:04 [RateCDR] => 1 ) [2025-02-11 23:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:09:04' and `end` < '2025-02-11 23:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:09:17] Production.INFO: count ==999 [2025-02-11 23:09:18] Production.ERROR: pbx CDR StartTime 2025-02-11 20:09:04 - End Time 2025-02-11 23:09:04 [2025-02-11 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454996', 'tblTempUsageDetail_20' ) start [2025-02-11 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14454996', 'tblTempUsageDetail_20' ) end [2025-02-11 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454996', 'tblTempVendorCDR_20' ) start [2025-02-11 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14454996', 'tblTempVendorCDR_20' ) end [2025-02-11 23:09:18] Production.INFO: ProcessCDR(1,14454996,1,1,2) [2025-02-11 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14454996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14454996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14454996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14454996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454996', 'tblTempUsageDetail_20' ) start [2025-02-11 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14454996', 'tblTempUsageDetail_20' ) end [2025-02-11 23:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:09:21] Production.INFO: ==736== Releasing lock... [2025-02-11 23:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:09:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-11 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:10:05 [end_date_ymd] => 2025-02-11 23:10:05 [RateCDR] => 1 ) [2025-02-11 23:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:10:05' and `end` < '2025-02-11 23:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:10:19] Production.INFO: count ==1000 [2025-02-11 23:10:19] Production.ERROR: pbx CDR StartTime 2025-02-11 20:10:05 - End Time 2025-02-11 23:10:05 [2025-02-11 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455002', 'tblTempUsageDetail_20' ) start [2025-02-11 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455002', 'tblTempUsageDetail_20' ) end [2025-02-11 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455002', 'tblTempVendorCDR_20' ) start [2025-02-11 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455002', 'tblTempVendorCDR_20' ) end [2025-02-11 23:10:19] Production.INFO: ProcessCDR(1,14455002,1,1,2) [2025-02-11 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455002', 'tblTempUsageDetail_20' ) start [2025-02-11 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455002', 'tblTempUsageDetail_20' ) end [2025-02-11 23:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:10:23] Production.INFO: ==830== Releasing lock... [2025-02-11 23:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:10:23] Production.INFO: 35.5 MB #Memory Used# [2025-02-11 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:11:05 [end_date_ymd] => 2025-02-11 23:11:05 [RateCDR] => 1 ) [2025-02-11 23:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:11:05' and `end` < '2025-02-11 23:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:11:19] Production.INFO: count ==990 [2025-02-11 23:11:19] Production.ERROR: pbx CDR StartTime 2025-02-11 20:11:05 - End Time 2025-02-11 23:11:05 [2025-02-11 23:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455007', 'tblTempUsageDetail_20' ) start [2025-02-11 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455007', 'tblTempUsageDetail_20' ) end [2025-02-11 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455007', 'tblTempVendorCDR_20' ) start [2025-02-11 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455007', 'tblTempVendorCDR_20' ) end [2025-02-11 23:11:19] Production.INFO: ProcessCDR(1,14455007,1,1,2) [2025-02-11 23:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455007', 'tblTempUsageDetail_20' ) start [2025-02-11 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455007', 'tblTempUsageDetail_20' ) end [2025-02-11 23:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:11:22] Production.INFO: ==915== Releasing lock... [2025-02-11 23:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:11:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-11 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:12:05 [end_date_ymd] => 2025-02-11 23:12:05 [RateCDR] => 1 ) [2025-02-11 23:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:12:05' and `end` < '2025-02-11 23:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:12:18] Production.INFO: count ==992 [2025-02-11 23:12:18] Production.ERROR: pbx CDR StartTime 2025-02-11 20:12:05 - End Time 2025-02-11 23:12:05 [2025-02-11 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455012', 'tblTempUsageDetail_20' ) start [2025-02-11 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455012', 'tblTempUsageDetail_20' ) end [2025-02-11 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455012', 'tblTempVendorCDR_20' ) start [2025-02-11 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455012', 'tblTempVendorCDR_20' ) end [2025-02-11 23:12:18] Production.INFO: ProcessCDR(1,14455012,1,1,2) [2025-02-11 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455012', 'tblTempUsageDetail_20' ) start [2025-02-11 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455012', 'tblTempUsageDetail_20' ) end [2025-02-11 23:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:12:21] Production.INFO: ==1075== Releasing lock... [2025-02-11 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:12:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-11 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:13:05 [end_date_ymd] => 2025-02-11 23:13:05 [RateCDR] => 1 ) [2025-02-11 23:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:13:05' and `end` < '2025-02-11 23:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:13:18] Production.INFO: count ==986 [2025-02-11 23:13:19] Production.ERROR: pbx CDR StartTime 2025-02-11 20:13:05 - End Time 2025-02-11 23:13:05 [2025-02-11 23:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455017', 'tblTempUsageDetail_20' ) start [2025-02-11 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455017', 'tblTempUsageDetail_20' ) end [2025-02-11 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455017', 'tblTempVendorCDR_20' ) start [2025-02-11 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455017', 'tblTempVendorCDR_20' ) end [2025-02-11 23:13:19] Production.INFO: ProcessCDR(1,14455017,1,1,2) [2025-02-11 23:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455017', 'tblTempUsageDetail_20' ) start [2025-02-11 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455017', 'tblTempUsageDetail_20' ) end [2025-02-11 23:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:13:22] Production.INFO: ==1215== Releasing lock... [2025-02-11 23:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:13:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-11 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:14:05 [end_date_ymd] => 2025-02-11 23:14:05 [RateCDR] => 1 ) [2025-02-11 23:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:14:05' and `end` < '2025-02-11 23:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:14:18] Production.INFO: count ==985 [2025-02-11 23:14:18] Production.ERROR: pbx CDR StartTime 2025-02-11 20:14:05 - End Time 2025-02-11 23:14:05 [2025-02-11 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455022', 'tblTempUsageDetail_20' ) start [2025-02-11 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455022', 'tblTempUsageDetail_20' ) end [2025-02-11 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455022', 'tblTempVendorCDR_20' ) start [2025-02-11 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455022', 'tblTempVendorCDR_20' ) end [2025-02-11 23:14:18] Production.INFO: ProcessCDR(1,14455022,1,1,2) [2025-02-11 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455022', 'tblTempUsageDetail_20' ) start [2025-02-11 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455022', 'tblTempUsageDetail_20' ) end [2025-02-11 23:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:14:21] Production.INFO: ==1309== Releasing lock... [2025-02-11 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:14:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-11 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:15:05 [end_date_ymd] => 2025-02-11 23:15:05 [RateCDR] => 1 ) [2025-02-11 23:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:15:05' and `end` < '2025-02-11 23:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:15:18] Production.INFO: count ==985 [2025-02-11 23:15:18] Production.ERROR: pbx CDR StartTime 2025-02-11 20:15:05 - End Time 2025-02-11 23:15:05 [2025-02-11 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455027', 'tblTempUsageDetail_20' ) start [2025-02-11 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455027', 'tblTempUsageDetail_20' ) end [2025-02-11 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455027', 'tblTempVendorCDR_20' ) start [2025-02-11 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455027', 'tblTempVendorCDR_20' ) end [2025-02-11 23:15:18] Production.INFO: ProcessCDR(1,14455027,1,1,2) [2025-02-11 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455027', 'tblTempUsageDetail_20' ) start [2025-02-11 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455027', 'tblTempUsageDetail_20' ) end [2025-02-11 23:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:15:21] Production.INFO: ==1473== Releasing lock... [2025-02-11 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:15:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-11 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:16:05 [end_date_ymd] => 2025-02-11 23:16:05 [RateCDR] => 1 ) [2025-02-11 23:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:16:05' and `end` < '2025-02-11 23:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:16:18] Production.INFO: count ==988 [2025-02-11 23:16:19] Production.ERROR: pbx CDR StartTime 2025-02-11 20:16:05 - End Time 2025-02-11 23:16:05 [2025-02-11 23:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455032', 'tblTempUsageDetail_20' ) start [2025-02-11 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455032', 'tblTempUsageDetail_20' ) end [2025-02-11 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455032', 'tblTempVendorCDR_20' ) start [2025-02-11 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455032', 'tblTempVendorCDR_20' ) end [2025-02-11 23:16:19] Production.INFO: ProcessCDR(1,14455032,1,1,2) [2025-02-11 23:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455032', 'tblTempUsageDetail_20' ) start [2025-02-11 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455032', 'tblTempUsageDetail_20' ) end [2025-02-11 23:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:16:22] Production.INFO: ==1596== Releasing lock... [2025-02-11 23:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:16:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-11 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:17:05 [end_date_ymd] => 2025-02-11 23:17:05 [RateCDR] => 1 ) [2025-02-11 23:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:17:05' and `end` < '2025-02-11 23:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:17:19] Production.INFO: count ==991 [2025-02-11 23:17:19] Production.ERROR: pbx CDR StartTime 2025-02-11 20:17:05 - End Time 2025-02-11 23:17:05 [2025-02-11 23:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455037', 'tblTempUsageDetail_20' ) start [2025-02-11 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455037', 'tblTempUsageDetail_20' ) end [2025-02-11 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455037', 'tblTempVendorCDR_20' ) start [2025-02-11 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455037', 'tblTempVendorCDR_20' ) end [2025-02-11 23:17:19] Production.INFO: ProcessCDR(1,14455037,1,1,2) [2025-02-11 23:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455037', 'tblTempUsageDetail_20' ) start [2025-02-11 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455037', 'tblTempUsageDetail_20' ) end [2025-02-11 23:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:17:22] Production.INFO: ==1689== Releasing lock... [2025-02-11 23:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:17:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-11 23:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:18:04 [end_date_ymd] => 2025-02-11 23:18:04 [RateCDR] => 1 ) [2025-02-11 23:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:18:04' and `end` < '2025-02-11 23:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:18:17] Production.INFO: count ==991 [2025-02-11 23:18:18] Production.ERROR: pbx CDR StartTime 2025-02-11 20:18:04 - End Time 2025-02-11 23:18:04 [2025-02-11 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455042', 'tblTempUsageDetail_20' ) start [2025-02-11 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455042', 'tblTempUsageDetail_20' ) end [2025-02-11 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455042', 'tblTempVendorCDR_20' ) start [2025-02-11 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455042', 'tblTempVendorCDR_20' ) end [2025-02-11 23:18:18] Production.INFO: ProcessCDR(1,14455042,1,1,2) [2025-02-11 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455042', 'tblTempUsageDetail_20' ) start [2025-02-11 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455042', 'tblTempUsageDetail_20' ) end [2025-02-11 23:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:18:21] Production.INFO: ==1768== Releasing lock... [2025-02-11 23:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:18:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-11 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:19:05 [end_date_ymd] => 2025-02-11 23:19:05 [RateCDR] => 1 ) [2025-02-11 23:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:19:05' and `end` < '2025-02-11 23:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:19:18] Production.INFO: count ==991 [2025-02-11 23:19:18] Production.ERROR: pbx CDR StartTime 2025-02-11 20:19:05 - End Time 2025-02-11 23:19:05 [2025-02-11 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455047', 'tblTempUsageDetail_20' ) start [2025-02-11 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455047', 'tblTempUsageDetail_20' ) end [2025-02-11 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455047', 'tblTempVendorCDR_20' ) start [2025-02-11 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455047', 'tblTempVendorCDR_20' ) end [2025-02-11 23:19:18] Production.INFO: ProcessCDR(1,14455047,1,1,2) [2025-02-11 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455047', 'tblTempUsageDetail_20' ) start [2025-02-11 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455047', 'tblTempUsageDetail_20' ) end [2025-02-11 23:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:19:21] Production.INFO: ==1861== Releasing lock... [2025-02-11 23:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:19:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-11 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:20:06 [end_date_ymd] => 2025-02-11 23:20:06 [RateCDR] => 1 ) [2025-02-11 23:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:20:06' and `end` < '2025-02-11 23:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:20:19] Production.INFO: count ==981 [2025-02-11 23:20:19] Production.ERROR: pbx CDR StartTime 2025-02-11 20:20:06 - End Time 2025-02-11 23:20:06 [2025-02-11 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455053', 'tblTempUsageDetail_20' ) start [2025-02-11 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455053', 'tblTempUsageDetail_20' ) end [2025-02-11 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455053', 'tblTempVendorCDR_20' ) start [2025-02-11 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455053', 'tblTempVendorCDR_20' ) end [2025-02-11 23:20:19] Production.INFO: ProcessCDR(1,14455053,1,1,2) [2025-02-11 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455053', 'tblTempUsageDetail_20' ) start [2025-02-11 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455053', 'tblTempUsageDetail_20' ) end [2025-02-11 23:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:20:23] Production.INFO: ==1952== Releasing lock... [2025-02-11 23:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:20:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-11 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:21:05 [end_date_ymd] => 2025-02-11 23:21:05 [RateCDR] => 1 ) [2025-02-11 23:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:21:05' and `end` < '2025-02-11 23:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:21:19] Production.INFO: count ==980 [2025-02-11 23:21:19] Production.ERROR: pbx CDR StartTime 2025-02-11 20:21:05 - End Time 2025-02-11 23:21:05 [2025-02-11 23:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455058', 'tblTempUsageDetail_20' ) start [2025-02-11 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455058', 'tblTempUsageDetail_20' ) end [2025-02-11 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455058', 'tblTempVendorCDR_20' ) start [2025-02-11 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455058', 'tblTempVendorCDR_20' ) end [2025-02-11 23:21:19] Production.INFO: ProcessCDR(1,14455058,1,1,2) [2025-02-11 23:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455058', 'tblTempUsageDetail_20' ) start [2025-02-11 23:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455058', 'tblTempUsageDetail_20' ) end [2025-02-11 23:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:21:23] Production.INFO: ==2049== Releasing lock... [2025-02-11 23:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:21:23] Production.INFO: 35 MB #Memory Used# [2025-02-11 23:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:22:06 [end_date_ymd] => 2025-02-11 23:22:06 [RateCDR] => 1 ) [2025-02-11 23:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:22:06' and `end` < '2025-02-11 23:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:22:19] Production.INFO: count ==980 [2025-02-11 23:22:19] Production.ERROR: pbx CDR StartTime 2025-02-11 20:22:06 - End Time 2025-02-11 23:22:06 [2025-02-11 23:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455063', 'tblTempUsageDetail_20' ) start [2025-02-11 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455063', 'tblTempUsageDetail_20' ) end [2025-02-11 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455063', 'tblTempVendorCDR_20' ) start [2025-02-11 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455063', 'tblTempVendorCDR_20' ) end [2025-02-11 23:22:19] Production.INFO: ProcessCDR(1,14455063,1,1,2) [2025-02-11 23:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455063', 'tblTempUsageDetail_20' ) start [2025-02-11 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455063', 'tblTempUsageDetail_20' ) end [2025-02-11 23:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:22:22] Production.INFO: ==2144== Releasing lock... [2025-02-11 23:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:22:22] Production.INFO: 35 MB #Memory Used# [2025-02-11 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:23:05 [end_date_ymd] => 2025-02-11 23:23:05 [RateCDR] => 1 ) [2025-02-11 23:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:23:05' and `end` < '2025-02-11 23:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:23:19] Production.INFO: count ==979 [2025-02-11 23:23:19] Production.ERROR: pbx CDR StartTime 2025-02-11 20:23:05 - End Time 2025-02-11 23:23:05 [2025-02-11 23:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455068', 'tblTempUsageDetail_20' ) start [2025-02-11 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455068', 'tblTempUsageDetail_20' ) end [2025-02-11 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455068', 'tblTempVendorCDR_20' ) start [2025-02-11 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455068', 'tblTempVendorCDR_20' ) end [2025-02-11 23:23:19] Production.INFO: ProcessCDR(1,14455068,1,1,2) [2025-02-11 23:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455068', 'tblTempUsageDetail_20' ) start [2025-02-11 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455068', 'tblTempUsageDetail_20' ) end [2025-02-11 23:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:23:22] Production.INFO: ==2242== Releasing lock... [2025-02-11 23:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:23:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-11 23:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:24:06 [end_date_ymd] => 2025-02-11 23:24:06 [RateCDR] => 1 ) [2025-02-11 23:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:24:06' and `end` < '2025-02-11 23:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:24:19] Production.INFO: count ==978 [2025-02-11 23:24:19] Production.ERROR: pbx CDR StartTime 2025-02-11 20:24:06 - End Time 2025-02-11 23:24:06 [2025-02-11 23:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455073', 'tblTempUsageDetail_20' ) start [2025-02-11 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455073', 'tblTempUsageDetail_20' ) end [2025-02-11 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455073', 'tblTempVendorCDR_20' ) start [2025-02-11 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455073', 'tblTempVendorCDR_20' ) end [2025-02-11 23:24:19] Production.INFO: ProcessCDR(1,14455073,1,1,2) [2025-02-11 23:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455073', 'tblTempUsageDetail_20' ) start [2025-02-11 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455073', 'tblTempUsageDetail_20' ) end [2025-02-11 23:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:24:22] Production.INFO: ==2333== Releasing lock... [2025-02-11 23:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:24:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-11 23:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:25:04 [end_date_ymd] => 2025-02-11 23:25:04 [RateCDR] => 1 ) [2025-02-11 23:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:25:04' and `end` < '2025-02-11 23:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:25:17] Production.INFO: count ==978 [2025-02-11 23:25:18] Production.ERROR: pbx CDR StartTime 2025-02-11 20:25:04 - End Time 2025-02-11 23:25:04 [2025-02-11 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455078', 'tblTempUsageDetail_20' ) start [2025-02-11 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455078', 'tblTempUsageDetail_20' ) end [2025-02-11 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455078', 'tblTempVendorCDR_20' ) start [2025-02-11 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455078', 'tblTempVendorCDR_20' ) end [2025-02-11 23:25:18] Production.INFO: ProcessCDR(1,14455078,1,1,2) [2025-02-11 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455078', 'tblTempUsageDetail_20' ) start [2025-02-11 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455078', 'tblTempUsageDetail_20' ) end [2025-02-11 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:25:21] Production.INFO: ==2415== Releasing lock... [2025-02-11 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:25:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-11 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:26:05 [end_date_ymd] => 2025-02-11 23:26:05 [RateCDR] => 1 ) [2025-02-11 23:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:26:05' and `end` < '2025-02-11 23:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:26:18] Production.INFO: count ==978 [2025-02-11 23:26:18] Production.ERROR: pbx CDR StartTime 2025-02-11 20:26:05 - End Time 2025-02-11 23:26:05 [2025-02-11 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455083', 'tblTempUsageDetail_20' ) start [2025-02-11 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455083', 'tblTempUsageDetail_20' ) end [2025-02-11 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455083', 'tblTempVendorCDR_20' ) start [2025-02-11 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455083', 'tblTempVendorCDR_20' ) end [2025-02-11 23:26:18] Production.INFO: ProcessCDR(1,14455083,1,1,2) [2025-02-11 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455083', 'tblTempUsageDetail_20' ) start [2025-02-11 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455083', 'tblTempUsageDetail_20' ) end [2025-02-11 23:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:26:22] Production.INFO: ==2507== Releasing lock... [2025-02-11 23:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:26:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-11 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:27:05 [end_date_ymd] => 2025-02-11 23:27:05 [RateCDR] => 1 ) [2025-02-11 23:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:27:05' and `end` < '2025-02-11 23:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:27:18] Production.INFO: count ==978 [2025-02-11 23:27:18] Production.ERROR: pbx CDR StartTime 2025-02-11 20:27:05 - End Time 2025-02-11 23:27:05 [2025-02-11 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455088', 'tblTempUsageDetail_20' ) start [2025-02-11 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455088', 'tblTempUsageDetail_20' ) end [2025-02-11 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455088', 'tblTempVendorCDR_20' ) start [2025-02-11 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455088', 'tblTempVendorCDR_20' ) end [2025-02-11 23:27:18] Production.INFO: ProcessCDR(1,14455088,1,1,2) [2025-02-11 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455088', 'tblTempUsageDetail_20' ) start [2025-02-11 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455088', 'tblTempUsageDetail_20' ) end [2025-02-11 23:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:27:22] Production.INFO: ==2601== Releasing lock... [2025-02-11 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:27:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-11 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:28:05 [end_date_ymd] => 2025-02-11 23:28:05 [RateCDR] => 1 ) [2025-02-11 23:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:28:05' and `end` < '2025-02-11 23:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:28:18] Production.INFO: count ==981 [2025-02-11 23:28:18] Production.ERROR: pbx CDR StartTime 2025-02-11 20:28:05 - End Time 2025-02-11 23:28:05 [2025-02-11 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455093', 'tblTempUsageDetail_20' ) start [2025-02-11 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455093', 'tblTempUsageDetail_20' ) end [2025-02-11 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455093', 'tblTempVendorCDR_20' ) start [2025-02-11 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455093', 'tblTempVendorCDR_20' ) end [2025-02-11 23:28:18] Production.INFO: ProcessCDR(1,14455093,1,1,2) [2025-02-11 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455093', 'tblTempUsageDetail_20' ) start [2025-02-11 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455093', 'tblTempUsageDetail_20' ) end [2025-02-11 23:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:28:21] Production.INFO: ==2723== Releasing lock... [2025-02-11 23:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:28:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-11 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:29:05 [end_date_ymd] => 2025-02-11 23:29:05 [RateCDR] => 1 ) [2025-02-11 23:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:29:05' and `end` < '2025-02-11 23:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:29:18] Production.INFO: count ==984 [2025-02-11 23:29:18] Production.ERROR: pbx CDR StartTime 2025-02-11 20:29:05 - End Time 2025-02-11 23:29:05 [2025-02-11 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455098', 'tblTempUsageDetail_20' ) start [2025-02-11 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455098', 'tblTempUsageDetail_20' ) end [2025-02-11 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455098', 'tblTempVendorCDR_20' ) start [2025-02-11 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455098', 'tblTempVendorCDR_20' ) end [2025-02-11 23:29:18] Production.INFO: ProcessCDR(1,14455098,1,1,2) [2025-02-11 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455098', 'tblTempUsageDetail_20' ) start [2025-02-11 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455098', 'tblTempUsageDetail_20' ) end [2025-02-11 23:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:29:21] Production.INFO: ==2814== Releasing lock... [2025-02-11 23:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:29:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-11 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:30:06 [end_date_ymd] => 2025-02-11 23:30:06 [RateCDR] => 1 ) [2025-02-11 23:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:30:06' and `end` < '2025-02-11 23:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:30:19] Production.INFO: count ==984 [2025-02-11 23:30:19] Production.ERROR: pbx CDR StartTime 2025-02-11 20:30:06 - End Time 2025-02-11 23:30:06 [2025-02-11 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455104', 'tblTempUsageDetail_20' ) start [2025-02-11 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455104', 'tblTempUsageDetail_20' ) end [2025-02-11 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455104', 'tblTempVendorCDR_20' ) start [2025-02-11 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455104', 'tblTempVendorCDR_20' ) end [2025-02-11 23:30:19] Production.INFO: ProcessCDR(1,14455104,1,1,2) [2025-02-11 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455104', 'tblTempUsageDetail_20' ) start [2025-02-11 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455104', 'tblTempUsageDetail_20' ) end [2025-02-11 23:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:30:22] Production.INFO: ==2901== Releasing lock... [2025-02-11 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:30:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-11 23:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:31:04 [end_date_ymd] => 2025-02-11 23:31:04 [RateCDR] => 1 ) [2025-02-11 23:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:31:04' and `end` < '2025-02-11 23:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:31:18] Production.INFO: count ==956 [2025-02-11 23:31:18] Production.ERROR: pbx CDR StartTime 2025-02-11 20:31:04 - End Time 2025-02-11 23:31:04 [2025-02-11 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455109', 'tblTempUsageDetail_20' ) start [2025-02-11 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455109', 'tblTempUsageDetail_20' ) end [2025-02-11 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455109', 'tblTempVendorCDR_20' ) start [2025-02-11 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455109', 'tblTempVendorCDR_20' ) end [2025-02-11 23:31:18] Production.INFO: ProcessCDR(1,14455109,1,1,2) [2025-02-11 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455109', 'tblTempUsageDetail_20' ) start [2025-02-11 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455109', 'tblTempUsageDetail_20' ) end [2025-02-11 23:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:31:21] Production.INFO: ==2982== Releasing lock... [2025-02-11 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:31:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-11 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:32:05 [end_date_ymd] => 2025-02-11 23:32:05 [RateCDR] => 1 ) [2025-02-11 23:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:32:05' and `end` < '2025-02-11 23:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:32:20] Production.INFO: count ==944 [2025-02-11 23:32:20] Production.ERROR: pbx CDR StartTime 2025-02-11 20:32:05 - End Time 2025-02-11 23:32:05 [2025-02-11 23:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455114', 'tblTempUsageDetail_20' ) start [2025-02-11 23:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455114', 'tblTempUsageDetail_20' ) end [2025-02-11 23:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455114', 'tblTempVendorCDR_20' ) start [2025-02-11 23:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455114', 'tblTempVendorCDR_20' ) end [2025-02-11 23:32:20] Production.INFO: ProcessCDR(1,14455114,1,1,2) [2025-02-11 23:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455114', 'tblTempUsageDetail_20' ) start [2025-02-11 23:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455114', 'tblTempUsageDetail_20' ) end [2025-02-11 23:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:32:23] Production.INFO: ==3073== Releasing lock... [2025-02-11 23:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:32:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-11 23:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:33:04 [end_date_ymd] => 2025-02-11 23:33:04 [RateCDR] => 1 ) [2025-02-11 23:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:33:04' and `end` < '2025-02-11 23:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:33:17] Production.INFO: count ==944 [2025-02-11 23:33:17] Production.ERROR: pbx CDR StartTime 2025-02-11 20:33:04 - End Time 2025-02-11 23:33:04 [2025-02-11 23:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455119', 'tblTempUsageDetail_20' ) start [2025-02-11 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455119', 'tblTempUsageDetail_20' ) end [2025-02-11 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455119', 'tblTempVendorCDR_20' ) start [2025-02-11 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455119', 'tblTempVendorCDR_20' ) end [2025-02-11 23:33:18] Production.INFO: ProcessCDR(1,14455119,1,1,2) [2025-02-11 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455119', 'tblTempUsageDetail_20' ) start [2025-02-11 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455119', 'tblTempUsageDetail_20' ) end [2025-02-11 23:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:33:21] Production.INFO: ==3166== Releasing lock... [2025-02-11 23:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:33:21] Production.INFO: 35 MB #Memory Used# [2025-02-11 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:34:05 [end_date_ymd] => 2025-02-11 23:34:05 [RateCDR] => 1 ) [2025-02-11 23:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:34:05' and `end` < '2025-02-11 23:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:34:18] Production.INFO: count ==945 [2025-02-11 23:34:18] Production.ERROR: pbx CDR StartTime 2025-02-11 20:34:05 - End Time 2025-02-11 23:34:05 [2025-02-11 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455124', 'tblTempUsageDetail_20' ) start [2025-02-11 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455124', 'tblTempUsageDetail_20' ) end [2025-02-11 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455124', 'tblTempVendorCDR_20' ) start [2025-02-11 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455124', 'tblTempVendorCDR_20' ) end [2025-02-11 23:34:18] Production.INFO: ProcessCDR(1,14455124,1,1,2) [2025-02-11 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455124', 'tblTempUsageDetail_20' ) start [2025-02-11 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455124', 'tblTempUsageDetail_20' ) end [2025-02-11 23:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:34:22] Production.INFO: ==3261== Releasing lock... [2025-02-11 23:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:34:22] Production.INFO: 35 MB #Memory Used# [2025-02-11 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:35:05 [end_date_ymd] => 2025-02-11 23:35:05 [RateCDR] => 1 ) [2025-02-11 23:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:35:05' and `end` < '2025-02-11 23:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:35:18] Production.INFO: count ==945 [2025-02-11 23:35:18] Production.ERROR: pbx CDR StartTime 2025-02-11 20:35:05 - End Time 2025-02-11 23:35:05 [2025-02-11 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455129', 'tblTempUsageDetail_20' ) start [2025-02-11 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455129', 'tblTempUsageDetail_20' ) end [2025-02-11 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455129', 'tblTempVendorCDR_20' ) start [2025-02-11 23:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455129', 'tblTempVendorCDR_20' ) end [2025-02-11 23:35:19] Production.INFO: ProcessCDR(1,14455129,1,1,2) [2025-02-11 23:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455129', 'tblTempUsageDetail_20' ) start [2025-02-11 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455129', 'tblTempUsageDetail_20' ) end [2025-02-11 23:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:35:22] Production.INFO: ==3361== Releasing lock... [2025-02-11 23:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:35:22] Production.INFO: 35 MB #Memory Used# [2025-02-11 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:36:05 [end_date_ymd] => 2025-02-11 23:36:05 [RateCDR] => 1 ) [2025-02-11 23:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:36:05' and `end` < '2025-02-11 23:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:36:18] Production.INFO: count ==942 [2025-02-11 23:36:18] Production.ERROR: pbx CDR StartTime 2025-02-11 20:36:05 - End Time 2025-02-11 23:36:05 [2025-02-11 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455134', 'tblTempUsageDetail_20' ) start [2025-02-11 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455134', 'tblTempUsageDetail_20' ) end [2025-02-11 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455134', 'tblTempVendorCDR_20' ) start [2025-02-11 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455134', 'tblTempVendorCDR_20' ) end [2025-02-11 23:36:18] Production.INFO: ProcessCDR(1,14455134,1,1,2) [2025-02-11 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455134', 'tblTempUsageDetail_20' ) start [2025-02-11 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455134', 'tblTempUsageDetail_20' ) end [2025-02-11 23:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:36:21] Production.INFO: ==3453== Releasing lock... [2025-02-11 23:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:36:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-11 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:37:05 [end_date_ymd] => 2025-02-11 23:37:05 [RateCDR] => 1 ) [2025-02-11 23:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:37:05' and `end` < '2025-02-11 23:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:37:18] Production.INFO: count ==942 [2025-02-11 23:37:18] Production.ERROR: pbx CDR StartTime 2025-02-11 20:37:05 - End Time 2025-02-11 23:37:05 [2025-02-11 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455139', 'tblTempUsageDetail_20' ) start [2025-02-11 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455139', 'tblTempUsageDetail_20' ) end [2025-02-11 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455139', 'tblTempVendorCDR_20' ) start [2025-02-11 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455139', 'tblTempVendorCDR_20' ) end [2025-02-11 23:37:18] Production.INFO: ProcessCDR(1,14455139,1,1,2) [2025-02-11 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455139', 'tblTempUsageDetail_20' ) start [2025-02-11 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455139', 'tblTempUsageDetail_20' ) end [2025-02-11 23:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:37:21] Production.INFO: ==3542== Releasing lock... [2025-02-11 23:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:37:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-11 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:38:05 [end_date_ymd] => 2025-02-11 23:38:05 [RateCDR] => 1 ) [2025-02-11 23:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:38:05' and `end` < '2025-02-11 23:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:38:19] Production.INFO: count ==942 [2025-02-11 23:38:19] Production.ERROR: pbx CDR StartTime 2025-02-11 20:38:05 - End Time 2025-02-11 23:38:05 [2025-02-11 23:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455144', 'tblTempUsageDetail_20' ) start [2025-02-11 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455144', 'tblTempUsageDetail_20' ) end [2025-02-11 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455144', 'tblTempVendorCDR_20' ) start [2025-02-11 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455144', 'tblTempVendorCDR_20' ) end [2025-02-11 23:38:19] Production.INFO: ProcessCDR(1,14455144,1,1,2) [2025-02-11 23:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455144', 'tblTempUsageDetail_20' ) start [2025-02-11 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455144', 'tblTempUsageDetail_20' ) end [2025-02-11 23:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:38:22] Production.INFO: ==3626== Releasing lock... [2025-02-11 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:38:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-11 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:39:05 [end_date_ymd] => 2025-02-11 23:39:05 [RateCDR] => 1 ) [2025-02-11 23:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:39:05' and `end` < '2025-02-11 23:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:39:18] Production.INFO: count ==941 [2025-02-11 23:39:18] Production.ERROR: pbx CDR StartTime 2025-02-11 20:39:05 - End Time 2025-02-11 23:39:05 [2025-02-11 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455149', 'tblTempUsageDetail_20' ) start [2025-02-11 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455149', 'tblTempUsageDetail_20' ) end [2025-02-11 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455149', 'tblTempVendorCDR_20' ) start [2025-02-11 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455149', 'tblTempVendorCDR_20' ) end [2025-02-11 23:39:18] Production.INFO: ProcessCDR(1,14455149,1,1,2) [2025-02-11 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455149', 'tblTempUsageDetail_20' ) start [2025-02-11 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455149', 'tblTempUsageDetail_20' ) end [2025-02-11 23:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:39:21] Production.INFO: ==3706== Releasing lock... [2025-02-11 23:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:39:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-11 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:40:06 [end_date_ymd] => 2025-02-11 23:40:06 [RateCDR] => 1 ) [2025-02-11 23:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:40:06' and `end` < '2025-02-11 23:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:40:19] Production.INFO: count ==939 [2025-02-11 23:40:19] Production.ERROR: pbx CDR StartTime 2025-02-11 20:40:06 - End Time 2025-02-11 23:40:06 [2025-02-11 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455155', 'tblTempUsageDetail_20' ) start [2025-02-11 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455155', 'tblTempUsageDetail_20' ) end [2025-02-11 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455155', 'tblTempVendorCDR_20' ) start [2025-02-11 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455155', 'tblTempVendorCDR_20' ) end [2025-02-11 23:40:19] Production.INFO: ProcessCDR(1,14455155,1,1,2) [2025-02-11 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455155', 'tblTempUsageDetail_20' ) start [2025-02-11 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455155', 'tblTempUsageDetail_20' ) end [2025-02-11 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:40:22] Production.INFO: ==3798== Releasing lock... [2025-02-11 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:40:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-11 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:41:05 [end_date_ymd] => 2025-02-11 23:41:05 [RateCDR] => 1 ) [2025-02-11 23:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:41:05' and `end` < '2025-02-11 23:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:41:18] Production.INFO: count ==911 [2025-02-11 23:41:18] Production.ERROR: pbx CDR StartTime 2025-02-11 20:41:05 - End Time 2025-02-11 23:41:05 [2025-02-11 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455160', 'tblTempUsageDetail_20' ) start [2025-02-11 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455160', 'tblTempUsageDetail_20' ) end [2025-02-11 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455160', 'tblTempVendorCDR_20' ) start [2025-02-11 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455160', 'tblTempVendorCDR_20' ) end [2025-02-11 23:41:18] Production.INFO: ProcessCDR(1,14455160,1,1,2) [2025-02-11 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455160', 'tblTempUsageDetail_20' ) start [2025-02-11 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455160', 'tblTempUsageDetail_20' ) end [2025-02-11 23:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:41:21] Production.INFO: ==3887== Releasing lock... [2025-02-11 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:41:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-11 23:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:42:04 [end_date_ymd] => 2025-02-11 23:42:04 [RateCDR] => 1 ) [2025-02-11 23:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:42:04' and `end` < '2025-02-11 23:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:42:17] Production.INFO: count ==910 [2025-02-11 23:42:18] Production.ERROR: pbx CDR StartTime 2025-02-11 20:42:04 - End Time 2025-02-11 23:42:04 [2025-02-11 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455165', 'tblTempUsageDetail_20' ) start [2025-02-11 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455165', 'tblTempUsageDetail_20' ) end [2025-02-11 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455165', 'tblTempVendorCDR_20' ) start [2025-02-11 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455165', 'tblTempVendorCDR_20' ) end [2025-02-11 23:42:18] Production.INFO: ProcessCDR(1,14455165,1,1,2) [2025-02-11 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455165', 'tblTempUsageDetail_20' ) start [2025-02-11 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455165', 'tblTempUsageDetail_20' ) end [2025-02-11 23:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:42:21] Production.INFO: ==3985== Releasing lock... [2025-02-11 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:42:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-11 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:43:05 [end_date_ymd] => 2025-02-11 23:43:05 [RateCDR] => 1 ) [2025-02-11 23:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:43:05' and `end` < '2025-02-11 23:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:43:18] Production.INFO: count ==908 [2025-02-11 23:43:18] Production.ERROR: pbx CDR StartTime 2025-02-11 20:43:05 - End Time 2025-02-11 23:43:05 [2025-02-11 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455170', 'tblTempUsageDetail_20' ) start [2025-02-11 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455170', 'tblTempUsageDetail_20' ) end [2025-02-11 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455170', 'tblTempVendorCDR_20' ) start [2025-02-11 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455170', 'tblTempVendorCDR_20' ) end [2025-02-11 23:43:18] Production.INFO: ProcessCDR(1,14455170,1,1,2) [2025-02-11 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455170', 'tblTempUsageDetail_20' ) start [2025-02-11 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455170', 'tblTempUsageDetail_20' ) end [2025-02-11 23:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:43:21] Production.INFO: ==4096== Releasing lock... [2025-02-11 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:43:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-11 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:44:05 [end_date_ymd] => 2025-02-11 23:44:05 [RateCDR] => 1 ) [2025-02-11 23:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:44:05' and `end` < '2025-02-11 23:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:44:18] Production.INFO: count ==908 [2025-02-11 23:44:18] Production.ERROR: pbx CDR StartTime 2025-02-11 20:44:05 - End Time 2025-02-11 23:44:05 [2025-02-11 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455175', 'tblTempUsageDetail_20' ) start [2025-02-11 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455175', 'tblTempUsageDetail_20' ) end [2025-02-11 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455175', 'tblTempVendorCDR_20' ) start [2025-02-11 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455175', 'tblTempVendorCDR_20' ) end [2025-02-11 23:44:18] Production.INFO: ProcessCDR(1,14455175,1,1,2) [2025-02-11 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455175', 'tblTempUsageDetail_20' ) start [2025-02-11 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455175', 'tblTempUsageDetail_20' ) end [2025-02-11 23:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:44:23] Production.INFO: ==4246== Releasing lock... [2025-02-11 23:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:44:23] Production.INFO: 34.5 MB #Memory Used# [2025-02-11 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:45:05 [end_date_ymd] => 2025-02-11 23:45:05 [RateCDR] => 1 ) [2025-02-11 23:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:45:05' and `end` < '2025-02-11 23:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:45:18] Production.INFO: count ==906 [2025-02-11 23:45:18] Production.ERROR: pbx CDR StartTime 2025-02-11 20:45:05 - End Time 2025-02-11 23:45:05 [2025-02-11 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455180', 'tblTempUsageDetail_20' ) start [2025-02-11 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455180', 'tblTempUsageDetail_20' ) end [2025-02-11 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455180', 'tblTempVendorCDR_20' ) start [2025-02-11 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455180', 'tblTempVendorCDR_20' ) end [2025-02-11 23:45:18] Production.INFO: ProcessCDR(1,14455180,1,1,2) [2025-02-11 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455180', 'tblTempUsageDetail_20' ) start [2025-02-11 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455180', 'tblTempUsageDetail_20' ) end [2025-02-11 23:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:45:21] Production.INFO: ==4345== Releasing lock... [2025-02-11 23:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:45:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-11 23:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:46:06 [end_date_ymd] => 2025-02-11 23:46:06 [RateCDR] => 1 ) [2025-02-11 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-02-11 20:46:06' and `end` < '2025-02-11 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-02-11 23:46:19] Production.INFO: count ==905 [2025-02-11 23:46:19] Production.ERROR: pbx CDR StartTime 2025-02-11 20:46:06 - End Time 2025-02-11 23:46:06 [2025-02-11 23:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455185', 'tblTempUsageDetail_20' ) start [2025-02-11 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455185', 'tblTempUsageDetail_20' ) end [2025-02-11 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455185', 'tblTempVendorCDR_20' ) start [2025-02-11 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455185', 'tblTempVendorCDR_20' ) end [2025-02-11 23:46:19] Production.INFO: ProcessCDR(1,14455185,1,1,2) [2025-02-11 23:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455185', 'tblTempUsageDetail_20' ) start [2025-02-11 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455185', 'tblTempUsageDetail_20' ) end [2025-02-11 23:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:46:22] Production.INFO: ==4433== Releasing lock... [2025-02-11 23:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:46:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-11 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:47:05 [end_date_ymd] => 2025-02-11 23:47:05 [RateCDR] => 1 ) [2025-02-11 23:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:47:05' and `end` < '2025-02-11 23:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:47:18] Production.INFO: count ==905 [2025-02-11 23:47:18] Production.ERROR: pbx CDR StartTime 2025-02-11 20:47:05 - End Time 2025-02-11 23:47:05 [2025-02-11 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455190', 'tblTempUsageDetail_20' ) start [2025-02-11 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455190', 'tblTempUsageDetail_20' ) end [2025-02-11 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455190', 'tblTempVendorCDR_20' ) start [2025-02-11 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455190', 'tblTempVendorCDR_20' ) end [2025-02-11 23:47:18] Production.INFO: ProcessCDR(1,14455190,1,1,2) [2025-02-11 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455190', 'tblTempUsageDetail_20' ) start [2025-02-11 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455190', 'tblTempUsageDetail_20' ) end [2025-02-11 23:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:47:22] Production.INFO: ==4514== Releasing lock... [2025-02-11 23:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:47:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-11 23:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:48:06 [end_date_ymd] => 2025-02-11 23:48:06 [RateCDR] => 1 ) [2025-02-11 23:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:48:06' and `end` < '2025-02-11 23:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:48:19] Production.INFO: count ==903 [2025-02-11 23:48:19] Production.ERROR: pbx CDR StartTime 2025-02-11 20:48:06 - End Time 2025-02-11 23:48:06 [2025-02-11 23:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455195', 'tblTempUsageDetail_20' ) start [2025-02-11 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455195', 'tblTempUsageDetail_20' ) end [2025-02-11 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455195', 'tblTempVendorCDR_20' ) start [2025-02-11 23:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455195', 'tblTempVendorCDR_20' ) end [2025-02-11 23:48:19] Production.INFO: ProcessCDR(1,14455195,1,1,2) [2025-02-11 23:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455195', 'tblTempUsageDetail_20' ) start [2025-02-11 23:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455195', 'tblTempUsageDetail_20' ) end [2025-02-11 23:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:48:24] Production.INFO: ==4607== Releasing lock... [2025-02-11 23:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:48:24] Production.INFO: 34.25 MB #Memory Used# [2025-02-11 23:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:49:04 [end_date_ymd] => 2025-02-11 23:49:04 [RateCDR] => 1 ) [2025-02-11 23:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:49:04' and `end` < '2025-02-11 23:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:49:18] Production.INFO: count ==898 [2025-02-11 23:49:18] Production.ERROR: pbx CDR StartTime 2025-02-11 20:49:04 - End Time 2025-02-11 23:49:04 [2025-02-11 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455200', 'tblTempUsageDetail_20' ) start [2025-02-11 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455200', 'tblTempUsageDetail_20' ) end [2025-02-11 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455200', 'tblTempVendorCDR_20' ) start [2025-02-11 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455200', 'tblTempVendorCDR_20' ) end [2025-02-11 23:49:18] Production.INFO: ProcessCDR(1,14455200,1,1,2) [2025-02-11 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455200', 'tblTempUsageDetail_20' ) start [2025-02-11 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455200', 'tblTempUsageDetail_20' ) end [2025-02-11 23:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:49:21] Production.INFO: ==4695== Releasing lock... [2025-02-11 23:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:49:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-11 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:50:06 [end_date_ymd] => 2025-02-11 23:50:06 [RateCDR] => 1 ) [2025-02-11 23:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:50:06' and `end` < '2025-02-11 23:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:50:19] Production.INFO: count ==894 [2025-02-11 23:50:19] Production.ERROR: pbx CDR StartTime 2025-02-11 20:50:06 - End Time 2025-02-11 23:50:06 [2025-02-11 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455206', 'tblTempUsageDetail_20' ) start [2025-02-11 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455206', 'tblTempUsageDetail_20' ) end [2025-02-11 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455206', 'tblTempVendorCDR_20' ) start [2025-02-11 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455206', 'tblTempVendorCDR_20' ) end [2025-02-11 23:50:19] Production.INFO: ProcessCDR(1,14455206,1,1,2) [2025-02-11 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455206', 'tblTempUsageDetail_20' ) start [2025-02-11 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455206', 'tblTempUsageDetail_20' ) end [2025-02-11 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:50:22] Production.INFO: ==4783== Releasing lock... [2025-02-11 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:50:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-11 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:51:05 [end_date_ymd] => 2025-02-11 23:51:05 [RateCDR] => 1 ) [2025-02-11 23:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:51:05' and `end` < '2025-02-11 23:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:51:18] Production.INFO: count ==868 [2025-02-11 23:51:18] Production.ERROR: pbx CDR StartTime 2025-02-11 20:51:05 - End Time 2025-02-11 23:51:05 [2025-02-11 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455211', 'tblTempUsageDetail_20' ) start [2025-02-11 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455211', 'tblTempUsageDetail_20' ) end [2025-02-11 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455211', 'tblTempVendorCDR_20' ) start [2025-02-11 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455211', 'tblTempVendorCDR_20' ) end [2025-02-11 23:51:18] Production.INFO: ProcessCDR(1,14455211,1,1,2) [2025-02-11 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455211', 'tblTempUsageDetail_20' ) start [2025-02-11 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455211', 'tblTempUsageDetail_20' ) end [2025-02-11 23:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:51:21] Production.INFO: ==4867== Releasing lock... [2025-02-11 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:51:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-11 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:52:05 [end_date_ymd] => 2025-02-11 23:52:05 [RateCDR] => 1 ) [2025-02-11 23:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:52:05' and `end` < '2025-02-11 23:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:52:18] Production.INFO: count ==867 [2025-02-11 23:52:18] Production.ERROR: pbx CDR StartTime 2025-02-11 20:52:05 - End Time 2025-02-11 23:52:05 [2025-02-11 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455216', 'tblTempUsageDetail_20' ) start [2025-02-11 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455216', 'tblTempUsageDetail_20' ) end [2025-02-11 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455216', 'tblTempVendorCDR_20' ) start [2025-02-11 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455216', 'tblTempVendorCDR_20' ) end [2025-02-11 23:52:18] Production.INFO: ProcessCDR(1,14455216,1,1,2) [2025-02-11 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455216', 'tblTempUsageDetail_20' ) start [2025-02-11 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455216', 'tblTempUsageDetail_20' ) end [2025-02-11 23:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:52:21] Production.INFO: ==4945== Releasing lock... [2025-02-11 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:52:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-11 23:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:53:04 [end_date_ymd] => 2025-02-11 23:53:04 [RateCDR] => 1 ) [2025-02-11 23:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:53:04' and `end` < '2025-02-11 23:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:53:18] Production.INFO: count ==867 [2025-02-11 23:53:18] Production.ERROR: pbx CDR StartTime 2025-02-11 20:53:04 - End Time 2025-02-11 23:53:04 [2025-02-11 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455221', 'tblTempUsageDetail_20' ) start [2025-02-11 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455221', 'tblTempUsageDetail_20' ) end [2025-02-11 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455221', 'tblTempVendorCDR_20' ) start [2025-02-11 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455221', 'tblTempVendorCDR_20' ) end [2025-02-11 23:53:18] Production.INFO: ProcessCDR(1,14455221,1,1,2) [2025-02-11 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455221', 'tblTempUsageDetail_20' ) start [2025-02-11 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455221', 'tblTempUsageDetail_20' ) end [2025-02-11 23:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:53:21] Production.INFO: ==5034== Releasing lock... [2025-02-11 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:53:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-11 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:54:05 [end_date_ymd] => 2025-02-11 23:54:05 [RateCDR] => 1 ) [2025-02-11 23:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:54:05' and `end` < '2025-02-11 23:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:54:18] Production.INFO: count ==866 [2025-02-11 23:54:18] Production.ERROR: pbx CDR StartTime 2025-02-11 20:54:05 - End Time 2025-02-11 23:54:05 [2025-02-11 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455226', 'tblTempUsageDetail_20' ) start [2025-02-11 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455226', 'tblTempUsageDetail_20' ) end [2025-02-11 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455226', 'tblTempVendorCDR_20' ) start [2025-02-11 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455226', 'tblTempVendorCDR_20' ) end [2025-02-11 23:54:18] Production.INFO: ProcessCDR(1,14455226,1,1,2) [2025-02-11 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455226', 'tblTempUsageDetail_20' ) start [2025-02-11 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455226', 'tblTempUsageDetail_20' ) end [2025-02-11 23:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:54:21] Production.INFO: ==5129== Releasing lock... [2025-02-11 23:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:54:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-11 23:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:55:06 [end_date_ymd] => 2025-02-11 23:55:06 [RateCDR] => 1 ) [2025-02-11 23:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:55:06' and `end` < '2025-02-11 23:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:55:19] Production.INFO: count ==874 [2025-02-11 23:55:19] Production.ERROR: pbx CDR StartTime 2025-02-11 20:55:06 - End Time 2025-02-11 23:55:06 [2025-02-11 23:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455231', 'tblTempUsageDetail_20' ) start [2025-02-11 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455231', 'tblTempUsageDetail_20' ) end [2025-02-11 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455231', 'tblTempVendorCDR_20' ) start [2025-02-11 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455231', 'tblTempVendorCDR_20' ) end [2025-02-11 23:55:19] Production.INFO: ProcessCDR(1,14455231,1,1,2) [2025-02-11 23:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455231', 'tblTempUsageDetail_20' ) start [2025-02-11 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455231', 'tblTempUsageDetail_20' ) end [2025-02-11 23:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:55:22] Production.INFO: ==5204== Releasing lock... [2025-02-11 23:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:55:22] Production.INFO: 34 MB #Memory Used# [2025-02-11 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:56:05 [end_date_ymd] => 2025-02-11 23:56:05 [RateCDR] => 1 ) [2025-02-11 23:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:56:05' and `end` < '2025-02-11 23:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:56:19] Production.INFO: count ==878 [2025-02-11 23:56:19] Production.ERROR: pbx CDR StartTime 2025-02-11 20:56:05 - End Time 2025-02-11 23:56:05 [2025-02-11 23:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455236', 'tblTempUsageDetail_20' ) start [2025-02-11 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455236', 'tblTempUsageDetail_20' ) end [2025-02-11 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455236', 'tblTempVendorCDR_20' ) start [2025-02-11 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455236', 'tblTempVendorCDR_20' ) end [2025-02-11 23:56:19] Production.INFO: ProcessCDR(1,14455236,1,1,2) [2025-02-11 23:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455236', 'tblTempUsageDetail_20' ) start [2025-02-11 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455236', 'tblTempUsageDetail_20' ) end [2025-02-11 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:56:22] Production.INFO: ==5290== Releasing lock... [2025-02-11 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:56:22] Production.INFO: 34 MB #Memory Used# [2025-02-11 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:57:05 [end_date_ymd] => 2025-02-11 23:57:05 [RateCDR] => 1 ) [2025-02-11 23:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:57:05' and `end` < '2025-02-11 23:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:57:18] Production.INFO: count ==878 [2025-02-11 23:57:19] Production.ERROR: pbx CDR StartTime 2025-02-11 20:57:05 - End Time 2025-02-11 23:57:05 [2025-02-11 23:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455241', 'tblTempUsageDetail_20' ) start [2025-02-11 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455241', 'tblTempUsageDetail_20' ) end [2025-02-11 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455241', 'tblTempVendorCDR_20' ) start [2025-02-11 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455241', 'tblTempVendorCDR_20' ) end [2025-02-11 23:57:19] Production.INFO: ProcessCDR(1,14455241,1,1,2) [2025-02-11 23:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455241', 'tblTempUsageDetail_20' ) start [2025-02-11 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455241', 'tblTempUsageDetail_20' ) end [2025-02-11 23:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:57:22] Production.INFO: ==5371== Releasing lock... [2025-02-11 23:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:57:22] Production.INFO: 34 MB #Memory Used# [2025-02-11 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:58:05 [end_date_ymd] => 2025-02-11 23:58:05 [RateCDR] => 1 ) [2025-02-11 23:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:58:05' and `end` < '2025-02-11 23:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:58:18] Production.INFO: count ==879 [2025-02-11 23:58:18] Production.ERROR: pbx CDR StartTime 2025-02-11 20:58:05 - End Time 2025-02-11 23:58:05 [2025-02-11 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455246', 'tblTempUsageDetail_20' ) start [2025-02-11 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455246', 'tblTempUsageDetail_20' ) end [2025-02-11 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455246', 'tblTempVendorCDR_20' ) start [2025-02-11 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455246', 'tblTempVendorCDR_20' ) end [2025-02-11 23:58:18] Production.INFO: ProcessCDR(1,14455246,1,1,2) [2025-02-11 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455246', 'tblTempUsageDetail_20' ) start [2025-02-11 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455246', 'tblTempUsageDetail_20' ) end [2025-02-11 23:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:58:21] Production.INFO: ==5453== Releasing lock... [2025-02-11 23:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:58:21] Production.INFO: 34 MB #Memory Used# [2025-02-11 23:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-11 20:59:06 [end_date_ymd] => 2025-02-11 23:59:06 [RateCDR] => 1 ) [2025-02-11 23:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-11 20:59:06' and `end` < '2025-02-11 23:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-11 23:59:19] Production.INFO: count ==879 [2025-02-11 23:59:19] Production.ERROR: pbx CDR StartTime 2025-02-11 20:59:06 - End Time 2025-02-11 23:59:06 [2025-02-11 23:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-11 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455251', 'tblTempUsageDetail_20' ) start [2025-02-11 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14455251', 'tblTempUsageDetail_20' ) end [2025-02-11 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455251', 'tblTempVendorCDR_20' ) start [2025-02-11 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14455251', 'tblTempVendorCDR_20' ) end [2025-02-11 23:59:19] Production.INFO: ProcessCDR(1,14455251,1,1,2) [2025-02-11 23:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14455251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14455251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-11 23:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14455251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14455251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-11 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455251', 'tblTempUsageDetail_20' ) start [2025-02-11 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14455251', 'tblTempUsageDetail_20' ) end [2025-02-11 23:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-11 23:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-11 23:59:22] Production.INFO: ==5580== Releasing lock... [2025-02-11 23:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-11 23:59:22] Production.INFO: 34 MB #Memory Used#